Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Fast CGI in Apache: Couldn't bind unix domain socket

After ruling out the trivial causes like missing permission to write to the file I'm looking for the cause of this. The file fcgid.conf provides only basic settings and I couldn't verify what port is it trying to open. How can I grant the permission?

Hint: Maybe the port is blocked by my system, but I didn't find any mention of the port no. in fcgid config.

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

[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
like image 338
Peter G. Avatar asked Oct 06 '15 14:10

Peter G.


Video Answer


1 Answers

To fix the problem, fix permissions on the file and path reported by the server.

like image 99
SergeyA Avatar answered Sep 21 '22 21:09

SergeyA