[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

RE: Actual Apache2 Packages with working php packages



Sjoerd Simons [mailto:sjoerd@air.luon.net] wrote:

> We've got apache2 and php4-apache2 packages for both stable 
> and unstable
> on ftp.luon.net (deb ftp://luon.net/debian/ {un,}stable main).
> 
> The only problem we have with them is that a apache2 
> restart/reload will
> causes a segmentation fault, but YMMV.

The reason for which is because you are using 4.2.x.
Only 4.3.x of PHP4 supports Apache2 properly.
The problem with <4.3.x is that there is interference
with some of the _modules_ of php which aren't thread safe
The modules that one notices it the most are the database ones.
Unfortunatly Debian still doesn't have any php4 4.3.x packages.
Thus on debian apache2 + php4-cgi, that simply works as a cgi is
only one thread and thus no problems with multithreading etc.

8<--------------
cat /etc/apache2/mods-available/php-cgi.load

# Enable PHP4 Through CGI
ScriptAliasMatch ^/php4(.*) /usr/lib/cgi-bin/php4$1
Action application/x-httpd-php /php4
AddType application/x-httpd-php .php
-------------->8

If you want to use Apache2 + PHP4 then get yourself a php4 4.3.x+
And yes many people will welcome those packages for multiple reasons.

Greets,
 Jeroen



Reply to: