Lighttpd+PHP

Differences between revisions 3 and 4
Revision 3 as of 2007-01-26 08:22:35
Size: 771
Editor: 195
Comment:
Revision 4 as of 2007-01-26 08:24:54
Size: 850
Editor: 195
Comment:
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:

required abilities:
* open a terminal
* create files
* edit config files

This is a how-to to on installing and setting up lighttpd and php on dapper. Lighttpd or "lighty" is a webserver with a very low use of resources.

required abilities: * open a terminal * create files * edit config files

Install the packages we need: (this may not be all, but these two will automatically download the rest as depencies)

sudo apt-get install lighttpd php5

edit the config file /etc/lighttpd/lighttpd.conf and add the line

#include "mod_fastcgi.conf"

now add the file /etc/lighttpd/mod_fastcgi.conf

 server.modules += ("mod_fastcgi")
 fastcgi.server = ( ".php" =>
   ( "localhost" =>
     (
       "host"     => "127.0.0.1",
       "port"     => 1026,
       "bin-path" => "/usr/bin/php-cgi"
     )
   )
 )

source: http://gentoo-wiki.com/HOWTO_Lighttpd

Lighttpd+PHP (last edited 2010-10-26 09:48:54 by 0xbcb2ea3d)