Solved

Bad gateway 500 from website !

Posted on 2015-01-18
3
67 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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Introduction A frequently used term in Object-Oriented design is "SOLID" which is a mnemonic acronym that covers five principles of OO design.  These principles do not stand alone; there is interplay among them.  And they are not laws, merely princ…
There is a huge demand for CodeIgniter among the PHP web developers due to its dynamic features and benefits these days. It is one of most popular and agile open source PHP framework for creating robust web applications in PHP web development field.…
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.
Learn how to set-up PayPal payment integration in your Wufoo form. Allow your users to remit payment through PayPal upon completion of your online form. This is helpful for collecting membership payments, customer payments, donations, and more.

743 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now