You are not logged in.

#1 2007-10-23 07:53:46

yac
Member
Registered: 2007-10-23
Posts: 3

lighty and apache double-failure

Hi. After some time the time for Arch has come again. Everything setted up nad running... excluding ANY webserver. I prefer lighttpd as apache is overkill for me... I installed lighttpd, php and fcgi, set

cgi.fix_pathinfo=1

in php.ini and uncommented few lines in lighhtpd.conf.

/etc/rc.d/lighttpd start

results in [DONE] but it fails(wtf?!). Let's try it manually:

lighttpd -f /etc/lighttpd/lighttpd.conf
2007-10-23 09:50:13: (mod_fastcgi.c.900) bind failed for: unix:/var/run/lighttpd/php-fastcgi.socket-0 No such file or directory 
2007-10-23 09:50:13: (mod_fastcgi.c.1336) [ERROR]: spawning fcgi failed. 
2007-10-23 09:50:13: (server.c.895) Configuration of plugins failed. Going down.

I checked howto, nothing interesting here... whatever. Apache just dies insted.

apachectl -k start

results in return code 1 without any output, syntax is allright(I didn't modifiet shipped config after all)

apachectl -t
Syntax OK

The question is... WTF?! Installing both of these webservers was a matter of a minute in both debian and gentoo and this is fresh Arch Don't Panic mostly stable install, so I really don't understand... Any hints appreciated.

Offline

#2 2007-10-29 06:36:09

moses
Member
From: Finland
Registered: 2006-07-02
Posts: 28

Re: lighty and apache double-failure

Check the logs for possible hints


- Judge a pig competition? But I'm no super genius... or are I?

Offline

#3 2007-10-29 17:40:43

jordi
Member
Registered: 2006-12-16
Posts: 103
Website

Re: lighty and apache double-failure

2007-10-23 09:50:13: (mod_fastcgi.c.900) bind failed for: unix:/var/run/lighttpd/php-fastcgi.socket-0 No such file or directory

what does your `fastcgi.server = ( ".php" = >` part look like?

Offline

#4 2007-11-01 07:28:18

yac
Member
Registered: 2007-10-23
Posts: 3

Re: lighty and apache double-failure

Thanks for suggestions. I had to assign lighty to a user and create /var/run/lighttpd with right permissions for that user. It works fine now, but I don't understand why this wasn't done automaticaly?

Offline

#5 2007-11-11 11:14:51

yac
Member
Registered: 2007-10-23
Posts: 3

Re: lighty and apache double-failure

pixitha wrote:

Could you elaborate on how you actually got it to work, im a lil confused on how to assign lighttpd as the user and crate the file thats needed in the /var/run/ director.

I changed user and group in lighttpd.conf to www, changed logrotate configuration as suggested, chowned /var/log/lighttpd to www:www and removed and recreated /var/run/lighttpd with mentioned permissions. Ugly yet working...

Offline

Board footer

Powered by FluxBB