From 95a376da8767edd952ad36c4f5f42f2cda72b5b7 Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Tue, 20 Dec 2016 17:59:54 +0100 Subject: [PATCH] committing changes in /etc after emerge run Package changes: +app-eselect/eselect-php-0.9.2 --- .etckeeper | 2 ++ apache2/modules.d/70_mod_php.conf | 24 ++++++++++++++++++++++++ apache2/modules.d/70_mod_php5.conf | 28 ++++++++++++++++++++++++++++ 3 files changed, 54 insertions(+) create mode 100644 apache2/modules.d/70_mod_php.conf create mode 100644 apache2/modules.d/70_mod_php5.conf diff --git a/.etckeeper b/.etckeeper index ef828df..2ee3f88 100755 --- a/.etckeeper +++ b/.etckeeper @@ -41,6 +41,8 @@ maybe chmod 0644 'apache2/modules.d/41_mod_http2.conf' maybe chmod 0644 'apache2/modules.d/45_mod_dav.conf' maybe chmod 0644 'apache2/modules.d/46_mod_ldap.conf' maybe chmod 0644 'apache2/modules.d/47_mod_dav_svn.conf' +maybe chmod 0644 'apache2/modules.d/70_mod_php.conf' +maybe chmod 0644 'apache2/modules.d/70_mod_php5.conf' maybe chmod 0755 'apache2/vhosts.d' maybe chmod 0644 'apache2/vhosts.d/.keep_www-servers_apache-2' maybe chmod 0644 'apache2/vhosts.d/00_default_ssl_vhost.conf' diff --git a/apache2/modules.d/70_mod_php.conf b/apache2/modules.d/70_mod_php.conf new file mode 100644 index 0000000..3f36ba4 --- /dev/null +++ b/apache2/modules.d/70_mod_php.conf @@ -0,0 +1,24 @@ + + # The mod_php.so symlink is controlled by + # eselect-php. However, the module name changed from + # php5_module to php7_module so we can't blindly load whatever + # is there. Instead we let eselect-php manage a small + # configuration file that loads the appropriate module. + Include "/var/lib/eselect-php/mod_php.conf" + + # Tell apache that mod_php should handle PHP files. + # + # NOTE: Avoiding AddHandler/AddType for security (bug + # #538822). Please read the related news item! + + SetHandler application/x-httpd-php + + + # PHP source files which are meant to be displayed as + # syntax-highlighted source code. + + SetHandler application/x-httpd-php-source + + + DirectoryIndex index.php index.phtml + diff --git a/apache2/modules.d/70_mod_php5.conf b/apache2/modules.d/70_mod_php5.conf new file mode 100644 index 0000000..bd79f78 --- /dev/null +++ b/apache2/modules.d/70_mod_php5.conf @@ -0,0 +1,28 @@ +########### +# WARNING # +########### +# +# This file is provided for backwards compatibility only. The Apache +# PHP configuration is now located in 70_mod_php.conf and requires you +# to set -DPHP in your Apache conf.d file. Please examine +# 70_mod_php.conf and update your Apache configuration to use -DPHP +# instead of -DPHP5. Afterwards you may delete this file. +# + + # Load the module first + + LoadModule php5_module modules/libphp5.so + + + # Set it to handle the files + # NOTE: Avoiding AddHandler/AddType for security (bug #538822) + # NOTE: Please read the related news item! + + SetHandler application/x-httpd-php + + + SetHandler application/x-httpd-php-source + + + DirectoryIndex index.php index.phtml + -- 2.39.5