Created
February 11, 2014 04:35
-
-
Save randika/8929308 to your computer and use it in GitHub Desktop.
php-fpm nginx 504 Gateway Timeout error
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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