summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.htaccess5
-rw-r--r--php.ini19
2 files changed, 24 insertions, 0 deletions
diff --git a/.htaccess b/.htaccess
index 1e3a558d..5a329520 100644
--- a/.htaccess
+++ b/.htaccess
@@ -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