Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 54086 - module name at the <IfModule> directive in the /etc/apache2/conf/modules.d/70_mod_php.conf line 4 is wrong
Summary: module name at the <IfModule> directive in the /etc/apache2/conf/modules.d/70...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: High trivial
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-16 07:27 UTC by Toshitaka Kumagai
Modified: 2004-06-18 00:15 UTC (History)
0 users

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 Toshitaka Kumagai 2004-06-16 07:27:27 UTC
With apache2, we should use
<IfModule !sapi_apache2.c>
instead of 
<IfModule !mod_php4.c>
to determine whether the php module is not loaded yet.

Reproducible: Always
Steps to Reproduce:
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-06-16 13:27:48 UTC
coredumb: is this correct?
Comment 2 Toshitaka Kumagai 2004-06-17 01:39:56 UTC
To test, I made 70_mod_php.conf as following,

    <IfModule !mod_php4.c>
        LoadModule php4_module    extramodules/libphp4.so
    </IfModule>
    <IfModule !mod_php4.c>
        LoadModule php4_module    extramodules/libphp4.so
    </IfModule>

I have got the following warning 

# /etc/init.d/apache2 start
 * Starting apache2...
[Thu Jun 17 17:29:29 2004] [warn] module php4_module is already loaded,   [ ok ]

Then I tried,

    <IfModule !sapi_apache2.c>
        LoadModule php4_module    extramodules/libphp4.so
    </IfModule>
    <IfModule !sapi_apache2.c>
        LoadModule php4_module    extramodules/libphp4.so
    </IfModule>

root@aoa modules.d # /etc/init.d/apache2 restart
 * Starting apache2...                                                    [ ok ]

everything ok.
Comment 3 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-06-18 00:15:38 UTC
fixed in cvs.