Welcome! Log In Create A New Profile

Advanced

Re: fcgiwrap не могу запустить

Victor Sudakov
January 23, 2019 03:38AM
fcgiwrap с ключом -f маленько прояснил ситуацию, имею теперь сообщение
об ошибке в логе nginx:

2019/01/23 15:29:36 [error] 93721#100134: *5 FastCGI sent in stderr: "Cannot get script name, are DOCUMENT_ROOT and SCRIPT_NAME (or SCRIPT_FILENAME) set and is the script executable?" while reading response header from upstream, client: 10.10.10.3, server: , request: "GET /cgi-bin/test HTTP/1.1", upstream: "fastcgi://unix:/tmp/fcgiwrap.socket:", host: "admin.sibptus.ru"

С учетом нижепоказанного, чего ещё недостаёт?

location /cgi-bin/ {
root /usr/local/www/cgi-bin;
include /usr/local/etc/nginx/fastcgi_params;
fastcgi_pass unix:/tmp/fcgiwrap.socket;
}


$ egrep 'DOCUMENT_ROOT|SCRIPT_NAME' /usr/local/etc/nginx/fastcgi_params
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
fastcgi_param DOCUMENT_ROOT $document_root;

$ ls -al /usr/local/www/cgi-bin
total 12
drwxr-xr-x 2 root wheel 512 23 янв. 00:58 .
drwxr-xr-x 4 root wheel 512 22 янв. 22:56 ..
-rwxr-xr-x 1 root wheel 313 23 янв. 00:58 test




--
Victor Sudakov, VAS4-RIPE, VAS47-RIPN
2:5005/49@fidonet http://vas.tomsk.ru/
_______________________________________________
nginx-ru mailing list
nginx-ru@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-ru
Subject Author Posted

fcgiwrap не могу запустить

Victor Sudakov January 22, 2019 12:24PM

Re: fcgiwrap не могу запустить

Victor Sudakov January 22, 2019 01:02PM

Re: fcgiwrap не могу запустить

Victor Sudakov January 23, 2019 03:38AM

Re: fcgiwrap не могу запустить

Константин Ткаченко January 23, 2019 04:20AM

Re: fcgiwrap не могу запустить

Victor Sudakov January 23, 2019 08:44AM

Re: fcgiwrap не могу запустить

Victor Sudakov January 24, 2019 10:32AM

Re: fcgiwrap не могу запустить

Иван January 24, 2019 10:54AM

Re: fcgiwrap не могу запустить

Victor Sudakov January 25, 2019 04:14AM

Re: fcgiwrap не могу запустить

Иван January 25, 2019 04:24AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 88
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready