当前位置: 代码迷 >> CGI >> ,apache5 不运行cgi pl程序
  详细解决方案

,apache5 不运行cgi pl程序

热度:746   发布时间:2013-09-11 17:59:56.0
求救,apache5 不运行cgi pl程序
我是linux 64位 +apache5.3,他不能运行cgi和pl程序

我不想使用系统默认的目录。我在apache的httpd.conf中的相关配置:

ScriptAlias /var/www/html/ "/usr/local/apache/cgi-bin/"


<Directory /var/www/html>
  Options +ExecCGI
  AllowOverride Options
  DirectoryIndex index.cgi
  Order allow,deny
  Allow from all
</Dirctory>

AddHandler cgi-script cgi pl


pl程序:
#!/usr/bin/perl
print "Content-type: text/html\n\n";
print "Hello, World."; 

执行程序,服务器报错:
Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request

新手一个,请问我应该怎么改啊?

鞠躬,谢谢。

------解决方案--------------------
看一下APACHE的日志,看看具体是什么错
------解决方案--------------------
用下面的这个试试::

ScriptAlias /var/www/html/ "/usr/local/apache//cgi-bin/" 


 


我的异常网推荐解决方案:The server encountered an internal error () that prevented it from fulfilling this request.,http://www.myexception.cn/java-web/317.html
  相关解决方案