Search
 
SCRIPT & CODE EXAMPLE
 

PHP

Try raising max_execution_time setting in php.ini file (CentOS path is /etc/php.ini): max_execution_time = 300Fix 504 Gateway Timeout using Nginx

#Step 1
Raise max_execution_time setting in php.ini file (CentOS path is /etc/php.ini):
max_execution_time = 300

#Step 2
/etc/php-fpm.d/www.conf
Then set the variable to the same value as max_execution_time:
request_terminate_timeout = 300


#Step 3
Add fastcgi_read_timeout variable inside our Nginx virtual host configuration:

location ~ .php$ {
	root /var/www/sites/nginxtips.com;
  try_files $uri =404;
  fastcgi_pass unix:/tmp/php5-fpm.sock;
  fastcgi_index index.php;
  fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  include fastcgi_params;
  fastcgi_read_timeout 300;
}
Comment

PREVIOUS NEXT
Code Example
Php :: get romawi number php 
Php :: js php number format space 
Php :: seo_url.php location opencart 
Php :: php json pretty print and slash 
Php :: phpmyadmin export database 
Php :: laravel migration text length 
Php :: wordpress rest_no_route custom post type 
Php :: loginByUserID in conrete 
Php :: php glob sort by unsigned int 
Php :: php language is used for 
Php :: no routes.php in http folder 
Php :: get percentage rating in laravel 
Php :: REFERRER CODEIGNITER 3 
Php :: storefront remove sidebar from product page 
Php :: laravel queue work schedule cpanel 
Php :: wc php get product id image gellery 
Php :: like query with prepare wordpress 
Php :: pest check url status 
Php :: cara install php7.3 di ubuntu 20.04 
Php :: octobercms mail register 
Php :: wordpress raw query 
Php :: You need to grant write permissions for PHP on the following directory: /var/www/html/prestashop 
Php :: custom blade directive 
Php :: laravel eloquent with nested 
Php :: how to use model not found exception handler laravel 
Php :: Laravel Unique Multiple Column validation 
Php :: Target [LaravelFortifyContractsCreatesNewUsers] is not instantiable. 
Php :: Allowed memory size of 33554432 bytes exhausted (tried to allocate 8192 bytes) 
Php :: laravel id generator 
Php :: install php7 
ADD CONTENT
Topic
Content
Source link
Name
5+1 =