Hi!

Better late then never.  Posting 72 hours from now the earliest as
advised by GLEP 42.  Feedback welcome as usual.


===========================================================
Title: Apache "-D PHP5" needs update to "-D PHP"
Author: Sebastian Pipping <sp...@gentoo.org>
Content-Type: text/plain
Posted: 2016-01-04
Revision: 1
News-Item-Format: 1.0
Display-If-Installed: app-eselect/eselect-php[apache2]

With >=app-eselect/eselect-php-0.8.1, to enable PHP support
for Apache 2.x file /etc/conf.d/apache2 no longer
needs to read

  APACHE2_OPTS="......... -D PHP5"

but

  APACHE2_OPTS="......... -D PHP"

, i.e. without "5" at the end.  This change is related to
unification in context of the advent of PHP 7.x.

With that change, guard "<IfDefine PHP>" in file
/etc/apache2/modules.d/70_mod_php.conf
has a chance to actually pull in PHP support.

Without updating APACHE2_OPTS, websites could end up serving
PHP code (include configuration files with passwords)
unprocessed to website visitors!


The origin of this news item is:
https://bugs.gentoo.org/show_bug.cgi?id=569042
===========================================================


Best



Sebastian

Reply via email to