Project

General

Profile

"service lighttpd start" fails with CentOS 5.2

Added by Suzaku over 15 years ago

Fair warning: I'm fully aware this may be operator error. :)

Lighttpd version: 1.4.22-2.el5.rf
Linux version: CentOS 5.2 (64-bit)

I can start lighttpd from the command line by typing "lighttpd -f /etc/lighttpd/lighttpd.conf" and everything works beautifully. Running "service lighttpd start" returns [Ok], but it's not shown in the process list and browsers can't connect.

Has anyone else had this problem? Is there a known solution?

Thanks,

Steven


Replies (2)

RE: "service lighttpd start" fails with CentOS 5.2 - Added by Suzaku over 15 years ago

Update:

On "service lighttpd start", error.log concludes:

2009-07-20 19:59:04: (log.c.97) server started 
2009-07-20 19:59:04: (mod_fastcgi.c.924) bind failed for: unix:/tmp/php-fastcgi.socket-0 Permission denied 
2009-07-20 19:59:04: (mod_fastcgi.c.1365) [ERROR]: spawning fcgi failed. 
2009-07-20 19:59:04: (server.c.902) Configuration of plugins failed. Going down.

On "lighttpd -f /etc/lighttpd/lighttpd.conf", no error is reported.

Both commands are run as root.

Steven

RE: "service lighttpd start" fails with CentOS 5.2 - Added by Suzaku over 15 years ago

Fixed:

mkdir /var/run/lighttpd
touch /var/run/lighttpd/php-fastcgi.socket
chown -R lighttpd:lighttpd /var/run/lighttpd

Updating socket in lighttpd.conf to point to /var/run/lighttpd/php-fastcgi.socket solves the problem.

Steven

    (1-2/2)