Skip to content

Instantly share code, notes, and snippets.

@robwilkerson
Created November 5, 2013 01:54
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save robwilkerson/7312564 to your computer and use it in GitHub Desktop.
Save robwilkerson/7312564 to your computer and use it in GitHub Desktop.
Modify php.ini to turn on errors for debugging and disable the short open tag.
# Show PHP errors
sed -i -r -e 's/short_open_tag = On/short_open_tag = Off/g' /etc/php5/fpm/php.ini
sed -i -r -e 's/error_reporting = E_ALL & ~E_DEPRECATED/error_reporting = E_ALL | E_STRICT/g' /etc/php5/fpm/php.ini
sed -i -r -e 's/display_errors = Off/display_errors = On/g' /etc/php5/fpm/php.ini
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment