Skip to content

Instantly share code, notes, and snippets.

@davethegr8
Created November 21, 2016 18:49
Show Gist options
  • Save davethegr8/ead45b7561640d714d1966e2dfaf9e05 to your computer and use it in GitHub Desktop.
Save davethegr8/ead45b7561640d714d1966e2dfaf9e05 to your computer and use it in GitHub Desktop.
update php.ini
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