Skip to content

Commit

Permalink
Add fastcgi_read_timeout 300
Browse files Browse the repository at this point in the history
  • Loading branch information
markjcrane committed Sep 6, 2022
1 parent 205ea40 commit 7e62f45
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions debian/resources/nginx/fusionpbx
Expand Up @@ -140,6 +140,7 @@ server {
location ~ \.php$ {
fastcgi_pass unix:/var/run/php/php7.1-fpm.sock;
#fastcgi_pass 127.0.0.1:9000;
fastcgi_read_timeout 300;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME /var/www/fusionpbx$fastcgi_script_name;
Expand Down Expand Up @@ -277,6 +278,7 @@ server {
location = /core/upgrade/index.php {
fastcgi_pass unix:/var/run/php/php7.1-fpm.sock;
#fastcgi_pass 127.0.0.1:9000;
fastcgi_read_timeout 300;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME /var/www/fusionpbx$fastcgi_script_name;
Expand Down

2 comments on commit 7e62f45

@nexiptel-developer
Copy link

@nexiptel-developer nexiptel-developer commented on 7e62f45 Sep 10, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nginx is failing to start because line 285 already has fastcgi_read_timeout 15m;
I guess you meant to add it to the location ~ .php$

@markjcrane
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated the code to fix the problem
fe963fb

Thanks

Please sign in to comment.