I installed cacti on an nginx/fpm-php powered web server. I did not use apt-get becauseI don't want to install apache/mysql (I want to use a remote mysql server).
So I just downloaded cacti and put it in a /cacti/ folder.
If I try to open http://mywebserver.com/cacti I get this erron in nginx log:
If config.php is with wrong parameters I get the mysql connection errors but, if I fill it with correct values I get:
Code: Select all
2016/03/12 11:24:26 [error] 30390#0: *19319 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 82.61.106.30, server: mywebserver.com, request: "GET /cacti/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "mywebserver.com"
Code: Select all
location /cacti {
index index.php index.html index.htm;
location ~ ^/cacti/(.+\.php)$ {
try_files $uri =404;
include /etc/nginx/fastcgi_params;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
}
Any idea?
Thank you!