Page 1 of 1
504 Gateway Time-out nginx
Posted: Sat Feb 14, 2015 9:23 pm
by floown
Hello,
I have a problem since 2 days with VestaCP installed in a Ubuntu LTS. I have this message :
What can I do, please?
Thx in advance for your help.
/EDIT : I use Apache configuration, Ngnix is disabled for this site.
Re: 504 Gateway Time-out nginx
Posted: Sun Feb 15, 2015 4:27 pm
by skurudo
By default work nginx + apache2.
504 error say about not working backend (apache)
Disabled how? Tell us your story please.
Re: 504 Gateway Time-out nginx
Posted: Sun Feb 15, 2015 5:26 pm
by floown
Hello,
I wanted to say that Nginx is not checked in domaine name, in Vesta :
I have add in /etc/nginx/nginx.conf
Code: Select all
fastcgi_read_timeout 300;
proxy_connect_timeout 600;
proxy_send_timeout 600;
proxy_read_timeout 600;
send_timeout 600;
fastcgi_buffer_size 128k;
fastcgi_buffers 8 128k;
I have reboot the server (restarting Nginx did work). At this moment it seems to work.
Re: 504 Gateway Time-out nginx
Posted: Tue Feb 17, 2015 10:29 am
by floown
Ok, I have always this error. I have increase the values like explained here :
http://www.codetweet.com/nginx/solved-5 ... eb-server/
client_header_timeout 3000;
client_body_timeout 3000;
fastcgi_read_timeout 3000;
client_max_body_size 32m;
fastcgi_buffers 8 128k;
fastcgi_buffer_size 128k;
I hope the problem will be resolve with that.
Re: 504 Gateway Time-out nginx
Posted: Tue Feb 17, 2015 9:09 pm
by floown
I have modify in php.ini this line : max_execution_time = 300
Code: Select all
$ locate php.ini
/etc/php5/apache2/php.ini <------------ modified
/etc/php5/cgi/php.ini <------------ modified
/etc/php5/cli/php.ini <------------ modified
/usr/local/vesta/php/lib/php.ini
/usr/local/vesta/src/rpm/conf/php.ini
/usr/share/php5/php.ini-development
/usr/share/php5/php.ini-production
/usr/share/php5/php.ini-production.cli
I have restart apache. I'm waiting for a possible error, or not. This time a will look to the apache logs for my domain name.
Re: 504 Gateway Time-out nginx
Posted: Tue Jun 30, 2015 1:32 pm
by jinsonkv
The 504 error need not to be of the hosting company. There are some other issues that can make 504 error. Read it here
http://firstandgeek.com/504-gateway-tim ... error-504/
Re: 504 Gateway Time-out nginx
Posted: Wed Jul 01, 2015 7:07 pm
by skurudo
jinsonkv wrote:The 504 error need not to be of the hosting company. There are some other issues that can make 504 error.
Main idea - you need more resources but with simple language.
Re: 504 Gateway Time-out nginx
Posted: Sat Apr 09, 2016 7:29 am
by Faqeer1
This time a will look to the apache logs for my domain name.????
==
Solitaire ==