The last line in the conserned .conf file reads "</IfDefine4>", preventing apache2 to start properly with -D PHP4. It have to be changed to "</IfDefine PHP4>" Reproducible: Always Steps to Reproduce: 1. 2. 3. Just fix the ebuild.
Well, it's not all... for some reason the syntax check complains even when the <IfDefine PHP4> directive is right. I first got this with original .conf: merc root # apache2ctl -t Syntax error on line 39 of /etc/apache2/conf/modules.d/70_mod_php.conf: </IfDefine4> without matching <IfDefine4> section edited it with # nano -w and now get merc root # apache2ctl -t Syntax error on line 39 of /etc/apache2/conf/modules.d/70_mod_php.conf: </IfDefine without matching <IfDefine section and even moved it up so it looks: <IfDefine PHP4> # Load the module first <IfModule !mod_php4.c> LoadModule php4_module extramodules/libphp4.so </IfModule> </IfDefine PHP4> resulting in merc root # apache2ctl -t Syntax error on line 6 of /etc/apache2/conf/modules.d/70_mod_php.conf: </IfDefine without matching <IfDefine section and that's a mystery to me...
This just get worse... unmerged mod_php and remerged it and now it says: merc root # apache2ctl -t Syntax error on line 1 of /etc/apache2/conf/modules.d/70_mod_php.conf: Expected </IfDefine> but saw </IfDefin> and /etc/apache2/conf/modules.d/70_mod_php.conf looks exactly like this: <IfDefine PHP4> # Load the module first <IfModule !mod_php4.c> LoadModule php4_module extramodules/libphp4.so </IfModule> </IfDefine PHP4> # Set it to handle the files <IfModule mod_mime.c> AddType application/x-httpd-php .php AddType application/x-httpd-php .phtml AddType application/x-httpd-php .php3 AddType application/x-httpd-php .php4 AddType application/x-httpd-php-source .phps </IfModule> # Fix some bugs <Files *.php> LimitRequestBody 524288 RequestHeader unset If-Modified-Since </Files> <Files *.php3> LimitRequestBody 524288 RequestHeader unset If-Modified-Since </Files> <Files *.php4> LimitRequestBody 524288 RequestHeader unset If-Modified-Since </Files> <Files *.phps> LimitRequestBody 524288 RequestHeader unset If-Modified-Since </Files> <Files *.phtml> LimitRequestBody 524288 RequestHeader unset If-Modified-Since </Files> Moving down </IfDefine PHP4> to last line still gives same error message, exactly! I dont have a clue what's going on...
Well I have now, this really is a typo bug but </IfDefine4> need to be changed to </IfDefine> instead of </IfDefine PHP4>
*** Bug 23806 has been marked as a duplicate of this bug. ***
Fixed in CVS.