If you have a large WordPress setup or a server with limited resources, then you will often see the “504 Gateway Time-out” error. You can follow the steps given below to increase the timeout value. PHP default is 30s. Changes in php.ini If you want to change max execution time limit for php scripts from 30 seconds (default) to 300 seconds. vim /etc/php5/fpm/php.ini Set… max_execution_time = 300 In