Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 23786 - typo in 70_mod_php.conf of mod_php-4.3.2-r3
Summary: typo in 70_mod_php.conf of mod_php-4.3.2-r3
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
: 23806 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-06-30 16:20 UTC by Joakim
Modified: 2003-07-01 11:03 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joakim 2003-06-30 16:20:58 UTC
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.
Comment 1 Joakim 2003-06-30 16:40:31 UTC
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... 
Comment 2 Joakim 2003-06-30 17:44:08 UTC
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... 
 
Comment 3 Joakim 2003-06-30 19:32:20 UTC
Well I have now, 
 
this really is a typo bug but </IfDefine4> need to be changed to </IfDefine> instead of 
</IfDefine PHP4> 
Comment 4 Martin Holzer (RETIRED) gentoo-dev 2003-07-01 07:43:20 UTC
*** Bug 23806 has been marked as a duplicate of this bug. ***
Comment 5 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-07-01 11:03:25 UTC
Fixed in CVS.