If you get
An error occurred while reading CGI reply (no response received)
you'll need to make sure to install the perl FCGI module (yes, even if you've otrs.CheckModules.pl and everything is good)
(How did you figure this out?)
perl -cw /opt/otrs/bin/fcgi-bin/installer.pl
You *don't* have to spawn if you don't want to... you can use fcgiwrap's default install's socket.
nginx otrs.conf example:
Code: Select all
server {
listen 80;
server_name _;
root /opt/otrs/bin/fcgi-bin;
index index.html;
location /otrs-web {
gzip on;
alias /opt/otrs/var/httpd/htdocs;
}
location ~ ^/otrs/(.*\.pl)(/.*)?$ {
gzip off;
fastcgi_pass unix:/var/run/fcgiwrap.socket;
fastcgi_index index.pl;
fastcgi_param SCRIPT_FILENAME /opt/otrs/bin/fcgi-bin/$1;
fastcgi_param QUERY_STRING $query_string;
fastcgi_param REQUEST_METHOD $request_method;
fastcgi_param CONTENT_TYPE $content_type;
fastcgi_param CONTENT_LENGTH $content_length;
fastcgi_param GATEWAY_INTERFACE CGI/1.1;
fastcgi_param SERVER_SOFTWARE nginx;
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
fastcgi_param REQUEST_URI $request_uri;
fastcgi_param DOCUMENT_URI $document_uri;
fastcgi_param DOCUMENT_ROOT $document_root;
fastcgi_param SERVER_PROTOCOL $server_protocol;
fastcgi_param REMOTE_ADDR $remote_addr;
fastcgi_param REMOTE_PORT $remote_port;
fastcgi_param SERVER_ADDR $server_addr;
fastcgi_param SERVER_PORT $server_port;
fastcgi_param SERVER_NAME $server_name;
}
}
connect() to unix:/var/run/fcgiwrap.socket failed (111: Connection refused) while connecting to upstream, client: ipaddress, server: , request: "GET /otrs/installer.pl HTTP/1.1", upstream: "fastcgi://unix:/var/run/fcgiwrap.socket:", host: "ipaddress"
This error means (more or less) that even if the file exists, it's not acting as a socket and refusing connections. (fcgiwrap isn't running on that socket file).
connect() to unix:/var/run/otrs/fcgiwrap.socket failed (13: Permission denied) while connecting to upstream, client: ipaddress, server: , request: "GET /otrs/installer.pl HTTP/1.1", upstream: "fastcgi://unix:/var/run/otrs/fcgiwrap.socket:", host: "ipaddress"
This error means that the socket file is not running under the permissions of the web server user (www/www-data). If you create your own socket file or location with root, make sure you chown it to the web user.
I don't know much about nginx. I'm not an expert. I just thought I'd give some feedback from my first installation ever this weekend.