DeployLighttpdPHPServer

From FedoraProject

Revision as of 16:10, 14 August 2012 by Kaio (Talk | contribs)

Jump to: navigation, search

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

  1. Install package "php-cli".
  2. Install package "lighttpd".

  3. Install package "lighttpd-fastcgi".

  4. You can install it at once with yum:

  5. $ su -c "yum install php-cli lighttpd lighttpd-fastcgi"
    


Modules Setup

  1. Gain access as user "root".
  2. Open /etc/lighttpd/lighttpd.conf and uncomment the line:

  3. ##include "modules.conf"
    
  4. Open /etc/lighttpd/modules.conf and uncomment the line:

  5. #include "conf.d/fastcgi.conf"
    
  6. Open /etc/lighttpd/conf.d/fastcgi.conf and add the following lines:

  7. fastcgi.server             = ( ".php" =>
                                   ( "localhost" =>
                                     (
                                       "socket" => "/var/run/lighttpd/php-fastcgi.socket",
                                       "bin-path" => "/usr/bin/php-cgi"
                                     )
                                   )
                                )