[packages/php] add sample how to disable php in user dirs

glen glen at pld-linux.org
Fri May 9 19:24:28 CEST 2014


commit 48deacb95623f6767f97aec6e3dd4346d6cc258c
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Fri May 9 20:23:58 2014 +0300

    add sample how to disable php in user dirs
    
    taken from debian

 php-mod_php.conf | 10 ++++++++++
 1 file changed, 10 insertions(+)
---
diff --git a/php-mod_php.conf b/php-mod_php.conf
index 9a9f298..a5f5f59 100644
--- a/php-mod_php.conf
+++ b/php-mod_php.conf
@@ -19,4 +19,14 @@ LoadModule php5_module modules/libphp5.so
 	<Files *.phtml>
 		AddType application/x-httpd-php .phtml
 	</Files>
+
+	# Uncomment to disable php in user directories.
+	# To re-enable php in user directories comment the following lines
+	# (from <IfModule ...> to </IfModule>.) Do NOT set it to On as it
+	# prevents .htaccess files from disabling it.
+#	<IfModule mod_userdir.c>
+#		<Directory /home/users/*/public_html>
+#			php_admin_value engine Off
+#		</Directory>
+#	</IfModule>
 </IfModule>
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/php.git/commitdiff/48deacb95623f6767f97aec6e3dd4346d6cc258c



More information about the pld-cvs-commit mailing list