Hi all,
Hopefully someone can help me sort this issue out..
I am running Apache with MPM-ITK and php-cgi as detailed in the setup guides in the Linode Library.. Each virtual server runs as the users that own the virtual server also as documented..
I want to now switch to using mod_fcgid but I seem to be getting an error..
Chrome throws this error.
Code:
Error 324 (net::ERR_EMPTY_RESPONSE): The server closed the connection without sending any data.
The virtual server error log shows..
Code:
root@server1:~# tail /home/www.site.com/logs/error.log
[Sat Aug 13 19:37:37 2011] [emerg] (13)Permission denied: mod_fcgid: can't get lock in pid 7426
[Sat Aug 13 19:37:39 2011] [emerg] (13)Permission denied: mod_fcgid: can't get lock in pid 7427
[Sat Aug 13 19:37:40 2011] [emerg] (13)Permission denied: mod_fcgid: can't get lock in pid 7428
[Sat Aug 13 19:37:41 2011] [emerg] (13)Permission denied: mod_fcgid: can't get lock in pid 7429
[Sat Aug 13 19:37:45 2011] [emerg] (13)Permission denied: mod_fcgid: can't get lock in pid 7430
[Sat Aug 13 19:40:00 2011] [emerg] (13)Permission denied: mod_fcgid: can't get lock in pid 7442
[Sat Aug 13 19:41:27 2011] [emerg] (13)Permission denied: mod_fcgid: can't get lock in pid 7444
[Sat Aug 13 20:06:56 2011] [emerg] (13)Permission denied: mod_fcgid: can't get lock in pid 7469
[Sat Aug 13 20:07:07 2011] [emerg] (13)Permission denied: mod_fcgid: can't get lock in pid 7470
[Sat Aug 13 20:07:07 2011] [emerg] (13)Permission denied: mod_fcgid: can't get lock in pid 7471
My fcgid config is pretty basic..
I'm running Ubuntu 10.04..
I ran "aptitude install libapache2-mod-fcgid"
Created /etc/apache2/conf.d/php-fcgid.conf
Code:
<IfModule fcgid_module>
AddHandler fcgid-script .fcgi .php
FcgidMaxRequestsPerProcess 1000
FcgidWrapper /usr/bin/php5-fcgid .php
</IfModule>
Created /usr/bin/php5-fcgid
Code:
#!/bin/sh
PHP_FCGI_MAX_REQUESTS=1000
export PHP_FCGI_MAX_REQUESTS
export PHPRC="/etc/php5/cgi"
exec /usr/bin/php5-cgi
I made the script executable..
I added +ExecCGI to the virtual server config file..
I restarted Apache..
What am I doing wrong??
Any help would be appreciated..
TIA