Apache and PHP with fcgi on 10.04
Wipe_Out
wipe_out at users.sourceforge.net
Sat Aug 13 23:04:33 UTC 2011
On 8 August 2011 00:10, Jordon Bedwell <jordon at envygeeks.com> wrote:
> Snippet from Wipe_Out On 07/08/11 14:13:
> ---
>
> sudo apt-get install php5-cgi \
> apache2 \
> libapache2-mod-fcgid \
> apache2-mpm-itk --no-install-recommends
>
> ---
>
> sudo vim /etc/apache2/fcgi.bash
> Contents:
>
> #!/bin/sh
>
> # The basics
> export PHPRC=/etc/php5/cgi/
> export PHP_FCGI_CHILDREN=3
> export PHP_FCGI_MAX_REQUESTS=5000
>
> # Time for the fun
> exec /usr/lib/cgi-bin/php5
>
> ---
>
> sudo chmod a+x /etc/apache2/fcgi.bash
>
> --
> sudo echo "AddHandler fcgid-script .php" >> \
> /etc/apache2/mods-available/fcgid.conf
>
> ---
>
> sudo echo "FCGIWrapper /etc/apache2/fcgi.bash .php" >> \
> /etc/apache2/mods-available/fcgid.conf
>
> ---
>
>
>
Hi Jordon,
I have tried the basic setup you suggested along with others I have found
via google but I can't get it to work..
Chrome shows this error..
Error 324 (net::ERR_EMPTY_RESPONSE): The server closed the connection
without sending any data.
The error log for the virtual server shows.
root at 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
Any ideas why this is happening?
Thanks..
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20110814/42a153b4/attachment.html>
More information about the ubuntu-users
mailing list