LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 500|回复: 1

【求助】为什么我按照wiki上去做都配置不成功lighttpd

[复制链接]
发表于 2011-4-19 14:50:01 | 显示全部楼层 |阅读模式
我参照的是这个链接的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]-----
发表于 2011-4-19 15:29:14 | 显示全部楼层
为什么不用nginx呢?
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表