I have installed apache1 (net-www/apache-1.3.33) on my machine (~x86) After installing php5 + mod_php5 (dev-php/mod_php-5.0.2) I make #ebuild /var/db/pkg/dev-php/mod_php-5.0.2/mod_php-5.0.2.ebuild config # /etc/init.d/apache start * Starting apache ... Syntax error on line 62 of /etc/apache/conf/apache.conf: Cannot load /etc/apache/extramodules/libphp5.so into server: /etc/apache/extramodules/libphp5.so: cannot open shared object file: No such file or directory Fix is #ln -s /usr/lib/apache/libphp5.so /etc/apache/extramodules/libphp5.so but php pages show as sources In /etc/apache/conf/addon-modules/mod_php.conf only <IfModule mod_php4.c> directive exists I added <IfModule mod_php5.c> section and all works fine maybe this problems need fix in ebuild ?
Same goes on ppc for dev-php/mod_php-5.0.3 ! We have to make sure to have : LoadModule php5_module /usr/lib/apache/libphp5.so in apache.conf instead of : LoadModule php5_module extramodules/libphp5.so There is another stuff at the end of emerge that creates a small problem : no mod_php5.conf : ... * Setting extension_dir in php.ini * Securing fopen wrappers * Setting correct include_path * Adding extra symlink to Apache extramodules for PHP * Installing a Apache config for PHP (mod_php5.conf) install: ne peut
Same goes on ppc for dev-php/mod_php-5.0.3 ! We have to make sure to have : LoadModule php5_module /usr/lib/apache/libphp5.so in apache.conf instead of : LoadModule php5_module extramodules/libphp5.so There is another stuff at the end of emerge that creates a small problem : no mod_php5.conf : ... * Setting extension_dir in php.ini * Securing fopen wrappers * Setting correct include_path * Adding extra symlink to Apache extramodules for PHP * Installing a Apache config for PHP (mod_php5.conf) install: ne peut évaluer `/usr/portage/dev-php/mod_php/files/mod_php5.conf': Aucun fichier ou répertoire de ce type The bug is easy to fix : in the ebuild change : doins ${FILESDIR}/mod_php5.conf with doins ${FILESDIR}/mod_php.conf The dirty work around I used at the time (before studying the ebuild) was : cd /etc/apache/conf/addon-modules curl -o mod_php.conf http://gentoo.kems.net/gentoo-x86-portage/dev-php/mod_php/files/70_mod_php5.conf Clearly fixing the ebuild would be better
This is happening for me as well.
This seems to be a php problem, not an apache one, though there are new (masked) apache ebuilds in portage and the mod_*'s maintainers where encouraged to switch to the new apache-module.eclass, so this should be fixed soon...
Please re-test with mod_php-5.0.4.