Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
apache-2.0.46 don't work with mod_php-4.3.2-r3
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
MoonWalker
Guru
Guru


Joined: 04 Jul 2002
Posts: 510

PostPosted: Tue Jul 01, 2003 2:19 am    Post subject: apache-2.0.46 don't work with mod_php-4.3.2-r3 Reply with quote

After emerge mod_php-4.3.2-r3 and made sure other versions are gone and changed -D PHP to -D PHP4 I get this:
Code:
bash-2.05b# /etc/init.d/apache2 start
 * Starting apache2...
Syntax error on line 37 of /etc/apache2/conf/modules.d/70_mod_php.conf:
</IfDefine without matching <IfDefine section                             [ !! ]


Even tried to re-emerge apache2 but with same result. /etc/apache2/conf/modules.d/70_mod_php.conf looks like this:
Code:
<IfDefine PHP4>
    # Load the module first
    <IfModule !mod_php4.c>
        LoadModule php4_module    extramodules/libphp4.so
    </IfModule>

    # 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>
</IfDefine PHP4>


Dont make sense huh?
_________________
/Joakim

Living on earth is expensive, but it includes a free trip around the sun
every year.
Back to top
View user's profile Send private message
slartibartfasz
Veteran
Veteran


Joined: 29 Oct 2002
Posts: 1462
Location: Vienna, Austria

PostPosted: Tue Jul 01, 2003 7:34 am    Post subject: Reply with quote

do: </IfDefine PHP4> ---> </IfDefine>

on the last line ;)
_________________
To an engineer the glass is neither half full, nor half empty - it is just twice as big as it needs to be.
Back to top
View user's profile Send private message
qnx
l33t
l33t


Joined: 25 Jun 2002
Posts: 638
Location: Göteborg, Sweden

PostPosted: Tue Jul 01, 2003 8:15 am    Post subject: Reply with quote

slartibartfasz wrote:
do: </IfDefine PHP4> ---> </IfDefine>
on the last line ;)

I've done it. Still same error....What's wrong here guys?
_________________
Registred Linux user #191143!
Abit NF7-S rev. 2.00 (BIOS v. 2.7)
AMD AthlonXP 2500+ (Barton)
PATA Seagate ST3120022A
SATA Seagate ST3200822AS & Silicon Image 3112 chipset
Gentoo Linux :)
Back to top
View user's profile Send private message
To
Veteran
Veteran


Joined: 12 Apr 2003
Posts: 1145
Location: Coimbra, Portugal

PostPosted: Tue Jul 01, 2003 8:31 am    Post subject: Reply with quote

Hya,
IfDefine is closed after closing IfModule, try this way please.



Code:
<IfDefine PHP>
  <IfModule !mod_php4.c>
    LoadModule php4_module    extramodules/libphp4.so
  </IfModule>
</IfDefine>

<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>

<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>

_________________

------------------------------------------------
Linux Gandalf 3.2.35-grsec
Gentoo Base System version 2.2
------------------------------------------------
Back to top
View user's profile Send private message
qnx
l33t
l33t


Joined: 25 Jun 2002
Posts: 638
Location: Göteborg, Sweden

PostPosted: Tue Jul 01, 2003 9:37 am    Post subject: Reply with quote

I actually just downgraded to r2 and removed <IfDefined PHP4>. It works...
_________________
Registred Linux user #191143!
Abit NF7-S rev. 2.00 (BIOS v. 2.7)
AMD AthlonXP 2500+ (Barton)
PATA Seagate ST3120022A
SATA Seagate ST3200822AS & Silicon Image 3112 chipset
Gentoo Linux :)
Back to top
View user's profile Send private message
To
Veteran
Veteran


Joined: 12 Apr 2003
Posts: 1145
Location: Coimbra, Portugal

PostPosted: Tue Jul 01, 2003 9:46 am    Post subject: Reply with quote

Well you didn't had to downgrade.
Quote:
* net-www/apache
Latest version available: 2.0.46
Latest version installed: 2.0.46

* dev-php/mod_php
Latest version available: 4.3.2-r3
Latest version installed: 4.3.2-r3

Code:
root @ gandalf $ > /etc/init.d/apache2 start
  [ ok ]ing apache2...

You may want to try that later :wink:


_________________

------------------------------------------------
Linux Gandalf 3.2.35-grsec
Gentoo Base System version 2.2
------------------------------------------------
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum