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: 184.108.40.206, server: _, request: “POST /wp-admin/admin-ajax.php HTTP/1.1”, upstream: “fastcgi://unix:/run/php-fpm/www.sock”, host: “220.127.116.11”, referrer: “http://18.104.22.168/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.×