lighttpd with php 安裝 - BBS
By Gary
at 2007-12-07T20:32
at 2007-12-07T20:32
Table of Contents
※ 引述《wes13 (wes13)》之銘言:
: 想將 lighttpd 加上 php
: 到 php5 ports 下 make config
: 選了這些
: [X] CLI Build CLI version
: [X] CGI Build CGI version
: [X] SUHOSIN Enable Suhosin protection system
: [X] IPV6 Enable ipv6 support
: [X] FASTCGI Enable fastcgi support (CGI only)
: [X] PATHINFO Enable path-info-check support (CGI only)
: 然後 make install
: 安裝好後重新啟動 lighttpd 卻跑不起來
: 錯誤訊息裡面提到
: You can find out if it is the right one by executing 'php -v' and it should
: display '(cgi-fcgi)' in the output, NOT '(cgi)' NOR '(cli)'.
: 照著說明執行 php -v
: 出現
: PHP 5.2.5 with Suhosin-Patch 0.9.6.2 (cli)
: 請問要如何設定才能將php
: 由 cli 改成 cgi-fcgi 模式
: 謝謝
修改lighttpd.conf裡的fastcgi.server的"bin-path"
預設的"bin-path" 是 "/usr/local/bin/php-cgi-cgi"(沒記錯的話)
改成你的php-cgi執行檔的path,
像我用ports裝的php是在"/usr/local/bin/php-cgi"
所以我的是"bin-path" => "/usr/local/bin/php-cgi"
這樣應該就可以了..
--
: 想將 lighttpd 加上 php
: 到 php5 ports 下 make config
: 選了這些
: [X] CLI Build CLI version
: [X] CGI Build CGI version
: [X] SUHOSIN Enable Suhosin protection system
: [X] IPV6 Enable ipv6 support
: [X] FASTCGI Enable fastcgi support (CGI only)
: [X] PATHINFO Enable path-info-check support (CGI only)
: 然後 make install
: 安裝好後重新啟動 lighttpd 卻跑不起來
: 錯誤訊息裡面提到
: You can find out if it is the right one by executing 'php -v' and it should
: display '(cgi-fcgi)' in the output, NOT '(cgi)' NOR '(cli)'.
: 照著說明執行 php -v
: 出現
: PHP 5.2.5 with Suhosin-Patch 0.9.6.2 (cli)
: 請問要如何設定才能將php
: 由 cli 改成 cgi-fcgi 模式
: 謝謝
修改lighttpd.conf裡的fastcgi.server的"bin-path"
預設的"bin-path" 是 "/usr/local/bin/php-cgi-cgi"(沒記錯的話)
改成你的php-cgi執行檔的path,
像我用ports裝的php是在"/usr/local/bin/php-cgi"
所以我的是"bin-path" => "/usr/local/bin/php-cgi"
這樣應該就可以了..
--
Tags:
BBS
All Comments
Related Posts
ssh 進去後馬上斷線
By John
at 2007-12-07T16:42
at 2007-12-07T16:42
想請問一下ipfw設定, 有關我這樣怎麼掛了QQ
By Quanna
at 2007-12-07T16:33
at 2007-12-07T16:33
SATA on BSD
By Megan
at 2007-12-07T11:36
at 2007-12-07T11:36
lighttpd with php 安裝
By Ingrid
at 2007-12-07T11:29
at 2007-12-07T11:29
lighttpd with php 安裝
By Isabella
at 2007-12-07T11:09
at 2007-12-07T11:09