Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Cherokee: users

Attemping to run cherokee as user other than root fails executing php-cgi

 

 

Cherokee users RSS feed   Index | Next | Previous | View Threaded


imagenesis at gmail

Jul 4, 2009, 11:42 PM

Post #1 of 3 (288 views)
Permalink
Attemping to run cherokee as user other than root fails executing php-cgi

I have specified cherokee to run as cherokee-server:cherokee-server. I am
getting the following message:

Cherokee Web Server *0.99.20* (Jul 5 2009): Listening on port ALL:80, TLS
disabled, IPv6 enabled, using epoll, 4096 fds system limit, max. 2041
connections, caching I/O, 40 threads, 51 connections per thread, standard
scheduling policy
PID 6968: launched '/bin/sh -c exec /opt/php5-fastcgi/bin/php-cgi -c
/opt/php5-fastcgi/bin -b /tmp/cherokee-php.socket' with uid=32009, gid=32012
PID 6968: exited re=255
PID 6972: launched '/bin/sh -c exec /opt/php5-fastcgi/bin/php-cgi -c
/opt/php5-fastcgi/bin -b /tmp/cherokee-php.socket' with uid=32009, gid=32012
PID 6972: exited re=255

I was getting another error regarding spawner.c while running 0.99.17 which
was fixed in 0.99.18. php-cgi has permissions 755 and is owned by root:root,
as well as php.ini.

--
Phone: 240-529-6770
Aim: flysarescary


jorge.sarmiento at gmail

Jul 4, 2009, 11:58 PM

Post #2 of 3 (274 views)
Permalink
Re: Attemping to run cherokee as user other than root fails executing php-cgi [In reply to]

turn off Cherokee, delete the socket (# rm /tmp/cherokee-php.socket) and
run cherokee-worker with new permissions, as soon as a fcgi process is
launched a new socket will be created with correct permissions.

additional tip:
if you use CentOS also change the permissions of the php session directory:
# chgrp cherokee /var/lib/php/session/ -Rf

Jorge S.

/tmp/cherokee-php.socket

On Sun, Jul 5, 2009 at 1:42 AM, Hello <imagenesis[at]gmail.com> wrote:

> I have specified cherokee to run as cherokee-server:cherokee-server. I am
> getting the following message:
>
> Cherokee Web Server *0.99.20* (Jul 5 2009): Listening on port ALL:80, TLS
> disabled, IPv6 enabled, using epoll, 4096 fds system limit, max. 2041
> connections, caching I/O, 40 threads, 51 connections per thread, standard
> scheduling policy
> PID 6968: launched '/bin/sh -c exec /opt/php5-fastcgi/bin/php-cgi -c
> /opt/php5-fastcgi/bin -b /tmp/cherokee-php.socket' with uid=32009, gid=32012
> PID 6968: exited re=255
> PID 6972: launched '/bin/sh -c exec /opt/php5-fastcgi/bin/php-cgi -c
> /opt/php5-fastcgi/bin -b /tmp/cherokee-php.socket' with uid=32009, gid=32012
> PID 6972: exited re=255
>
> I was getting another error regarding spawner.c while running 0.99.17 which
> was fixed in 0.99.18. php-cgi has permissions 755 and is owned by root:root,
> as well as php.ini.
>
> --
> Phone: 240-529-6770
> Aim: flysarescary
>
> _______________________________________________
> Cherokee mailing list
> Cherokee[at]lists.octality.com
> http://lists.octality.com/listinfo/cherokee
>
>


alvaro at alobbs

Jul 5, 2009, 1:01 AM

Post #3 of 3 (272 views)
Permalink
Re: Attemping to run cherokee as user other than root fails executing php-cgi [In reply to]

Hello²,

On 05-jul-09, at 08:42, Hello wrote:

> PID 6968: launched '/bin/sh -c exec /opt/php5-fastcgi/bin/php-cgi -
> c /opt/php5-fastcgi/bin -b /tmp/cherokee-php.socket' with uid=32009,
> gid=32012
> PID 6968: exited re=255
> PID 6972: launched '/bin/sh -c exec /opt/php5-fastcgi/bin/php-cgi -
> c /opt/php5-fastcgi/bin -b /tmp/cherokee-php.socket' with uid=32009,
> gid=32012
> PID 6972: exited re=255


As Jorge Sarmiento has pointed out, the problem seems to be permission
related. By some reason the 'cherokee-server' user either cannot
execute "/opt/php5-fastcgi/bin/php-cgi", or cannot write the Unix
socket "/tmp/cherokee-php.socket".

--
Octality
http://www.octality.com/

_______________________________________________
Cherokee mailing list
Cherokee[at]lists.octality.com
http://lists.octality.com/listinfo/cherokee

Cherokee users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.