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

Bug 5493

Summary: mod_php not adding itself to /etc/apache/apache.conf and /etc/apache/commonapache.conf
Product: Gentoo Linux Reporter: Nick <nickj>
Component: New packagesAssignee: Daniel Ahlberg (RETIRED) <aliz>
Status: RESOLVED INVALID    
Severity: minor    
Priority: High    
Version: 1.2   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Nick 2002-07-24 02:00:36 UTC
When mod_php is emerged after Apache it does not add the proper elements to the
Apache configuration files to enable php support within the Apache web server. 
The ebuild lacks the following additions to the respective files:

apache.conf:
LoadModule php4_module        extramodules/libphp4.so
AddModule mod_php4.c

commonapache.conf:
<IfModule mod_php4.c>
    AddType application/x-httpd-php     .php .php3 .php4 .phtml
    AddType application/x-httpd-php-source .phps
</IfModule>
Comment 1 Daniel Ahlberg (RETIRED) gentoo-dev 2002-07-24 02:58:12 UTC
Did you run ebuild /var/db/pkg/dev-php/mod_php-4.2.2/mod_php-4.2.2.ebuild config
after you emerged the package?
Comment 2 Nick 2002-07-24 03:23:12 UTC
No I did not run that after merging mod_php.  I was unaware of ebuild <ebuild>
config.
Comment 3 Daniel Ahlberg (RETIRED) gentoo-dev 2002-07-24 03:50:40 UTC
After the ebuild is merged it echoes some information, but if you merge several
ebuilds at once you may very well miss the information.