You are not logged in.

#1 2008-10-20 17:45:54

patogen
Member
Registered: 2008-05-11
Posts: 86

lighttpd permission denied

I'm having troubles starting lighttpd after kernel upgrade. Doing:

$ /etc/rc.d/lighttpd start
2008-10-20 19:44:30: (log.c.84) opening errorlog '/var/log/lighttpd/error.log' failed: Permission denied
2008-10-20 19:44:30: (server.c.888) Opening errorlog failed. Going down.

$ ls /var/log/lighttpd
total 84K
drwxr-xr-x 2 root   root   4.0K 2008-10-20 19:39 ./
drwxr-xr-x 8 root   root   4.0K 2008-10-20 00:02 ../
-rw-r--r-- 1 nobody nobody    0 2008-10-20 00:02 access.log
-rw-r--r-- 1 nobody nobody    0 2008-10-12 00:02 access.log.1
-rw-r--r-- 1 nobody nobody    0 2008-10-06 00:02 access.log.2
-rw-r--r-- 1 nobody nobody    0 2008-09-28 00:02 access.log.3
-rw-r--r-- 1 nobody nobody  72K 2008-10-19 04:16 access.log.4
-rw-r--r-- 1 nobody nobody    0 2008-10-20 00:02 access-ssl.log
-rw-r--r-- 1 nobody nobody    0 2008-10-12 00:02 access-ssl.log.1
-rw-r--r-- 1 nobody nobody    0 2008-10-06 00:02 access-ssl.log.2
-rw-r--r-- 1 nobody nobody    0 2008-09-28 00:02 access-ssl.log.3
-rw-r--r-- 1 nobody nobody    0 2008-09-22 00:02 access-ssl.log.4
-rw-r--r-- 1 nobody nobody    0 2008-10-20 19:39 error.log
-rw-r--r-- 1 nobody nobody    0 2008-10-20 00:02 error-ssl.log
-rw-r--r-- 1 nobody nobody    0 2008-10-12 00:02 error-ssl.log.1
-rw-r--r-- 1 nobody nobody    0 2008-10-06 00:02 error-ssl.log.2
-rw-r--r-- 1 nobody nobody    0 2008-09-28 00:02 error-ssl.log.3
-rw-r--r-- 1 nobody nobody    0 2008-09-22 00:02 error-ssl.log.4

I have no idead on how to solve this problem or how to start, I tried to do a bit of googling, but I came out empty. Any ideas?

Edit: Changed topic to a slightly less bad one.

Last edited by patogen (2008-10-20 17:52:00)


We met up with the aliens and guess what? They have no word for fluffy!

Offline

#2 2008-10-20 20:09:45

daf666
Member
Registered: 2007-04-08
Posts: 470
Website

Re: lighttpd permission denied

are you not root?

Offline

#3 2008-10-21 05:09:19

patogen
Member
Registered: 2008-05-11
Posts: 86

Re: lighttpd permission denied

Yes, I'm root (via sudo, and I'm in /etc/sudoers). The same applies if I use su to go to my root account and try to start lighttpd.


We met up with the aliens and guess what? They have no word for fluffy!

Offline

#4 2008-10-21 06:32:56

suolx
Member
From: Finland, Oulu
Registered: 2007-08-06
Posts: 29

Re: lighttpd permission denied

see /etc/lighttpd/lighttpd.conf if the daemon is run with user "http"...if so then try "chown -R http:http /var/log/lighttpd/"

Offline

#5 2008-10-21 13:30:25

patogen
Member
Registered: 2008-05-11
Posts: 86

Re: lighttpd permission denied

suolx wrote:

see /etc/lighttpd/lighttpd.conf if the daemon is run with user "http"...if so then try "chown -R http:http /var/log/lighttpd/"

Thank you, this solved the problem. I wonder why permission were changed or what caused this on new kernel. But it is solved now anyway, so that is nice!


We met up with the aliens and guess what? They have no word for fluffy!

Offline

Board footer

Powered by FluxBB