Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved]lighttpd nie moze pisac do pliku loga
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Polskie forum (Polish)
View previous topic :: View next topic  
Author Message
kuku
Tux's lil' helper
Tux's lil' helper


Joined: 23 Dec 2004
Posts: 142

PostPosted: Fri Nov 19, 2010 5:37 pm    Post subject: [solved]lighttpd nie moze pisac do pliku loga Reply with quote

chciałem włączyć interfejs webowy do rtorrenta i mam problem - lighttpd przy startowaniu nie daje żadnego błędu, ale przy uruchomieniu ręcznym znalazłem przyczynę. w skrócie:
Code:
kuku kuku # /etc/init.d/lighttpd restart
 * Stopping lighttpd ...                                                                                                           [ ok ]
 * Starting lighttpd ...                                                                                                           [ ok ]
kuku kuku # ps aux |grep  `cat /var/run/lighttpd.pid`
root     30303  0.0  0.0   2856   760 pts/2    S+   18:33   0:00 grep --colour=auto 30297
kuku kuku # /usr/sbin/lighttpd -f /etc/lighttpd/lighttpd.conf
kuku kuku # 2010-11-19 18:33:37: (log.c.118) opening errorlog '/var/log/lighttpd/error.log' failed: Permission denied
kuku kuku # ls -alt /var/log/lightt*
razem 8
drwxr-x---  2 lighttpd lighttpd 4096 11-19 18:25 .
drwx------ 14 root     root     4096 11-19 18:25 ..
-rw-r--r--  1 root     root        0 11-19 18:25 .keep_www-servers_lighttpd-0

gdzie muszę zmienić uprawnienia ewentualnie do jakiej grupy dodać użytkownika lighttpd żeby mógł pisać do katalogu z logami ?
edit:
albo jakie uprawnienie powinien mieć katalog /var/log ? Bo jeśli je zmienie na 755 to wszystko działa


Last edited by kuku on Fri Nov 19, 2010 6:14 pm; edited 1 time in total
Back to top
View user's profile Send private message
ch4os
Tux's lil' helper
Tux's lil' helper


Joined: 11 Jul 2006
Posts: 92
Location: Gdansk, Poland

PostPosted: Fri Nov 19, 2010 5:58 pm    Post subject: Reply with quote

Na /var/log nie powinno byc 755?, bo tylko tym rozni sie twoj config od mojego.
Back to top
View user's profile Send private message
kuku
Tux's lil' helper
Tux's lil' helper


Joined: 23 Dec 2004
Posts: 142

PostPosted: Fri Nov 19, 2010 6:07 pm    Post subject: Reply with quote

dzieki za odpowiedz - widocznie miałem coś schrzanione
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Polskie forum (Polish) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum