6

I have Lighttpd on Centos 5 with Fcgi and Memcached. Periodically, once per week or two i get internal server error 500 and i must manually restart lighttpd to get it to work again.

In my lighttpd config I've defined error log file:

server.errorlog             = "/home/lxadmin/httpd/lighttpd/error.log"

But when I open it, it has no rows for last days, only one month ago.

So my question is how to diagnose what is the issue and how to enable error log for my configuration?

0

2 Answers 2

3

Edit:

nano /etc/lighttpd/lighttpd.conf

And put:

fastcgi.debug = 1
2

My guess is that the problem is related with trouble connecting with the fcgi processes. Have you tried to strace lighttpd process when the internal server errors are happening? That should give you a clue of what's happening. Try something like this:

strace -p `pidof lighttpd` -o strace.output

then take a look at strace.output.

Hope this helps.

3
  • And by the way, check if lighttpd has permissions to write to the error_log. Might be an issue as well. May 12, 2010 at 10:37
  • How can I contact with you in private? May 12, 2010 at 13:34
  • @Tomaszs: direct message me on twitter (@mramos29) May 16, 2010 at 23:34

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .