求救,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