1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

502 Bad Gateway

Discussion in 'Server Configuration and Hosting' started by DRE, Oct 1, 2013.

  1. DRE

    DRE Well-Known Member

    I've been getting these a lot lately. What could be the cause of 502 Bad Gateways? Gonna email my host.
     
  2. DRE

    DRE Well-Known Member

    I am unable to submit a ticket at KnownHost for some reason. Their site is moving extremely slow. Looks like I'll have to email em.
     
  3. Tracy Perry

    Tracy Perry Well-Known Member

    I've found on nginx that it's usually because php-fpm was having problems.
     
  4. DRE

    DRE Well-Known Member

    Oh is that what it is. @MattW installed nginx on my site and set it up. I hope what he did wasn't so complicated that knownhost can't figure it out. Not really trusting their technical aptitude about this yet since this will be my second ticket to them for this same issue.
     
  5. MattW

    MattW Well-Known Member

    DRE likes this.
  6. MattW

    MattW Well-Known Member

    I'm going to make a couple of small changes to the default config for nginx, and restart it on your server if that's OK?
     
  7. DRE

    DRE Well-Known Member

    yeah thats cool!
     
  8. DRE

    DRE Well-Known Member

    They actually responded quite fast.


    I checked the server but couldn't find any issues.

    The resource usage and load the server are fine.

    If you are facing similar issues, please get back to us at the exact time the issue occurs.
     
  9. MattW

    MattW Well-Known Member

    Done and restarted
     
    Adam Howard and DRE like this.
  10. Adam Howard

    Adam Howard Well-Known Member

    @MattW

    I'll ask publicly for a point of reference.....

    From time to time I do get people who want or need help with nGinx. It's not exactly my skill set. I find so many things change or vary in each version. Unlike with Apache, what works today, works in tomorrows release (my point of view).

    But I've noticed you have a fair understanding of it (nginx). Often most of the solutions I see here (XenForo) regarding nginx come from you or you have some impute to add.

    Would it be OK and do you believe you would be up for the task if I referred these people to you in the future?
     
  11. Tracy Perry

    Tracy Perry Well-Known Member

    centOS?j ackkkkkk.... spit.....

    Debian for the World! :coffee:

    centOS is a OK, but I been in the Debbie camp for to long. Even on my centOS box I have here I find myself typing in apt-get instead of yum (and I went so far as to mod the prompt to remind me in garish letters to use YUM).
     
    Adam Howard and euantor like this.
  12. The Forum Heroes

    The Forum Heroes Well-Known Member


    Sadly for me the command yum update tummy always leads to command not found
     
    Tracy Perry likes this.
  13. MattW

    MattW Well-Known Member

    Adam Howard likes this.
  14. Tracy Perry

    Tracy Perry Well-Known Member

    Not bad... I may end up getting a second VPS just for that. Right now I replicate the DB's between my two servers, rsync the backups (DB and forum structure) between the two and then rsync the DB/forum to my Mac and Debian server at the house. Think I'm doing overkill? :D
     
  15. DRE

    DRE Well-Known Member

    Damn site's down again. After I just opened it today too.
     
  16. Tracy Perry

    Tracy Perry Well-Known Member

    yep, you are still getting the 502 Bad Gateway error.
    @MattW, see what you get with centOS? :ROFLMAO: <as I'm running to go hide in the nearest bunker!>
    Why not dump apache totally and use nginx?
     
    Adam Howard likes this.
  17. Adam Howard

    Adam Howard Well-Known Member

    Did you ever figure out how to resolve that performance issue you were having?
     
  18. DRE

    DRE Well-Known Member

    Or just go with Litespeed?
    What performance issue?
     
    SneakyDave likes this.
  19. Adam Howard

    Adam Howard Well-Known Member

    You had that database issue as I recall
     
  20. Tracy Perry

    Tracy Perry Well-Known Member

    Considering the problems that folks have had with LiteSpeed and xenForo... you're welcome to it. OpenLiteSpeed (once it's been out a little longer and proven itself) might work. I'll stick with my nginx setup thankee very much.. :p
     
    Adam Howard likes this.

Share This Page