|
我参照的是这个链接的wiki去做的
https://wiki.archlinux.org/index.php/Lighttpd_and_FastCGI
可以打开html文件连接,但是解析不到php的网页
我的/etc/lighttpd/lighttpd.conf文件内容如下
# This is a minimal example config
# See /usr/share/doc/lighttpd
# and http://redmine.lighttpd.net/proj ... onfigurationOptions
server.port = 80
server.username = "http"
server.groupname = "http"
server.document-root = "/srv/http"
server.pid-file = "/var/run/lighttpd/lighttpd.pid"
server.errorlog = "/var/log/lighttpd/error.log"
dir-listing.activate = "enable"
index-file.names = ( "index.html" )
mimetype.assign = ( ".html" => "text/html", ".txt" => "text/plain", ".jpg" => "image/jpeg", ".png" => "image/png" )
server.modules = (
"mod_access",
"mod_fastcgi",
"mod_accesslog" )
server.indexfiles = ( "index.php" )
fastcgi.server = (
".php" =>
( "localhost" =>
(
"socket" => "/tmp/php-fastcgi.socket",
"bin-path" => "/usr/bin/php-cgi"
)
)
)
============================================
heaven@KrupArch<562>/srv$
>>ls
总用量 8.0K
dr-xr-xr-x 2 root ftp 4.0K 12月 14 15:09 ftp
drwxr-xr-x 2 http http 4.0K 4月 19 13:25 http
-----[15:02:45]-----
heaven@KrupArch<563>/srv$
>>ls http
总用量 4.0K
lrwxrwxrwx 1 http http 25 4月 19 13:25 dokuwiki -> /krup/share_disk/dokuwiki
-rw-r--r-- 1 http http 19 4月 19 14:06 index.html
heaven@KrupArch<564>/srv$
>>lighttpd -v
lighttpd/1.4.28 (ssl) - a light and fast webserver
Build-Date: Apr 9 2011 11:27:12
-----[15:03:54]-----
heaven@KrupArch<565>/srv$
>>php -v
PHP 5.3.6 with Suhosin-Patch (cli) (built: Apr 9 2011 20:42:36)
Copyright (c) 1997-2011 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2011 Zend Technologies
-----[15:03:59]----- |
|