Installing Lighttpd on Ubuntu 11.10
Andreas — Sun, 2011-11-20 00:07
When installing Lighttpd on Ubuntu 11.10 remember to enable "fastcgi-php" as well. After an hour of googling I still couldn't get PHP to work. I created an empty index.php in the webroot (/var/www) and got "403 - Forbidden".
Until I found the file /etc/lighttpd/conf-available/15-fastcgi-php.conf. Apparently you need to enable "fastcgi" as well as "fastcgi-php". Like this in bash: sudo lighty-enable-mod fastcgi-php.
This is how you install Lighttpd with PHP 5:
sudo aptitude install lighttpd php5-cgi
sudo lighttpd-enable-mod fastcgi fastcgi-php
I couldn't find any information about this using Google, so I hope this helps someone.
Post new comment