

In this parameter you can use the available units starting from s(econds) (default), m(inutes), h(ours), or d(ays). Then we enter with each favorite editor, for example:ĭan kita atur paramater request_terminate_timeout nya, contoh :īy default, these parameters will be commented with at first, delete the comment to activate. first, we look for the www.conf file with find set the request_terminate_timeout parameter and match the one we set in php.ini. Next, after finishing php.ini we move on to the The changes here have an impact on the php-fpm we run. Set the max_execution_time parameter (in seconds) as needed, for example: If you have found it, enter using your favorite editor, for example: I will share information on how to fix error “504 Gateway Time-out” in Nginx PHP by increasing the execution time limit of PHP scripts as follows:įor the first time we increase the execution time of the php script in the php.ini file, use find to find the location of the php.ini file. Therefore we need to increase the execution time limit of its PHP scripts. That’s because the default PHP script execution time limit is only 30s (30 seconds). Surely you will often encounter Error 504 Gateway time-out in your browser when running / executing the php file. If you run LEMP (Linux Nginx MySQL PHP) on your server and the nginx and php configurations are still in the default configuration.
