Categories
PrestaShop Tutorial Consultation

504 Gateway Time-out during the PrestaShop 1.7 installation Or Error on step “Install Addons modules”

PrestaShop customers using Nginx will report a 504 error in most cases when installing PrestaShop, but when the network speed is good, occasionally there is no problem again. After careful investigation, we found the problem, because Nginx executes The time of the PHP script is too short, we only need to increase the time for Nginx to execute PHP.

Modify nginx configuration

In nginx.conf, set the following parameters to increase the timeout

http {

fastcgi_connect_timeout 3600;
fastcgi_send_timeout 3600;
fastcgi_read_timeout 3600;

}

Next, we explain the above Nginx parameter configuration:

fastcgi_connect_timeout
fastcgi connection timeout, default 60 seconds

fastcgi_send_timeout
The timeout for the nginx process to send a request to the fastcgi process, the default value is 60 seconds

fastcgi_read_timeout
The timeout for the fastcgi process to send the output process to the nginx process, the default value is 60 seconds

After the configuration is complete, restart Nginx, and finally reinstall PrestaShop. At this time, you will see that the installation is successful, and there will be no 504 errors again.

Leave a Reply

Your email address will not be published.