I’m setting up a WordPress blog on Amazon EC2 server with nginx and Varnish. I’ve followed this tutorial step by step.
The blog is setup & working fine.
Now when I try to upload a new theme through WordPress, it starts uploading and by the time it reaches 70%(takes around 1 minute to reach 70%), the connection is abruptly disconnected with the error code: ERR_CONNECTION_ABORTED
I’m guessing it is due to some connection timeout that’s happening in nginx, varnish or somewhere else.
I’m new to this stuff. I did the following:
-
I changed the timeout in
/etc/php5/fpm/pool.d/www.conf
torequest_terminate_timeout = 500
-
I changed the timeout in
/etc/nginx/nginx.conf
tofastcgi_read_timeout 500;
But that didn’t seem to work. I’m stuck. Kindly guide me.
For anyone facing the same issue, here’s the solution.
Solved it by adding the following settings:
php-fpm’s php.ini
php-fpm’s pool configuration
nginx.conf
All thanks to this wonderful post