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

Bug 611450

Summary: =app-eselect/eselect-php-0.9.2 (/etc/apache2/modules.d/70_mod_php5.conf) wrong path for dev-lang/php:7.0
Product: Gentoo Linux Reporter: Sergey S. Starikoff <Ikonta>
Component: Current packagesAssignee: PHP Bugs <php-bugs>
Status: RESOLVED INVALID    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Sergey S. Starikoff 2017-03-03 05:52:43 UTC
After stabilisation =dev-lang/php-7.0.15 I've find apache2 failing to start.

# service apache2 start
 * apache2 has detected an error in your setup:
apache2: Syntax error on line 153 of /etc/apache2/httpd.conf: Syntax error on line 14 of /etc/apache2/modules.d/70_mod_php5.conf: Cannot load modules/libphp5.so into server: /usr/lib64/apache2/modules/libphp5.so: cannot open shared object file: No such file or directory
 * ERROR: apache2 failed to start

# qlist dev-lang/php | grep libphp
/usr/lib64/php7.0/apache2/libphp7.so

# equery b /etc/apache2/modules.d/70_mod_php5.conf
 * Searching for /etc/apache2/modules.d/70_mod_php5.conf ... 
app-eselect/eselect-php-0.9.2 (/etc/apache2/modules.d/70_mod_php5.conf)

Of course I could update config manually.
But, ideally it should be done by portage.
Comment 1 Brian Evans (RETIRED) gentoo-dev 2017-03-03 13:29:07 UTC
I'm sorry to hear about your issues.

As part of the installation of eselect-php-0.9.2, warnings were issued to update your apache config file /etc/conf.d/apache to stop using -DPHP5 and start using -DPHP.

The wiki documentation has long been updated with this as well.

From the ebuild:

"If you are upgrading, be warned that our mod_php configuration"
"file has changed! You should now define -DPHP for the apache2"
"daemon, and inspect the new 70_mod_php.conf which has been"
"installed. Module loading involves eselect as of this version."
Comment 2 Sergey S. Starikoff 2017-03-10 11:39:48 UTC
This was not help request, but a question about possible improvements.

For a years of my experience in using Gentoo GNU/Linux it was first case, where necessary config update was not handled by etc-update and not listed in news (PHP5 argument in apache2's confd is succeed by PHP).