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>
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?
No I did not run that after merging mod_php. I was unaware of ebuild <ebuild> config.
After the ebuild is merged it echoes some information, but if you merge several ebuilds at once you may very well miss the information.