Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Web Server
  • Search

504 Gateway Time-out nginx

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
8 posts • Page 1 of 1
floown
Posts: 87
Joined: Wed Nov 19, 2014 1:51 pm

Os: Ubuntu 15x
Web: apache + nginx
504 Gateway Time-out nginx
  • Quote

Post by floown » Sat Feb 14, 2015 9:23 pm

Hello,

I have a problem since 2 days with VestaCP installed in a Ubuntu LTS. I have this message :

Code: Select all

504 Gateway Time-out

nginx
What can I do, please?

Thx in advance for your help.

/EDIT : I use Apache configuration, Ngnix is disabled for this site.
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: 504 Gateway Time-out nginx
  • Quote

Post by skurudo » Sun Feb 15, 2015 4:27 pm

By default work nginx + apache2.
504 error say about not working backend (apache)

Disabled how? Tell us your story please.
Top

floown
Posts: 87
Joined: Wed Nov 19, 2014 1:51 pm

Os: Ubuntu 15x
Web: apache + nginx
Re: 504 Gateway Time-out nginx
  • Quote

Post by floown » Sun Feb 15, 2015 5:26 pm

Hello,

I wanted to say that Nginx is not checked in domaine name, in Vesta :
Image

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.
Top

floown
Posts: 87
Joined: Wed Nov 19, 2014 1:51 pm

Os: Ubuntu 15x
Web: apache + nginx
Re: 504 Gateway Time-out nginx
  • Quote

Post by floown » Tue Feb 17, 2015 10:29 am

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.
Top

floown
Posts: 87
Joined: Wed Nov 19, 2014 1:51 pm

Os: Ubuntu 15x
Web: apache + nginx
Re: 504 Gateway Time-out nginx
  • Quote

Post by floown » Tue Feb 17, 2015 9:09 pm

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.
Top

jinsonkv
Posts: 2
Joined: Tue Jun 30, 2015 1:28 pm

Re: 504 Gateway Time-out nginx
  • Quote

Post by jinsonkv » Tue Jun 30, 2015 1:32 pm

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/
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: 504 Gateway Time-out nginx
  • Quote

Post by skurudo » Wed Jul 01, 2015 7:07 pm

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.
Top

Faqeer1
Posts: 1
Joined: Sat Apr 09, 2016 7:22 am

Re: 504 Gateway Time-out nginx
  • Quote

Post by Faqeer1 » Sat Apr 09, 2016 7:29 am

This time a will look to the apache logs for my domain name.????



== Solitaire ==
Top


Post Reply
  • Print view

8 posts • Page 1 of 1

Return to “Web Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

cron

Login  •  Register

I forgot my password