Code: Select all
* Apache2 has detected a syntax error in your configuration files:
apache2: Syntax error on line 495 of /etc/apache2/httpd.conf: Syntax error on line 5 of /etc/apache2/modules.d/70_mod_php5.conf: API module structure `php5_module' in file /usr/lib/apache2/modules/libphp5.so is garbled - perhaps this is not an Apache module DSO?Code: Select all
Calculating dependencies... done!
>>> Verifying ebuild Manifests...
>>> Emerging (1 of 1) dev-lang/php-5.2.2-r1 to /
* php-5.2.2.tar.bz2 RMD160 ;-) ... [ ok ]
* php-5.2.2.tar.bz2 SHA1 ;-) ... [ ok ]
* php-5.2.2.tar.bz2 SHA256 ;-) ... [ ok ]
* php-5.2.2.tar.bz2 size ;-) ... [ ok ]
* php-patchset-5.2.2-r2.tar.bz2 RMD160 ;-) ... [ ok ]
* php-patchset-5.2.2-r2.tar.bz2 SHA1 ;-) ... [ ok ]
* php-patchset-5.2.2-r2.tar.bz2 SHA256 ;-) ... [ ok ]
* php-patchset-5.2.2-r2.tar.bz2 size ;-) ... [ ok ]
* checking ebuild checksums ;-) ... [ ok ]
* checking auxfile checksums ;-) ... [ ok ]
* checking miscfile checksums ;-) ... [ ok ]
* checking php-5.2.2.tar.bz2 ;-) ... [ ok ]
* checking php-patchset-5.2.2-r2.tar.bz2 ;-) ... [ ok ]
* Determining SAPI(s) to build
* Enabled SAPI: cli
* Disabled SAPI: cgi
* Disabled SAPI: apache
* Enabled SAPI: apache2
*
* If this package fails with a fatal error about Apache2 not having
* been compiled with a compatible MPM, this is normally because you
* need to toggle the 'threads' USE flag.
*
* If 'threads' is off, try switching it on.
* If 'threads' is on, try switching it off.
*
/usr/portage/eclass/apache-module.eclass: line 243: //usr/sbin/apxs2: No such file or directory
* The module you are trying to install (php)
* will only work with one of the following MPMs:
* itk peruser prefork
* You do not currently have any of these MPMs installed.
* Please re-install apache with the correct mpm-* USE flag set.
!!! ERROR: dev-lang/php-5.2.2-r1 failed.
Call stack:
ebuild.sh, line 1631: Called dyn_setup
ebuild.sh, line 703: Called qa_call 'pkg_setup'
ebuild.sh, line 44: Called pkg_setup
php-5.2.2-r1.ebuild, line 64: Called apache-module_pkg_setup
apache-module.eclass, line 374: Called apache2_pkg_setup
apache-module.eclass, line 255: Called die
!!! No safe MPM installed.
!!! If you need support, post the topmost build error, and the call stack if relevant.
!!! A complete build log is located at '/var/tmp/portage/dev-lang/php-5.2.2-r1/temp/build.log'.Do I have something misconfigured here? I'm assuming PHP compiles against apache, hense why I tried to recompile to see if I could then start apache with the php5 OPTS flag.
I'm just glad I ran this on my webserver that only hosts my blog atm. I'd be crying if this happened on my main webserver.
Edit: Here you can see that mpm-prefork is being used:
Code: Select all
server2 modules.d # emerge -av apache
These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild R ] net-www/apache-2.2.4 USE="mpm-prefork ssl -debug -doc -ldap -mpm-event -mpm-peruser -mpm-worker -no-suexec (-selinux) -static-modules -threads" 0 kB
Total: 1 package (1 reinstall), Size of downloads: 0 kB
Would you like to merge these packages? [Yes/No]





