1) Run:
apt-get install lighttpd php5-cgi php5-mysql mysql-server mysql-client2) create /etc/lighttpd/conf-available/10-php.conf
server.modules += ( "mod_fastcgi" )3) Run:
fastcgi.server = ( ".php" => ((
"bin-path" => "/usr/bin/php5-cgi",
"socket" => "/tmp/php.socket",
)))
/usr/sbin/lighty-enable-mod php
4) edit /etc/lighttpd/lighttpd.conf
Change
server.bind = "localhost"to
#server.bind = "localhost"
5) edit /etc/php5/cgi/php.ini
Add
cgi.fix_pathinfo = 1to the end of the file
6) Run:
/etc/init.d/lighttpd force-reload
No comments:
Post a Comment