Fast CGI in Apache: Failed to bind unix domain socket

After eliminating trivial reasons, such as the lack of permission to write to the file, I searched for the reason for this. The file fcgid.confcontains only the basic settings, and I can’t check which port it is trying to open. How can I grant permission?

Hint: the port may be blocked by my system, but I did not find any mention of the port there. in fcgid configuration.

This is the Apache error log. when the Fast CGI script loads:

[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
+4
source share
1 answer

To fix the problem, correct the file and path permissions provided by the server.

+5
source

Source: https://habr.com/ru/post/1610440/


All Articles