在排除了琐碎的原因(例如缺少写入文件的权限)之后,我正在寻找原因。文件fcgid.conf仅提供基本设置,我无法验证它试图打开哪个端口。如何授予许可?

提示:也许该端口已被我的系统阻止,但我没有发现任何有关端口号的信息。在fcgid配置中。

这是Apache错误日志。加载快速CGI脚本时:

[Tue Oct 06 14:16:24.235309 2015] [fcgid:error] [pid 23141:tid 139803208390720] (13)Permission denied: mod_fcgid: couldn't bind unix domain socket /var/run/httpd/mod_fcgid/23141.256
[Tue Oct 06 14:16:24.235351 2015] [fcgid:warn] [pid 23141:tid 139803208390720] (13)Permission denied: mod_fcgid: spawn process /var/www/html/azure/testfcgi.fcgi error
[Tue Oct 06 14:16:25.236606 2015] [fcgid:error] [pid 23141:tid 139803208390720] (13)Permission denied: mod_fcgid: couldn't bind unix domain socket /var/run/httpd/mod_fcgid/23141.257
[Tue Oct 06 14:16:25.236682 2015] [fcgid:warn] [pid 23141:tid 139803208390720] (13)Permission denied: mod_fcgid: spawn process /var/www/html/azure/testfcgi.fcgi error
[Tue Oct 06 14:16:26.237965 2015] [fcgid:error] [pid 23141:tid 139803208390720] (13)Permission denied: mod_fcgid: couldn't bind unix domain socket /var/run/httpd/mod_fcgid/23141.258
[Tue Oct 06 14:16:26.238043 2015] [fcgid:warn] [pid 23141:tid 139803208390720] (13)Permission denied: mod_fcgid: spawn process /var/www/html/azure/testfcgi.fcgi error

最佳答案

要解决此问题,请修复服务器报告的文件和路径的权限。

10-08 05:08