X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=etc%2Fphp5%2Fcgi%2Fphp.ini.local;h=da0324692ff1a0034f8d271a89829bbb168e3ce5;hb=aeb6a57aa9fd2c6567b85ac4b9ad1c60b7e3f563;hp=5157119b936d5ba69623f08c4c9025060d9b3e13;hpb=58df3595c60acc83a1b774892694d66ef5ff120c;p=matthijs%2Fservers%2Fdrsnuggles.git diff --git a/etc/php5/cgi/php.ini.local b/etc/php5/cgi/php.ini.local index 5157119..da03246 100644 --- a/etc/php5/cgi/php.ini.local +++ b/etc/php5/cgi/php.ini.local @@ -1,3 +1,34 @@ # This file contains local changes, so we can leave php5.ini to the Debian # default. It is not directly used by PHP, but the update-php.ini script # ensures it is put into the php.ini for each different domain. + +# Put errors in the logfile +log_errors = On + +# Don't display errors to the client +display_errors = Off + +# Add E_USER_NOTICE, so trigger_error calls without a level actually get +# logged. +error_reporting = E_ALL & ~E_NOTICE | E_USER_NOTICE + +# Disable some features for increased security and reduced surprise. +allow_call_time_pass_reference = Off +register_long_arrays = Off +register_argc_argv = Off +magic_quotes_gpc = Off +enable_dl = Off +allow_url_fopen = Off + + +# Use conforming headers (not sure how useful this is, though) +cgi.rfc2616_headers = 1 + +# Conform to CGI spec +# Needed for lighttpd (http://trac.lighttpd.net/trac/wiki/Docs%3AModCGI) +cgi.fix_pathinfo = 1 + +# Include some global php libraries +include_path = "/var/www/php5-libs" + +# vim: set filetype=dosini: