I'm using Lighttpd web server. I was trying to experiment with a new simple module whose purpose is to write the http request details in a text file. But after creating that module and compiling it, every time I start the web server it becomes dead within a few minutes. Then when I check the status it says that the web server is dead but pid file exists. In terminal the following shows up.
[root@konsult2_vm ~]# service lighttpd status lighttpd dead but pid file exists
More over when I try to locate the lighttpd.pid file it locates it like this
[root@konsult2_vm ~]# locate lighttpd.pid
/var/run/lighttpd.pid
But then when I go to folder and look for it I can't find it. I'm totally confused. How can I stop lighttpd from getting dead, what could be the solution?
Thanks