rights issue with lighttpd

Ask questions about Arch Linux ARM. Please search before making a new topic.

rights issue with lighttpd

Postby Socaltom » Sun Nov 25, 2012 10:57 pm

I used to have lighttpd working. I've made a bunch of changes since then, but now I'm having issues that I believe are related to server rights

Here is the error message I'm finding in the log
$this->bbcode_second_pass_code('', '
012-11-25 22:44:14: (log.c.118) opening errorlog '/var/log/lighttpd/error.log' failed: Perm$
lighttpd-angel.c.139: child (pid=472) exited normally with exitcode: 255
')
Here are the rights for the directory in question
$this->bbcode_second_pass_code('', '
[root@Arch Linux ARM install lighttpd]# ls -l
total 8
-rw-r--r-- 1 www root 2 Nov 25 14:48 error.log
-rw-r--r-- 1 www root 358 Nov 25 14:47 lighttpd-angel.log
')

Here is my lighttpd.conf file
$this->bbcode_second_pass_code('', '
# This is a minimal example config
# See /usr/share/doc/lighttpd
# and http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs:ConfigurationOptions

server.port = 80
server.username = "www"
server.groupname = "www"
server.document-root = "/srv/http"
server.errorlog = "/var/log/lighttpd/error.log"
dir-listing.activate = "enable"
index-file.names = ( "index.html" )
mimetype.assign = ( ".html" => "text/html", ".txt" => "text/plain", ".jpg" => "image$
')

I've used http as a user and group deleted and readded, now I've switched to the www user.
I've tried apache, but it gives me a forbidden 403 error, so I think there is something systemic going on. Any suggestions?
Thanks
Tom
used to be owned by me
Pink Pogo V2, Black Pogo V3, Zyxel NAS 325 v1,
used to be Adminstrator for
Goflex net, Black V3, Black V2
Now I have a couple of raspberry pi ( 3+ and 4)
Socaltom
 
Posts: 571
Joined: Thu Apr 07, 2011 2:21 pm
Location: The left side

Re: rights issue with lighttpd

Postby xenoxaos » Mon Nov 26, 2012 12:12 am

What are the permissions for the directory /var/log/lighttpd?
Arch Linux ARM exists and continues to grow through community support, please donate today!
xenoxaos
Developer
 
Posts: 323
Joined: Thu Jan 06, 2011 1:45 am

Re: rights issue with lighttpd

Postby bodhi » Mon Nov 26, 2012 12:28 am

$this->bbcode_second_pass_code('', '
[root@Arch Linux ARM install lighttpd]# ls -l
total 8
-rw-r--r-- 1 www root 2 Nov 25 14:48 error.log
-rw-r--r-- 1 www root 358 Nov 25 14:47 lighttpd-angel.log
')

I believe they should be own by www:www. That's what my log files show.
bodhi
 
Posts: 225
Joined: Sat Aug 13, 2011 10:06 am

Re: rights issue with lighttpd

Postby Socaltom » Mon Nov 26, 2012 12:41 am

I updated to chown www:www but still have the same error. Is there another dir that provides the tools door writing?
Tom
used to be owned by me
Pink Pogo V2, Black Pogo V3, Zyxel NAS 325 v1,
used to be Adminstrator for
Goflex net, Black V3, Black V2
Now I have a couple of raspberry pi ( 3+ and 4)
Socaltom
 
Posts: 571
Joined: Thu Apr 07, 2011 2:21 pm
Location: The left side

Re: rights issue with lighttpd

Postby xenoxaos » Mon Nov 26, 2012 12:48 am

ls -l /var/log
Arch Linux ARM exists and continues to grow through community support, please donate today!
xenoxaos
Developer
 
Posts: 323
Joined: Thu Jan 06, 2011 1:45 am

Re: rights issue with lighttpd

Postby Socaltom » Mon Nov 26, 2012 1:20 am

$this->bbcode_second_pass_code('', '

drwxrwxrwx 2 www www 4096 Nov 25 14:48 lighttpd


')$this->bbcode_second_pass_quote('xenoxaos', 'l')s -l /var/log
used to be owned by me
Pink Pogo V2, Black Pogo V3, Zyxel NAS 325 v1,
used to be Adminstrator for
Goflex net, Black V3, Black V2
Now I have a couple of raspberry pi ( 3+ and 4)
Socaltom
 
Posts: 571
Joined: Thu Apr 07, 2011 2:21 pm
Location: The left side

Re: rights issue with lighttpd

Postby xenoxaos » Mon Nov 26, 2012 1:28 am

So, both user and group 'www' exist correct? also chown -R www:www /var/log/lighttpd
Arch Linux ARM exists and continues to grow through community support, please donate today!
xenoxaos
Developer
 
Posts: 323
Joined: Thu Jan 06, 2011 1:45 am

Re: rights issue with lighttpd

Postby Socaltom » Mon Nov 26, 2012 1:58 am

$this->bbcode_second_pass_quote('xenoxaos', 'S')o, both user and group 'www' exist correct? also chown -R www:www /var/log/lighttpd

Yes both user and group exist, and they own the directory and I set the rights at 777
Tom
$this->bbcode_second_pass_code('', '
[tom@Arch Linux ARM install lighttpd]$ ls -l
total 8
-rwxrwxrwx 1 www www 2 Nov 25 14:48 error.log
-rwxrwxrwx 1 www www 577 Nov 25 15:08 lighttpd-angel.log
[tom@Arch Linux ARM install lighttpd]$


')
used to be owned by me
Pink Pogo V2, Black Pogo V3, Zyxel NAS 325 v1,
used to be Adminstrator for
Goflex net, Black V3, Black V2
Now I have a couple of raspberry pi ( 3+ and 4)
Socaltom
 
Posts: 571
Joined: Thu Apr 07, 2011 2:21 pm
Location: The left side

Re: rights issue with lighttpd

Postby Socaltom » Mon Nov 26, 2012 4:19 pm

I don't know if this has anything todo with it but...to get around the glibc issue, I manfully copied /lib to /user/lib, then used webmin to create a link from /lib to/user/lib.
FWIW I an pacman -Syu , but no change to this issue.
Tom
used to be owned by me
Pink Pogo V2, Black Pogo V3, Zyxel NAS 325 v1,
used to be Adminstrator for
Goflex net, Black V3, Black V2
Now I have a couple of raspberry pi ( 3+ and 4)
Socaltom
 
Posts: 571
Joined: Thu Apr 07, 2011 2:21 pm
Location: The left side

Re: rights issue with lighttpd

Postby bodhi » Tue Nov 27, 2012 3:37 am

$this->bbcode_second_pass_quote('Socaltom', '
')[tom@Arch Linux ARM install lighttpd]$ ls -l
total 8
-rwxrwxrwx 1 www www 2 Nov 25 14:48 error.log
-rwxrwxrwx 1 www www 577 Nov 25 15:08 lighttpd-angel.log
[tom@Arch Linux ARM install lighttpd]$


[/code]


Have you restarted lighttpd?
bodhi
 
Posts: 225
Joined: Sat Aug 13, 2011 10:06 am
Top

Next

Return to User Questions

Who is online

Users browsing this forum: No registered users and 2 guests