hi all i just worked out a fix for building mod_php with apache2 i noticed there is already a fix for mod_php that checks the version of apache installed. http://bugs.gentoo.org/show_bug.cgi?id=10299 this should intergrate with my fix this is also my first ebuild hack so please tell me if im doing it wrong
Created attachment 5577 [details] mod_php ebuild fix to build mod_php with apache 2 if it is installed
That fix does not work on my 1.4 box. Fails with (apache2 in use flags): Configuring SAPI modules checking for AOLserver support... no checking for Apache 1.x module support via DSO through APXS... no checking for Apache 1.x module support... no checking for mod_charset compatibility option... no checking for Apache 2.0 module support via DSO through APXS... Sorry, I cannot run apxs. Possible reasons follow: 1. Perl is not installed 2. apxs was not found. Try to pass the path using --with-apxs2=/path/to/apxs 3. Apache was not built using --enable-so (the apxs usage page is displayed) The output of /usr/lib/apache2/bin/apxs follows: ./configure: line 3707: /usr/lib/apache2/bin/apxs: No such file or directory configure: error: Aborting !!! ERROR: dev-php/mod_php-4.2.3 failed. !!! Function src_compile, Line 201, Exitcode 1 !!! bad ./configure
the install prefix for apache was changed and apxs was renamed to apxs2 the atached ebuild fixes the problem
Created attachment 6186 [details] fixed ebuild obsoletes previous ebuild
Created attachment 6187 [details] php conf file for apache2 this goes in the files directory
Created attachment 6188 [details] php config file use this one instead got the module path wrong
hi all i've just tried this new ebuild ... it compiles fine, but when i try to start apache2 ("/etc/init.d/apache2 start") i get this error: * Starting apache2... Syntax error on line 3 of /etc/apache2/conf/modules.d/50_mod_php.conf: Can't locate API module structure `php_module' in file /etc/apache2/extramodules/libphp4.so: /usr/lib/libapr.so.0: undefined symbol: php_module
*** Bug 11046 has been marked as a duplicate of this bug. ***
Created attachment 6243 [details] revised revised php config file ok i stuffed up again this is the real config file this time ( this one doesn.t brea apache startup ) copy this over the top of 50_mod_php.conf in /etc/apache2/conf/modules.d/ and restart apache
still getting the same error! btw, what is the difference between the new one http://bugs.gentoo.org/showattachment.cgi?attach_id=6243 and the old one ??? http://bugs.gentoo.org/showattachment.cgi?attach_id=6188
crap sorry dude i attached the wrong file this one is the one i start apache with so it works
Created attachment 6250 [details] the real php config file for apache
same as #10299
*** Bug 10299 has been marked as a duplicate of this bug. ***
a mod_php ebuild which works with apache2 is in now. add 'apache2' to USE for this one :\