:: how to enable php-cgi on lighttpd
+ configure lighttpd for php fast cgi

# vi /etc/lighttpd/lighttpd.conf
### add some line like :
### php fastcgi on lighttpd
fastcgi.server = (   ".php" => (
      (
          "bin-path" => "/usr/bin/php-cgi",
          "socket" => "/tmp/php.socket"
      )
   )
)

+ restarting lighttpd

# /etc/init.d/lighttpd restart

+ testing file php

# vi /var/www/info.php
<?php
	phpinfo();
?>

then open the script using your browser.

:: links
+ google
+ cyberciti

Hi, I’m Sysadmin.ID

One Comment

Leave a Reply

Your email address will not be published. Required fields are marked *