Solved

Bad gateway 500 from website !

Posted on 2015-01-18
3
76 Views
Last Modified: 2015-11-11
Dear All,

         My website usually has error with "Bad gateway 500". Is this problem about PHP code or another aspects ?

Please give me a solution for above problem.

Thanks advance,

LDVHai
0
Comment
Question by:ldvhai
3 Comments
 
LVL 28

Expert Comment

by:chilternPC
ID: 40557242
do you have a .htaccess file in the root ?   It might be  a .htaccess rule causing the problem. Check  this, access your server using FTP  and rename the .htaccess file to something completely different and retry.

Or are you running Wordpress?

If you are using wordpress , the Internal server error ( 500) is sometimes caused by a plugin or theme function conflict, so if you have access to your admin panel, try deactivating all plugins, reactivate each one individually until you find the cause.
0
 
LVL 17

Accepted Solution

by:
bigeven2002 earned 500 total points
ID: 40557365
Hello,
Bad gateway is usually http error 502, not 500.  Internal Server Error is 500 which applies to the web server and most of the time, .htaccess.

If it is truly error 502, that means there is a proxy or gateway server between you and the real web server.  The proxy received an invalid response from an upstream server it accesses to fulfill the request.  It doesn't always mean the upstream server is down but that server and the gateway/proxy are having trouble agreeing on the protocol to exchange data, in which case, one or both servers are incorrectly configured.

In fixing it, the first step would be to clear your internet cache completely.  If using Internet Explorer, this includes unchecking the preserving of cache for sites in your favorites.

If you are seeing the 502 bad gateway error only on your site, then check with your web hosting company to have them launch an investigation in their server setup.

If you are getting this error on random sites and not just your own, then it may be an issue with your ISP or your firewall/router.  In those cases, contact your ISP to see if they are aware of any issues or solutions such as an upgrade for your modem, or try updating your firewall/router or reconfiguring it if they provide guidance on that, or perhaps even replace the firewall/router.
0
 
LVL 2

Author Comment

by:ldvhai
ID: 41231525
OK, thks.
0

Featured Post

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Developer tools in browsers have been around for a while, yet they are still heavily underused by developers. Developers still fix html or CSS then refresh page to see effect, or they put alert or debugger in JavaScript and then try again and again …
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
This video teaches users how to migrate an existing Wordpress website to a new domain.
Learn how to set-up custom confirmation messages to users who complete your Wufoo form. Include inputs from fields in your form, webpage redirects, and more with Wufoo’s confirmation options.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question