[Typo3-linux] apache 2 worker og prefork, fastcgi/cgi and php accelerator?

Lars E. D. Jensen ledj at dcmedia.biz
Mon Oct 31 10:23:08 CET 2005


Hi Thorsten

I'm actually running php4 (fastcgi) with apache2 configured as worker. 
The recommended way if you want thread safety is to run php4 through 
cgi/fastcgi. AND i've just compiled eaccelerator and loaded it with 
php4-cgi, and it seems to work even though the faq on eaccelerator.net 
says that it doesn't support cgi!?

So far it seems that it's twice as fast with eaccelerator activated. I'm 
using webserver stress tool 7.
Without eaccelerator my little celeron1 (tualatin) 1,4 Ghz/512mb ram 
server could take about 2500 TYPO3 pageviews per hour. With eaccelerator 
that number increased to 6-7000.

Thorsten Kahler wrote:
> Hi Lars,
> 
> we're using Apache 2 with prefork MPM and mod_php, often with Zend or
> eaccelerator (not together ;-) ) and had no problems with these setups.
> 
> AFAIK worker is not stable with mod_php, but personally I have no experience
> using cgi or fastcgi. It might work with worker MPM.
> 
> Any other experiences?
> 
> Regards
> Thorsten
> 
> Lars E. D. Jensen wrote:
> 
>>Hi
>>
>>I decided to try apache2 this weekend, I've been using 1.3 and use it in
>>production env with great success, but there's some modules available
>>for apache2 which I think sound very promising, for avoiding attacks etc.
>>
>>I've installed TYPO3 using apache2 with php4 running through fastcgi and
>>suexec. Enabled several modules such as mod_security with my own rules.
>>Now, I've tried running both apache2 as worker and prefork... both work
>>with fastcgi and performs OK (it's not mod_php though)...
>>
>>So if you have any experience using worker or prefork or some other mpm
>>regarding TYPO3 I would like to know about performance and hardware
>>specs :) The server I've tested on is an old test server with 512 mb ram
>>and 1,4 so I would like to have something to compare.
>>
>>And does a php accelerator exist for fastcgi/cgi? I'm using both Zend
>>Platform and eaccelerator, but it doesn't seem to support php-accelerators.
>>
>>Thanks
>>
>>Lars



More information about the TYPO3-linux mailing list