0
我通常使用主机来安装站点,并且它们与CGI一起工作。需要使用CGI运行位于cgi-bin中的文件
Server API CGI/FastCGI
现在我安装在AWS EC2实例的站点使用Ubuntu 14.04和Apache 2.4跟着一些教程安装FastCGI的,现在我在我的PHP信息此配置:
Server API FPM/FastCGI
当我尝试访问到/ var/www/html等/ cgi-bin目录我找到文件,改变了所有的权限,试图执行它们,但我得到这个错误:
[cgi:error] [pid 5951:tid 140061935601408] [client 186.67.242.72:22739] script not found or unable to stat: /usr/lib/cgi-bin/test.cgi
我想excecute该文件是LOCAT编辑于/var/www/html/cgi-bin/test.php
#!/usr/bin/perl
use strict;
use CGI;
print "content-type: text/html\n\n";
print "Prueba CGI!\n";
请帮忙!