URGENT needed - Nginx + FastCGIwrap = 502 error

Kasino Strasse kasinostrasse55 at gmail.com
Sat Oct 10 22:41:38 UTC 2015


Hello,

I am using Nginx to configure nagios setup.

Nginx configured correctly and I am able to serve pages. But I get error
from error_log as follows:

2015/10/11 00:34:49 [crit] 18092#0: *9 connect() to
unix:/var/run/fcgiwrap.socket failed (13: Permission denied) while
connecting to upstream, client: 192.168.0.1, server: nagios.example.com,
request: "GET /nagios/cgi-bin/status.cgi?hostgroup=all&style=hostdetail
HTTP/1.1", upstream: "fastcgi://unix:/var/run/fcgiwrap.socket:", host: "
nagios.example.com", referrer: "http://nagios.example.com/side.php"


sudo service fcgiwrap status

 * Checking status of FastCGI wrapper fcgiwrap
                                                                [ OK ]

sudo netstat -anp | grep cgi

unix  2      [ ACC ]     STREAM     LISTENING     2188667357 16645/f*cgi*wrap
    /var/run/f*cgi*wrap.socket


ls -ltr /var/run/fcgiwrap.socket

srwxr-xr-x 1 www-data www-data 0 Oct 11 00:19 */var/run/fcgiwrap.socket*


*Please suggest and fix this error ?*


*Best regards, Kasino.*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20151011/e73fc81b/attachment.html>


More information about the nginx mailing list