Lighttpd+PHP

Differences between revisions 1 and 10 (spanning 9 versions)
Revision 1 as of 2006-01-04 11:43:19
Size: 78
Editor: 203
Comment: new page, not much yet
Revision 10 as of 2009-08-10 12:31:56
Size: 883
Editor: mail
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
This is a how-to to on installing and setting up lighttpd and php on breezy. 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 dependencies)
{{{
sudo apt-get install lighttpd php5-cgi
}}}



edit the config file '''/etc/lighttpd/lighttpd.conf''' and add:
{{{
include "mod_fastcgi.conf"
}}}


now add the file '''/etc/lighttpd/mod_fastcgi.conf'''
{{{
 server.modules += ("mod_fastcgi")
 fastcgi.server = ( ".php" =>
   ( "localhost" =>
     (
       "bin-path" => "/usr/bin/php5-cgi",
       "socket" => "/tmp/php.socket"
     )
   )
 )
}}}

and reload the lighttpd daemon
{{{
sudo /etc/init.d/lighttpd reload
}}}
----
CategoryLookMergeDelete

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 dependencies)

sudo apt-get install lighttpd php5-cgi

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

include "mod_fastcgi.conf"

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

 server.modules += ("mod_fastcgi")
 fastcgi.server = ( ".php" =>
   ( "localhost" =>
     (
       "bin-path" => "/usr/bin/php5-cgi",
       "socket" => "/tmp/php.socket"
     )
   )
 )

and reload the lighttpd daemon

sudo /etc/init.d/lighttpd reload


CategoryLookMergeDelete

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