diff options
author | Bharat Mediratta <bharat@menalto.com> | 2011-01-11 21:41:20 -0800 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2011-01-11 21:41:20 -0800 |
commit | e4a43c99e421c830e569eaae6294286ed51e0ad8 (patch) | |
tree | ac125430c0a778db8e956257b4f24094d326d3c1 | |
parent | 7eabf6c1c27c2c0e98895f663bb2853d72976e01 (diff) |
Mirror .htaccess PHP settings into php.ini for hosts that have
per-dir php.ini support configured, but don't use .htaccess.
Fixes #1603.
-rw-r--r-- | .htaccess | 5 | ||||
-rw-r--r-- | php.ini | 19 |
2 files changed, 24 insertions, 0 deletions
@@ -1,3 +1,8 @@ +# Set some reasonable defaults for PHP. Most of these cannot be set +# inside the script itself. For hosts that don't have .htaccess +# support but do support per-dir php.ini files, these settings are +# mirrored in php.ini +# <IfModule mod_php5.c> php_flag short_open_tag On php_flag magic_quotes_gpc Off diff --git a/php.ini b/php.ini new file mode 100644 index 00000000..d2f96f51 --- /dev/null +++ b/php.ini @@ -0,0 +1,19 @@ +; Set some reasonable defaults for PHP. Most of these cannot be set +; inside the script itself. These settings are mirrored in the +; .htaccess file for hosts that support .htaccess but not per-dir +; php.ini files. +; +[PHP] +short_open_tag = On +magic_quotes_gpc = Off +magic_quotes_sybase = Off +magic_quotes_runtime = Off +register_globals = Off +upload_max_filesize = 20M +post_max_size = 100M + +[Session] +session.auto_start = Off + +[suhosin] +suhosin.session.encrypt = Off |