BugFix core/upgrade/install.php timeout (#98)

update configuration to allow the core/upgrade/install.php to have the
same read_timeout in nginx as it has in php execution time.
This should prevent the nginx timeout error when a upgrade takes longer
than 60 seconds (the deafult in nginx)
This commit is contained in:
Mafoo 2017-05-23 16:30:15 +01:00 committed by FusionPBX
parent 4d7997ad5f
commit 0ce35270e3
4 changed files with 120 additions and 0 deletions

View File

@ -21,6 +21,16 @@ server{
fastcgi_param SCRIPT_FILENAME /var/www/fusionpbx$fastcgi_script_name; fastcgi_param SCRIPT_FILENAME /var/www/fusionpbx$fastcgi_script_name;
} }
# Allow the upgrade routines to run longer than normal
location = /core/upgrade/index.php {
fastcgi_pass unix:/var/run/php/php-fpm.sock;
#fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME /var/www/fusionpbx$fastcgi_script_name;
fastcgi_read_timeout 15m;
}
# Disable viewing .htaccess & .htpassword & .db # Disable viewing .htaccess & .htpassword & .db
location ~ .htaccess { location ~ .htaccess {
deny all; deny all;
@ -102,6 +112,16 @@ server {
fastcgi_param SCRIPT_FILENAME /var/www/fusionpbx$fastcgi_script_name; fastcgi_param SCRIPT_FILENAME /var/www/fusionpbx$fastcgi_script_name;
} }
# Allow the upgrade routines to run longer than normal
location = /core/upgrade/index.php {
fastcgi_pass unix:/var/run/php/php-fpm.sock;
#fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME /var/www/fusionpbx$fastcgi_script_name;
fastcgi_read_timeout 15m;
}
# Disable viewing .htaccess & .htpassword & .db # Disable viewing .htaccess & .htpassword & .db
location ~ .htaccess { location ~ .htaccess {
deny all; deny all;
@ -183,6 +203,16 @@ server {
fastcgi_param SCRIPT_FILENAME /var/www/fusionpbx$fastcgi_script_name; fastcgi_param SCRIPT_FILENAME /var/www/fusionpbx$fastcgi_script_name;
} }
# Allow the upgrade routines to run longer than normal
location = /core/upgrade/index.php {
fastcgi_pass unix:/var/run/php/php-fpm.sock;
#fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME /var/www/fusionpbx$fastcgi_script_name;
fastcgi_read_timeout 15m;
}
# Disable viewing .htaccess & .htpassword & .db # Disable viewing .htaccess & .htpassword & .db
location ~ .htaccess { location ~ .htaccess {
deny all; deny all;

View File

@ -21,6 +21,16 @@ server{
fastcgi_param SCRIPT_FILENAME /var/www/fusionpbx$fastcgi_script_name; fastcgi_param SCRIPT_FILENAME /var/www/fusionpbx$fastcgi_script_name;
} }
# Allow the upgrade routines to run longer than normal
location = /core/upgrade/index.php {
fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
#fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME /var/www/fusionpbx$fastcgi_script_name;
fastcgi_read_timeout 15m;
}
# Disable viewing .htaccess & .htpassword & .db # Disable viewing .htaccess & .htpassword & .db
location ~ .htaccess { location ~ .htaccess {
deny all; deny all;
@ -102,6 +112,16 @@ server {
fastcgi_param SCRIPT_FILENAME /var/www/fusionpbx$fastcgi_script_name; fastcgi_param SCRIPT_FILENAME /var/www/fusionpbx$fastcgi_script_name;
} }
# Allow the upgrade routines to run longer than normal
location = /core/upgrade/index.php {
fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
#fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME /var/www/fusionpbx$fastcgi_script_name;
fastcgi_read_timeout 15m;
}
# Disable viewing .htaccess & .htpassword & .db # Disable viewing .htaccess & .htpassword & .db
location ~ .htaccess { location ~ .htaccess {
deny all; deny all;
@ -188,6 +208,16 @@ server {
fastcgi_param SCRIPT_FILENAME /var/www/fusionpbx$fastcgi_script_name; fastcgi_param SCRIPT_FILENAME /var/www/fusionpbx$fastcgi_script_name;
} }
# Allow the upgrade routines to run longer than normal
location = /core/upgrade/index.php {
fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
#fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME /var/www/fusionpbx$fastcgi_script_name;
fastcgi_read_timeout 15m;
}
# Disable viewing .htaccess & .htpassword & .db # Disable viewing .htaccess & .htpassword & .db
location ~ .htaccess { location ~ .htaccess {
deny all; deny all;

View File

@ -21,6 +21,16 @@ server{
fastcgi_param SCRIPT_FILENAME /var/www/fusionpbx$fastcgi_script_name; fastcgi_param SCRIPT_FILENAME /var/www/fusionpbx$fastcgi_script_name;
} }
# Allow the upgrade routines to run longer than normal
location = /core/upgrade/index.php {
fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
#fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME /var/www/fusionpbx$fastcgi_script_name;
fastcgi_read_timeout 15m;
}
# Disable viewing .htaccess & .htpassword & .db # Disable viewing .htaccess & .htpassword & .db
location ~ .htaccess { location ~ .htaccess {
deny all; deny all;
@ -102,6 +112,16 @@ server {
fastcgi_param SCRIPT_FILENAME /var/www/fusionpbx$fastcgi_script_name; fastcgi_param SCRIPT_FILENAME /var/www/fusionpbx$fastcgi_script_name;
} }
# Allow the upgrade routines to run longer than normal
location = /core/upgrade/index.php {
fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
#fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME /var/www/fusionpbx$fastcgi_script_name;
fastcgi_read_timeout 15m;
}
# Disable viewing .htaccess & .htpassword & .db # Disable viewing .htaccess & .htpassword & .db
location ~ .htaccess { location ~ .htaccess {
deny all; deny all;
@ -180,6 +200,16 @@ server {
index index.php; index index.php;
} }
# Allow the upgrade routines to run longer than normal
location = /core/upgrade/index.php {
fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
#fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME /var/www/fusionpbx$fastcgi_script_name;
fastcgi_read_timeout 15m;
}
location ~ \.php$ { location ~ \.php$ {
fastcgi_pass unix:/var/run/php/php7.0-fpm.sock; fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
#fastcgi_pass 127.0.0.1:9000; #fastcgi_pass 127.0.0.1:9000;

View File

@ -21,6 +21,16 @@ server{
fastcgi_param SCRIPT_FILENAME /var/www/fusionpbx$fastcgi_script_name; fastcgi_param SCRIPT_FILENAME /var/www/fusionpbx$fastcgi_script_name;
} }
# Allow the upgrade routines to run longer than normal
location = /core/upgrade/index.php {
fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
#fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME /var/www/fusionpbx$fastcgi_script_name;
fastcgi_read_timeout 15m;
}
# Disable viewing .htaccess & .htpassword & .db # Disable viewing .htaccess & .htpassword & .db
location ~ .htaccess { location ~ .htaccess {
deny all; deny all;
@ -94,6 +104,16 @@ server {
index index.php; index index.php;
} }
# Allow the upgrade routines to run longer than normal
location = /core/upgrade/index.php {
fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
#fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME /var/www/fusionpbx$fastcgi_script_name;
fastcgi_read_timeout 15m;
}
location ~ \.php$ { location ~ \.php$ {
fastcgi_pass unix:/var/run/php/php7.0-fpm.sock; fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
#fastcgi_pass 127.0.0.1:9000; #fastcgi_pass 127.0.0.1:9000;
@ -188,6 +208,16 @@ server {
fastcgi_param SCRIPT_FILENAME /var/www/fusionpbx$fastcgi_script_name; fastcgi_param SCRIPT_FILENAME /var/www/fusionpbx$fastcgi_script_name;
} }
# Allow the upgrade routines to run longer than normal
location = /core/upgrade/index.php {
fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
#fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME /var/www/fusionpbx$fastcgi_script_name;
fastcgi_read_timeout 15m;
}
# Disable viewing .htaccess & .htpassword & .db # Disable viewing .htaccess & .htpassword & .db
location ~ .htaccess { location ~ .htaccess {
deny all; deny all;