Ubuntu Lighttpd + PHP quick installation.

Lighttpd (pronounced “lighty”) is an open-source WebServer optimized for speed-critical environments than common products while remaining standards-compliant, secure and flexible.
It was originally written by Jan Kneschke as a proof-of-concept of the c10k problem (how to handle 10,000 connections in parallel on one server) and has gained worldwide popularity.

The low memory footprint (compared to other web servers), small CPU load and speed optimizations make lighttpd suitable for servers that are suffering load problems, or for serving static media separately from dynamic content.
Lighttpd is free software/open source, and is distributed under the BSD license.

Lighttpd supports the FastCGI, SCGI and CGI interfaces to external programs, permitting web applications written in any programming language to be used with the server.
As a particularly popular language, PHP performance has received special attention. Lighttpd’s FastCGI can be configured to support PHP with opcode caches (like APC) properly and efficiently.

Install of Lighttpd and PHP (FastCGI) in Ubuntu is very simple and can be achieved in a couple of steps.

Install main needed packages (these will automatically ask and download the rest as dependencies):

sudo apt-get install lighttpd php5-cgi

Enable the fastcgi module and the php configuration:

sudo lighty-enable-mod fastcgi 
sudo lighty-enable-mod fastcgi-php

lighttpd daemon reload after module configuration:

sudo service lighttpd force-reload

Default Root-Directory is located in /var/www/ .

Comments are closed.