From 2a986cc7ff0e927f0264ca32699d19396ea874a8 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 8 Apr 2014 18:30:07 +0200 Subject: php 5.6: numerical prefix, .user.ini, ifmodule --- php.conf | 55 ++++++++++++++++++++++++++++++++++++------------------- 1 file changed, 36 insertions(+), 19 deletions(-) (limited to 'php.conf') diff --git a/php.conf b/php.conf index 7000043..730867e 100644 --- a/php.conf +++ b/php.conf @@ -1,9 +1,16 @@ # -# Cause the PHP interpreter to handle files with a .php extension. -# - - SetHandler application/x-httpd-php - +# The following lines prevent .user.ini files from being viewed by Web clients. +# + + + Require all denied + + + Order allow,deny + Deny from all + Satisfy All + + # # Allow php to handle Multiviews @@ -16,18 +23,28 @@ AddType text/html .php # DirectoryIndex index.php -# -# Uncomment the following lines to allow PHP to pretty-print .phps -# files as PHP source code: -# -# -# SetHandler application/x-httpd-php-source -# +# mod_php options + + # + # Cause the PHP interpreter to handle files with a .php extension. + # + + SetHandler application/x-httpd-php + -# -# Apache specific PHP configuration options -# those can be override in each configured vhost -# -php_value session.save_handler "files" -php_value session.save_path "/var/lib/php/session" -php_value soap.wsdl_cache_dir "/var/lib/php/wsdlcache" + # + # Uncomment the following lines to allow PHP to pretty-print .phps + # files as PHP source code: + # + # + # SetHandler application/x-httpd-php-source + # + + # + # Apache specific PHP configuration options + # those can be override in each configured vhost + # + php_value session.save_handler "files" + php_value session.save_path "/var/lib/php/session" + php_value soap.wsdl_cache_dir "/var/lib/php/wsdlcache" + -- cgit