Cacti and nginx + fpm-php

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
Ciao121
Posts: 3
Joined: Sat Mar 12, 2016 5:18 am

Cacti and nginx + fpm-php

Post by Ciao121 »

Hi,
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"
Tried without dedicate "location" in nginx conf file, tried aso with this:

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;
                }
        }
But I always get the same error.
Any idea?

Thank you!
Ciao121
Posts: 3
Joined: Sat Mar 12, 2016 5:18 am

Re: Cacti and nginx + fpm-php

Post by Ciao121 »

Also, If I try to execute

Code: Select all

php index.php
in the cacti folder I get

Code: Select all

Segmentation fault
Ciao121
Posts: 3
Joined: Sat Mar 12, 2016 5:18 am

Re: Cacti and nginx + fpm-php

Post by Ciao121 »

Manually importing cacti.sql in the mysql db solved. I was expecting the web installation to do this.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests