"lighttpd" giving 403 Forbidden error

1,866 views
Skip to first unread message

Nishith Vyas

unread,
Aug 16, 2011, 4:40:25 AM8/16/11
to vglug
"lighttpd" giving 403 Forbidden error
________________________________
Hello,

I have installaed "lighttpd" on my CentOS 5.4, i386 PC. Due to some configuration issues in "apache httpd", i tried to use "lighttpd" as a new webserver,which is having light wieght process environment.

I used "yum install lighttpd" & installed well without any dependency problem.

After the installation,i have set certain parameters in /etc/lighttpd/lighttpd.conf file i.e. "DocumentRoot" etc....

The "DocumentRoot" is /srv/www/lighttpd/

Now, inside the "DocumentRoot", I have created sample "index.html" & "index.php" file which works well. 

After that,i have put "phpmyadmin" directory & got below error.

403 Forbidden

I am working on "apache httpd" since more then 3 years & i have no technical expertise on "lighttpd". 

If you put same "phpmyadmin" directory on "/var/www/html" DocumentRoot,which is meant for "apache httpd", it worked well.

Kindly let me know if someone knows the solution.

Advanced Thanks & Congratulation To All Guys Who is Working & Dealing with "lighttpd" 

Here is my "lighttpd.conf" file.
#####################################################################################################
My default "DocumentRoot" is "/var/www/html/" & if you put any sample "index.html" file on it, it shows the page. But, if you place a directory on the same "DocumentRoot", then it gives "403 Forbidden" error.

Any suggestions? Below is my "lighttpd.conf" configured parameter file.

var.log_root = "/var/log/lighttpd"
var.server_root = "/var/www/html"
var.state_dir = "/var/run"
var.home_dir = "/var/lib/lighttpd"
var.conf_dir = "/etc/lighttpd/lighttpd.conf"
var.vhosts_dir = server_root + "/vhosts"
var.cache_dir = "/var/cache/lighttpd"
var.socket_dir = home_dir + "/sockets"
var.socket_dir = home_dir + "/sockets"
server.port = 8080
server.username = "lighttpd"
server.groupname = "lighttpd"
server.document-root = "/var/www/html"
server.tag = "company name"
server.pid-file = state_dir + "/lighttpd.pid"
server.errorlog = "/var/log/lighttpd/error.log"
include "conf.d/debug.conf"
server.event-handler = "linux-sysepoll"
server.network-backend = "linux-sendfile"
server.stat-cache-engine = "simple"
server.max-connections = 1024
index-file.names = ( "index.php", "index.html" )
url.access-deny = ( "~", ".inc" )

$HTTP["url"] =~ "\.pdf$" {
server.range-requests = "disable"
}

static-file.exclude-extensions = ( ".php", ".pl", ".fcgi", ".scgi" )
include "conf.d/mime.conf"
include "conf.d/dirlisting.conf"
server.follow-symlink = "enable"
server.upload-dirs = ( "/var/tmp" )


#####################################################################################################


--
With Best Regards,
Nishith N.Vyas
Call :- +91 9879597301
Ahmedabad

linux_boy

unread,
Aug 16, 2011, 8:49:33 AM8/16/11
to VGLUG
Hi Just check the user and group permissions on the document root set.
also do the following

chmod -R 755 "path to document root"

it will surely solve the issue, also you can check the following link
for further info -
http://www.indianhostinginfo.com

Regards,
linux boy

On Aug 16, 1:40 pm, Nishith Vyas <nishithnv...@gmail.com> wrote:
> "lighttpd" giving 403 Forbidden error
> ________________________________
> Hello,
>
> I have installaed "lighttpd" on my CentOS 5.4, i386 PC. Due to some
> configuration issues in "apache httpd", i tried to use "lighttpd" as a new
> webserver,which is having light wieght process environment.
>
> I used "yum install lighttpd" & installed well without any dependency
> problem.
>
> After the installation,i have set certain parameters in
> /etc/lighttpd/lighttpd.conf file i.e. "DocumentRoot" etc....
>
> The "DocumentRoot" is /srv/www/lighttpd/
>
> Now, inside the "DocumentRoot", I have created sample "index.html" &
> "index.php" file which works well.
>
> After that,i have put "phpmyadmin" directory & got below error.
>
> *403 Forbidden*
Reply all
Reply to author
Forward
0 new messages