Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 26065

Summary: mod_php-4.3.2 does not update /etc/apache2/conf/modules.d/70_mod_php.conf
Product: Gentoo Linux Reporter: Ernesto <xtango>
Component: New packagesAssignee: PHP Bugs <php-bugs>
Status: RESOLVED INVALID    
Severity: normal CC: xtango
Priority: High    
Version: 1.2   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Ernesto 2003-08-06 11:43:02 UTC
Using mod_php-4.3.2 with apache-2.0.47:

The ebuild for mod_php-4.3.2 seds /etc/conf.d/apache2 and changes "-D PHP" to
"-D PHP4". This is supposed to be that way to support concurrent versions of
mod_php (4 and 5).

But after restarting Apache 2, PHP will not work. This happens because the
ebuild for mod_php does not install and updated version of
/etc/apache2/conf/modules.d/70_mod_php.conf.

The original 70_mod_php.conf will look for "PHP" to be defined, not "PHP4". This
file needs to updated when sed'ing /etc/conf.d/apache2.

Am I right?
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-08-06 13:06:53 UTC
The new ebuilds DO install a new version of 70_mod_php.conf for you, that you activate with etc-update as normal.
Run the "emerge -k mod_php" again, and then etc-update to get the updated 70_mod_php.conf.
Comment 2 Ernesto 2003-08-06 13:30:15 UTC
Sorry. That didn't happen here, but must be a problem with my system.