我在我的服务器上安装Phabricator。我在这里跟踪了文档:
在这一步:
现在,导航到您设置的任何子域。您应该看到继续安装的说明。
我得到一个错误"500“:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
这是日志:
[Sun Apr 13 23:40:43 2014] [error] [client 127.0.0.1] Request exceeded the limi
我已经成功地执行了以下命令:
tar xzvf fcgi-2.4.0.tar.gz
cd fcgi-2.4.0
./configure --prefix=/usr/local/fcgi
make && make install
tar xzvf ruby-fcgi-0.8.7.tar.gz
cd ruby-fcgi-0.8.7
ruby install.rb config -- --with-fcgi-include=/usr/local/fcgi/include --with-fcgi-lib=/usr/local/fcgi/lib
但是当我运行设置脚本时,我得到了这个错
如何检测在FCGI或CGI下调用的Perl脚本。我想检测是否在FCGI下运行,然后加载FCGI模块,如下所示:
if ($ENV{FCGI}) {
use FCGI;
use MyFCGIHandler;
}
我知道我可以这样做:
use FCGI;
my $request = FCGI::Request();
#Returns whether or not the program was run as a FastCGI.
$isfcgi = $req->IsFastCGI();
但是这意味着我必须加载FCGI模块,并调用它的请求和isFastCGI方法来检查如果应用
如果使用Perl FCGI,如何在不使用exit的情况下结束脚本。经过几天的搜索,我找到的唯一解决方案是跳转到主脚本中的label。下面是主index.fcgi的代码。
$fcgi_requests = 0; # the number of requests this fcgi process handled.
$handling_request = 0;
$exit_requested = 0;
$app_quit_request = 0; # End the application but not the FCGI process
# workaround for known b
最近,使用apache在服务器上设置了PHP,它运行得非常好,但是有些png文件被拒绝访问,例如。
在我得到的错误日志中
FastCGI: server "/{DirectoryToCGIBin}/php5-fcgi" stderr: Access to the script '/{DirectoryToWebsite}/scripts/candy-1.6.0/res/img/action/statusmessage-on.png' has been denied (see security.limit_extensions)
其他pngs运行良好,为什么Apa
错误日志:
[Sat Nov 22 05:24:41 2014] [error] [client xx] (2)No such file or directory: FastCGI: failed to connect to server "/usr/lib/cgi-bin/php5-fcgi": connect() failed
[Sat Nov 22 05:24:41 2014] [error] [client xx] FastCGI: incomplete headers (0 bytes) received from server "/usr/lib/cgi-
我有一段代码
my $fcgi_request = FCGI::Request(\*STDIN,\*STDOUT,\*STDERR, \%ENV,0,FCGI::FAIL_ACCEPT_ON_INTR);
while (1) {
my $cgi = new CGI('');
}
那么FCGI::Request的作用是什么,它与CGI有什么不同,因为新的CGI()也为我提供了请求句柄。