现在的位置: 首页 > 综合 > 正文

linux下cgi出错的原因

2018年05月09日 ⁄ 综合 ⁄ 共 536字 ⁄ 字号 评论关闭

fedora10已经自带了apache的httpd,php,perl,在服务里启动就可以了。

在/var/www/html下建立php测试文件,也正常

关于perl的cgi,找了个测试文件,环境也按照网上说的配置了。但是还是出错

Internal Server Error

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

Please contact the server administrator,
root@localhost and inform them of the time the error occurred,
and anything you might have done that may have
caused the error.

More information about this error may be available
in the server error log.


Apache/2.2.10 (Fedora) Server at 192.168.0.100 Port 80
找资料找了好久都没有解决。后来终于找到解决办法,是权限问题
在root下
chmod -R 755 /var/www/cgi-bin/
就好了

抱歉!评论已关闭.