How to diagnose Internal Server error on Lighttpd

fastcgilighttpdlogging

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?

Best Answer

Edit:

nano /etc/lighttpd/lighttpd.conf

And put:

fastcgi.debug = 1