1 |
Hi! |
2 |
|
3 |
|
4 |
Better late then never. Posting 72 hours from now the earliest as |
5 |
advised by GLEP 42. Feedback welcome as usual. |
6 |
|
7 |
|
8 |
=========================================================== |
9 |
Title: Apache "-D PHP5" needs update to "-D PHP" |
10 |
Author: Sebastian Pipping <sping@g.o> |
11 |
Content-Type: text/plain |
12 |
Posted: 2016-01-04 |
13 |
Revision: 1 |
14 |
News-Item-Format: 1.0 |
15 |
Display-If-Installed: app-eselect/eselect-php[apache2] |
16 |
|
17 |
With >=app-eselect/eselect-php-0.8.1, to enable PHP support |
18 |
for Apache 2.x file /etc/conf.d/apache2 no longer |
19 |
needs to read |
20 |
|
21 |
APACHE2_OPTS="......... -D PHP5" |
22 |
|
23 |
but |
24 |
|
25 |
APACHE2_OPTS="......... -D PHP" |
26 |
|
27 |
, i.e. without "5" at the end. This change is related to |
28 |
unification in context of the advent of PHP 7.x. |
29 |
|
30 |
With that change, guard "<IfDefine PHP>" in file |
31 |
/etc/apache2/modules.d/70_mod_php.conf |
32 |
has a chance to actually pull in PHP support. |
33 |
|
34 |
Without updating APACHE2_OPTS, websites could end up serving |
35 |
PHP code (include configuration files with passwords) |
36 |
unprocessed to website visitors! |
37 |
|
38 |
|
39 |
The origin of this news item is: |
40 |
https://bugs.gentoo.org/show_bug.cgi?id=569042 |
41 |
=========================================================== |
42 |
|
43 |
|
44 |
Best |
45 |
|
46 |
|
47 |
|
48 |
Sebastian |