From Fedora Project Wiki
(add "installation") |
(add module set-up) |
||
Line 5: | Line 5: | ||
== Installation == | == Installation == | ||
<ol><li> | |||
Install package "php-cli". | |||
</li><li> | |||
Install package "lighttpd". | |||
<pre>$ su -c "yum install php-cli lighttpd lighttpd-fastcgi"</pre> | </li><li> | ||
Install package "lighttpd-fastcgi". | |||
</li><li> | |||
You can install it at once with yum: | |||
</li><pre> | |||
$ su -c "yum install php-cli lighttpd lighttpd-fastcgi" | |||
</pre></ol> | |||
== Modules Setup == | |||
<ol><li> | |||
Gain access as user "root". | |||
</li><li> | |||
Open /etc/lighttpd/lighttpd.conf and uncomment the line: | |||
</li><pre> | |||
##include "modules.conf" | |||
</pre><li> | |||
Open /etc/lighttpd/modules.conf and uncomment the line: | |||
</li><pre> | |||
#include "conf.d/fastcgi.conf" | |||
</pre><li> | |||
Open /etc/lighttpd/conf.d/fastcgi.conf and add the following lines: | |||
</li><pre> | |||
fastcgi.server = ( ".php" => | |||
( "localhost" => | |||
( | |||
"socket" => "/var/run/lighttpd/php-fastcgi.socket", | |||
"bin-path" => "/usr/bin/php-cgi" | |||
) | |||
) | |||
) | |||
</pre></ol> |
Revision as of 16:10, 14 August 2012
Introduction
This is the procedures for deploying a Lighttpd + PHP server on Fedora. This has been done on Fedora 17 which systemd is built in.
Installation
- Install package "php-cli".
- Install package "lighttpd".
- Install package "lighttpd-fastcgi".
- You can install it at once with yum:
$ su -c "yum install php-cli lighttpd lighttpd-fastcgi"
Modules Setup
- Gain access as user "root".
- Open /etc/lighttpd/lighttpd.conf and uncomment the line:
-
Open /etc/lighttpd/modules.conf and uncomment the line:
-
Open /etc/lighttpd/conf.d/fastcgi.conf and add the following lines:
##include "modules.conf"
#include "conf.d/fastcgi.conf"
fastcgi.server = ( ".php" => ( "localhost" => ( "socket" => "/var/run/lighttpd/php-fastcgi.socket", "bin-path" => "/usr/bin/php-cgi" ) ) )