Hello,
I am using Magento v2.2.6 on a Linux server with 8gb RAM, Apache v2.4.43 and PHP 7.0
Whenever I try to edit the orders from Magento Admin panel it shows me the 504 Gateway Timeout error.
I tried increasing the max_execution_time to 3000 and max_input_vars to 10000 using PHP INI editor. But still have the same issue.
Please help me.
Hi @mbparmar10
Increase the php fpm value.
fastcgi_read_timeout 600; proxy_read_timeout 600;
restart the php-fpm.
For more info:
https://asdqwe.net/blog/solutions-504-gateway-timeout-nginx/
I hope it will help you!
Thank you very much, I will try it and let you know.
Another same issue that I encountered today was after upgrading the store to 2.2.10 version of Magento. The whole site went down with the same 504 gateway error message.
Shall I go ahead and upgrade to 2.3.0 ignoring the message?
Any ideas on that?
Hi @mbparmar10
Definitively you should upgrade to Magento latest version 2.3.4.
But it will not resolve the 504 gateway error.
I think you should fix this 504 error first from server side.
Hi Vimal,
Will your solution work on our Apache server? As mentioned we are using Apache dedicated server with 8gb ram and PHP v7.0
There is no Nginx or fastcgi installed.
Hi @mbparmar10
Try the below values
1. Update the below values in the php.ini file.
upload_max_filesize:1000M
max_execution_time:18000
memory_limit:4086M
max_input_time:18000
max_input_vars:3000
post_max_size:1000M
2. And then save the php.ini file.
3. Then we restart Apache service
On a CentOS server : service httpd restart
In Ubuntu: service apache2 restart
Might me It will help you!
Hello @Vimal Kumar ,
I already tried putting the value of 18000 in max_execution time and current max_input_time is set to -1 which is for no memory limit.
However, Godaddy my server provider sent me the following message and asked to reduce the max_execution_time:
Hello @mbparmar10
You should upgrade your php version.
The Magento 2.2.10 patch enables support for PHP 7.2. Supported PHP versions for Magento 2.2.x are 7.2 and 7.1. PHP 7.0 is no longer supported.
For your reference:https://devdocs.magento.com/guides/v2.2/install-gde/system-requirements-tech.html
Apart from that Please note that Magento has no longer support for below > Magento 2.3 version so recommendable it to upgrade php and latest version of Magento. on 28 April Magento going to release new version which is Magento 2.3.5. You can upgrade to that version there are many old functions deprecated and fixes core issues, security issues.
https://devdocs.magento.com/release/
Hello @Manish Mittal
Thanks for your reply, I have cloned my live store to a development store and it is using the PHP v7.2 and has been upgraded to the latest Magento v2.3.4. But despite this, there is a 500 Internal Server error showing both in the admin and frontend. The whole site is down and not even a single error log is generated.
Can you please help me out.
@Vimal Kumar your input to this will be appreciated as well.
Please help me.