Join 1M+ other developers and:
- Get help and share knowledge in Q&A
- Subscribe to topics of interest
- Get courses & tools that help you grow as a developer or small business owner
Nginx always give me 504 error on wordpress
I got nginx 504 Gateway Time-out when trying to install plugin from wordpress dashboard.
this is the error I got from log.
2020/12/22 21:12:35 [error] 7695#0: *2188 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 22.214.171.124, server: _, request: “POST /wp-admin/admin-ajax.php HTTP/1.1”, upstream: “fastcgi://unix:/run/php-fpm/www.sock”, host: “126.96.36.199”, referrer: “http://188.8.131.52/wp-admin/plugin-install.php?s=TablePress&tab=search&type=term”
I had trie some advice from the community by trying to incrase the execution time but not luck
below is my config:
I had added inside the nginx configure file.
from php.ini change to
max_execution_time = 300
request_terminate_timeout = 300
thanks advance if any of you can help me.
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.×