作者snowfly (飘然似雪)
看板FreeBSD
标题Re: [问题] lighttpd with php 安装
时间Fri Dec 7 20:32:31 2007
※ 引述《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"
这样应该就可以了..
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 122.123.198.20