Andreas Rydberg

Home

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.

  • PHP
  • Ubuntu

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <em> <strong> <cite> <code> <ul> <ol> <li>
  • Lines and paragraphs break automatically.

More information about formatting options

Blog posts

2011.12.16
Appland launched
2011.12.09
Learning Java, again - part 1
2011.11.20
Installing Lighttpd on Ubuntu 11.10
2011.03.15
New job and Aegir
2010.11.16
Acquia Drupal stack installer
  •  
  • 1 of 3
  • ››
Syndicate content

Powered by Drupal, an open source content management system