View previous topic :: View next topic |
Author |
Message |
MoonWalker Guru
Joined: 04 Jul 2002 Posts: 510
|
Posted: Tue Jul 01, 2003 2:19 am Post subject: apache-2.0.46 don't work with mod_php-4.3.2-r3 |
|
|
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 |
|
|
slartibartfasz Veteran
Joined: 29 Oct 2002 Posts: 1462 Location: Vienna, Austria
|
Posted: Tue Jul 01, 2003 7:34 am Post subject: |
|
|
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 |
|
|
qnx l33t
Joined: 25 Jun 2002 Posts: 638 Location: Göteborg, Sweden
|
Posted: Tue Jul 01, 2003 8:15 am Post subject: |
|
|
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 |
|
|
To Veteran
Joined: 12 Apr 2003 Posts: 1145 Location: Coimbra, Portugal
|
Posted: Tue Jul 01, 2003 8:31 am Post subject: |
|
|
Hya,
IfDefine is closed after closing IfModule, try this way please.
Tó
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 |
|
|
qnx l33t
Joined: 25 Jun 2002 Posts: 638 Location: Göteborg, Sweden
|
Posted: Tue Jul 01, 2003 9:37 am Post subject: |
|
|
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 |
|
|
To Veteran
Joined: 12 Apr 2003 Posts: 1145 Location: Coimbra, Portugal
|
Posted: Tue Jul 01, 2003 9:46 am Post subject: |
|
|
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
Tó _________________
------------------------------------------------
Linux Gandalf 3.2.35-grsec
Gentoo Base System version 2.2
------------------------------------------------ |
|
Back to top |
|
|
|