Setting up lighttpd + PHP

lighttpd is lighter, faster http server available out there and now its much more easier to setup.

Install lighty

sudo apt-get -y install lighttpd

Enable FastCGI module

sudo lighttpd-enable-mod fastcgi
sudo /etc/init.d/lighttpd restart

Install PHP support

sudo apt-get -y install php5-cgi

Setup MySQL

sudo apt-get -y install php5-mysql mysql-server phpmyadmin
cd /var/www
ln -s /usr/share/phpmyadmin/ phpmyadmin
sudo /etc/init.d/lighttpd restart

Goto http://localhost/phpmyadmin/ and enjoy mysql management console.

Thats it, now you have a lighttpd server that can crunch PHP pages.

Comments

Anonymous said…
instead of
sudo lighttpd-enable-mod fastcgi

do
sudo lighty-enable-mod fastcgi

then restart the server with
/etc/init.d/lighttpd force-reload

Popular posts from this blog

Easy network traffic shaping on your ubuntu system

Multi touch for any,all synaptics touchpad

winetricks - install wine application perquisites with ease