Php – Lighttpd getting 403 forbidden page

lighttpdPHP

i have newly installed lighttpd in ubuntu 9.10
first it showed the detault page and i changed the permission of /var/www/ directory to 777
and now its saying 403 forbidden

my php-cgi -v

PHP 5.2.10-2ubuntu6.4 with Suhosin-Patch 0.9.7 (cgi-fcgi) (built: Jan  6 2010 22:34:28)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies

php -v

PHP 5.2.10-2ubuntu6.4 with Suhosin-Patch 0.9.7 (cli) (built: J
6) 
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies

and i have added these line in lighttpd.conf file

fastcgi.server = ( ".php" => ((
                     "bin-path" => "/usr/bin/php-cgi",
                     "socket" => "/tmp/php.socket"
                 )))

still getting same error….

Best Answer

Most probably the user you are running Lighttpd on doesn't have access to /var/

Related Topic