Project

General

Profile

[Solved] Lighttpd 1.4.48 -- 500 Internal Server Error (Permission denied)

Added by tpilouis about 6 years ago

Hello,

I have build a lighttpd(1.4.48) server on my MIPS target board. The lighttpd can running
on system background no problem, but when I try to access certain pages on my web-server
I get the following error in my log file:

/var/log # cat breakage.log
/var/www: Permission denied
/var/www: Permission denied

This results in my page displaying "500 Internal Server Error". I try to use
"chmod -R 755 /var/www" but get same test result.

Need your help Thanks!

My Configuration of lighttpd:

var.home_dir = "/var/lighttpd/sbin/"
var.conf_dir = "/var/tmp/"
index-file.names = ( "webctrl.cgi" )
server.max-connections = 128
server.breakagelog = "/var/log/breakage.log"
server.document-root = "/var/www/"
server.port = 80
server.event-handler = "select"
server.modules = (
"mod_cgi",
)

cgi.assign = (
".cgi" => "/var/www/"
)


Replies (4)

RE: Lighttpd 1.4.48 -- 500 Internal Server Error (Permission denied) - Added by tpilouis about 6 years ago

Hi,

Thanks your quickly replay, My system is not install SELinux.

RE: Lighttpd 1.4.48 -- 500 Internal Server Error (Permission denied) - Added by gstrauss about 6 years ago

Taking a second look, this is your problem:

cgi.assign = (
".cgi" => "/var/www/" 
)

/var/www is not an executable that can run your CGI. Please see the documentation: Docs_ModCGI

RE: [Solved] Lighttpd 1.4.48 -- 500 Internal Server Error (Permission denied) - Added by tpilouis about 6 years ago

Yes, Its a problem. I modify cgi.assign as below:

cgi.assign = (
".cgi" => ""
)

Now its working fine. Thanks again!

    (1-4/4)