504 gateway timeout (nginx - cacti 1.1.6)

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
daniel1986
Posts: 2
Joined: Thu May 11, 2017 3:09 am

504 gateway timeout (nginx - cacti 1.1.6)

Post by daniel1986 »

Hi,
I have problem during installation new version 1.1.6 (not upgrade).

My nginx configuration:

Code: Select all

location ~ \.php$ {
                try_files $uri /index.php =404;
                fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
                include fastcgi_params;
                fastcgi_index index.php;
                fastcgi_split_path_info ^(.+\.php)(/.+)$;
                fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
                #fastcgi_param SCRIPT_NAME $fastcgi_script_name;
                #fastcgi_read_timeout 100;
                #fastcgi_buffers 8 128k;
                #fastcgi_buffer_size 256k;
        }

        location ~*  \.(jpg|jpeg|png|gif|css|js|ico)$ {
                expires max;
                log_not_found off;
        }

        location ~ /\.ht {
                deny all;
        }
I tryed to change settings:
//php.ini
max_execution_time = 300
//www.conf
request_terminate_timeout = 300
//nginx
fastcgi_read_timeout 300;
client_header_timeout 3000;
client_body_timeout 3000;
client_max_body_size 32m;
fastcgi_buffers 8 128k;
fastcgi_buffer_size 128k;

The problem is in the last step on Cacti Installation Wizard.
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Re: 504 gateway timeout (nginx - cacti 1.1.6)

Post by rony »

Is PHP-FPM running?

Is your max execution time for PHP set to like 30 seconds, increase it to 300 seconds.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest