First we could run php-fcgi use this command:php-fcgi -b 1026 &
Add lighttpd.conf as follows:
# load module
server.modules = (
"mod_webdav",
"mod_fastcgi",
"mod_cgi",
)
# setting for webdav
$HTTP["url"] =~ "^/dav($|/)" {
webdav.activate = "enable"
webdav.is-readonly = "disable"
webdav.sqlite-db-name = "/var/run/lighttpd/lighttpd.webdav_lock.db"
}
# setting for fast-cgi
fastcgi.server = (".php" =>
((
"host" => "127.0.0.1",
"port" => 1026,
))
)
Then we could trying to run lighttpd:
lighttpd -f lighttpd.conf
0 意見:
張貼留言