[Supervisor-users] FastCGI - socket not being created with correct user
Phillip Oldham
phill at activityhq.com
Mon Oct 19 03:17:20 EDT 2009
Supervisord is being started as root, and the `user` param is being set:
[fcgi-program:php]
command=/usr/bin/php-cgi
socket=unix:///tmp/php.sock
process_name=%(program_name)s_%(process_num)02d
numprocs=4
user=nginx
environment=PHP_FCGI_MAX_REQUESTS=50,PHP_FCGI_CHILDREN=4
but the socket/file (/tmp/php.sock) is created as root:
[root at rezbot ~]# ls -alh /tmp
...
srwxr-xr-x 1 root root 0 Oct 17 08:22 php.sock
...
any suggestions, other than setting it to listen on a port instead?
More information about the Supervisor-users
mailing list