在openwrt 下配置lighttpd,並使用PHP fast-cgi

mod配置:

server.modules = (
    "mod_rewrite",
    "mod_fastcgi",
#    ……
)


端口配置:

注:端口配置爲80之前,應確保openwrt 默認web管理所使用的uhtttpd端口改動到其它端口

## bind to port (default: 80)
server.port = 80



PHP fast-cgi配置:

fastcgi.server=(
    ".php" => (
        "localhost" => (
            "socket" => "/tmp/php-fasicgi.socket",
            "bin-path" => "/usr/bin/php-fcgi"
        )
    )
)


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章