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
Next, we explain the above Nginx parameter configuration:
fastcgi connection timeout, default 60 seconds
The timeout for the nginx process to send a request to the fastcgi process, the default value is 60 seconds
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.