Whenever I try to add a new user manually or sign up as a new user via the front-end of my wordpress multisite, the browser waits for a long time and before returning nginx 504 Gateway Time-out error.
I checked the nginx error log and found the following error.
2018/06/13 19:15:56 [error] 3405#3405: *271 upstream timed out (110: Connection timed out) while reading response header from upstream, client: IP_ADDRESS, server: sitename.com, request: “POST /wp-admin/user-new.php HTTP/1.1”, upstream: “fastcgi://unix:/run/php/php7.0-fpm.sock”, host: “sitename.com”, referrer: “https://sitename.com/wp-admin/user-new.php“
How to fix this issue?
Read more here:: 504 Gateway Time-out error on Add New User