diff options
author | Michael Orlitzky <mjo@gentoo.org> | 2015-12-10 20:07:02 -0500 |
---|---|---|
committer | Michael Orlitzky <mjo@gentoo.org> | 2015-12-10 20:07:20 -0500 |
commit | 983c8fcbdf2b0cea1236c87ac84bf4874a916271 (patch) | |
tree | 650cf807ace73a9077930bcdcfd2a9a77250fbdb /app-eselect/eselect-php/files | |
parent | app-doc/doxygen: Update live ebuild to EAPI=5, change SRC_URI to github (diff) | |
download | gentoo-983c8fcbdf2b0cea1236c87ac84bf4874a916271.tar.gz gentoo-983c8fcbdf2b0cea1236c87ac84bf4874a916271.tar.bz2 gentoo-983c8fcbdf2b0cea1236c87ac84bf4874a916271.zip |
app-eselect/eselect-php: version bump adding v0.8.1.
This is another attempt at php-7.x support in apache2. This new
version is already masked for testing, which is good because it
requires some configuration changes to apache. Upgraders should
read the elogs.
Gentoo-Bug: 552156
Package-Manager: portage-2.2.20.1
Diffstat (limited to 'app-eselect/eselect-php/files')
-rw-r--r-- | app-eselect/eselect-php/files/70_mod_php.conf | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/app-eselect/eselect-php/files/70_mod_php.conf b/app-eselect/eselect-php/files/70_mod_php.conf new file mode 100644 index 000000000000..cf996fab3cf8 --- /dev/null +++ b/app-eselect/eselect-php/files/70_mod_php.conf @@ -0,0 +1,26 @@ +<IfDefine PHP> + # 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. + # + # This is relative to ServerRoot (see httpd.conf). + 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! + <FilesMatch "\.(php|php[57]|phtml)$"> + SetHandler application/x-httpd-php + </FilesMatch> + + # PHP source files which are meant to be displayed as + # syntax-highlighted source code. + <FilesMatch "\.phps$"> + SetHandler application/x-httpd-php-source + </FilesMatch> + + DirectoryIndex index.php index.phtml +</IfDefine> |