Install Lighttpd, PHP and MySQL on Ubuntu
commands to install aptitude and Lighttpd:
Verify that Lighttpd is running: http://localhost/ You should see a default placeholder webpage.
modify this file: /etc/php5/cgi/php.ini
Inside the file look for the following line:
Change it to this:
Finally here are the last few commands to enable the PHP configuration and FastCGI module as well as reloading the Lighttpd web server:
1. The Lighttpd default document root (On Ubuntu 10.10) is located at: /var/www
2. The lighttpd.conf file (On Ubuntu 10.10) is located at: /etc/lighttpd/lighttpd.conf
Create a new file called info.php in the /var/www folder:
Add this code to the new file and then save and exit.
Browse to http://localhost/info.php to examine all the PHP info.