Yet another APC problem

software development

#1

Hello guys!

So, i’ve installed APC like the tutorial on the wiki means… But I still got one error.
I’ve followed the fastcgi tutorial too!

At the first time that you run one PHP script it works, but, later, while I don’t kill the process, I got the error #500 - Internal server error.

The apache logs:
[Sun Dec 23 20:26:07 2007] [error] [client 201.79.128.147] FastCGI: comm with (dynamic) server “/home/xtshare/xtshare.com/cgi-bin/php5-wrapper.fcgi” aborted: (first read) idle timeout (60 sec)
[Sun Dec 23 20:26:07 2007] [error] [client 201.79.128.147] FastCGI: incomplete headers (0 bytes) received from server “/home/xtshare/xtshare.com/cgi-bin/php5-wrapper.fcgi”

My .htaccess (it’s located at /home/xtshare/xtshare.com/ folder):
Options +ExecCGI
AddHandler fastcgi-script fcg fcgi fpl
AddHandler php5-fastcgi .php
Action php5-fastcgi /cgi-bin/php5-wrapper.fcgi

My php5-wrapper.fcgi file:
#!/bin/sh
export PHPRC=./
export PHP_FCGI_CHILDREN=2
exec ./php.cgi

if you need… http://www.xtshare.com/phpinfo.php

So… Thanks for help!!