首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > CGI >

centos运作不了c语言写的cgi程序

2012-12-22 
centos运行不了c语言写的cgi程序我把httpd.conf里的AddHandler cgi-script .cgi 前的#去掉了,DocumentRoot

centos运行不了c语言写的cgi程序
我把httpd.conf里的AddHandler cgi-script .cgi 前的#去掉了,DocumentRoot "var/www/html"前也没有#,但是在firefox的地址栏里输入http:///var/www/cgi-bin/my.cgi运行就显示unable to connect页面。在终端里输入chcon -t httpd_sys_script_exec_t /var/www/cgi-bin/my.cgi之前上面的操作就显示403页面You don't have permission to access cgi-bin/my.cgi on this server
求高手们解答,弄了我一整天了

[解决办法]
权限不够
[解决办法]

引用:
权限不够

要怎么解决呢?

[解决办法]
用firefox也访问不了localhost,关了代理设置了,怎么办?

[解决办法]
cgi-bin/my.cgi的权限改成777
[解决办法]
权限改了也不行,我把selinux也关了,现在是显示
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@music.tiantui.com 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.

[解决办法]
权限改了也不行,我把selinux也关了,现在是显示
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@music.tiantui.com 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.

热点排行