From Fedora Project Wiki
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" ) ) )