Skip to content

Instantly share code, notes, and snippets.

@randika
Created February 11, 2014 04:35
Show Gist options
  • Save randika/8929308 to your computer and use it in GitHub Desktop.
Save randika/8929308 to your computer and use it in GitHub Desktop.
php-fpm nginx 504 Gateway Timeout error
Edit
vim /etc/nginx/sites-available/example.com
location ~ \.php$ {
...
fastcgi_read_timeout 300; # Add this line
...
}
Edit
sudo vim /etc/php5/fpm/pool.d/www.conf
Set
request_terminate_timeout = 300
Restart/Reload
sudo service php5-fpm restart
sudo service nginx reload
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment