当前位置: 代码迷 >> CGI >> centos运作不了c语言写的cgi程序
  详细解决方案

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

热度:484   发布时间:2012-12-22 12:05:07.0
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.
  相关解决方案