Created
November 21, 2016 18:49
-
-
Save davethegr8/ead45b7561640d714d1966e2dfaf9e05 to your computer and use it in GitHub Desktop.
update php.ini
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
php -r ' | |
$matches = array("short_open_tag = Off", ";error_log = syslog", "display_errors = Off", "html_errors = Off"); | |
$replacements = array("short_open_tag = On", "error_log = syslog", "display_errors = On", "html_errors = On"); | |
foreach(glob("/etc/php5/*/php.ini") as $file) { file_put_contents($file, str_replace($matches, $replacements, file_get_contents($file)));} | |
' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment