Summary: | Wrong Apache IfModule Section for dev-lang/php5-x in 70_mod_php5.conf | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Phattanon Duangdara <phattanon> |
Component: | Current packages | Assignee: | PHP Bugs <php-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | major | ||
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Phattanon Duangdara
2006-02-10 08:13:45 UTC
Err, if you are trying to set -D PHP4 -D PHP5 in APACHE2_OPTS, then that will *never* work. If not, then post some erorrs you get, since it's been working perfectly fine for months for me and many other people. Try it. It didn't work. I did use only -D PHP5 In my config and I'm sure to have only PHP5 Installed. dev-php/php, dev-php/php-cgi, dev-php/mod_php and <=dev-lang/php-5.0 is in /etc/portage/package.mask I think I need to reopen this. because for >=dev-lang/php-5.0.0 file /etc/apache2/modules.d/70_mod_php.conf <IfModule mod_php5.c> should be use instead of <IfModule sapi_apache2.c> I mean use <IfModule sapi_apache2.c> directive won't work as expected with >=dev-lang/php-5.0.0 Indeed, Apache 1 and Apache 2 see mod_php5 as mod_php5.c and not apache2_sapi.c, so the checks indeed needed to be fixed. By doing this we also discovered that mod_php4 needed, for Apache 1, mod_php4.c, for Apache 2 instead apache2_sapi.c was correct in this case... PHP4 + Apache1 --> mod_php4.c PHP4 + Apache2 --> sapi_apache2.c PHP5 + Apache1 --> mod_php5.c PHP5 + Apache2 --> mod_php5.c The config files were now changed to reflect this and the fixed versions committed to CVS, emerge --sync in a couple of hours and re-emerge dev-lang/php to get the fixed versions if needed. Best regards, and thanks a lot for pointing this out, CHTEKK. |