What is a 500 internal server error and how do i fix it?

     

HTTPhường. status codes provide information about whether an online request was successful, và if not, what the error is. But the error messages aren’t always clear. This is especially the case for the “500 Internal Server Error.” This message indicates that an error has occurred during connection lớn the server và that the requested page cannot be accessed. However, it won’t tell you exactly why this is the case. Fortunately, there are different methods for finding the cause. We point out typical error sources & give tips on what to do if you encounter the HTTPhường error 500.

Bạn đang xem: What is a 500 internal server error and how do i fix it?


Domain
Email
Image library

Using status codes, the web server tells an mạng internet user’s browser (client) whether a request (i.e. accessing a website) was successful or not. If the browser receives the 200 status code, it knows that everything went well. However, the user never sees this message since the requested content appears instead. The situation is different with the 400 & 500 status codes. While the former indicate client errors, the latter are server-related. The Internal Server Error 500 is a collective sầu status code for hệ thống errors. Therefore, at first glance, it is not possible to lớn determine where the error actually lies. The user only knows that the hệ thống has reported an unexpected error.

However, if the VPS has installed Microsoft Internet Information Services (Microsoft IIS), the error code will be specified. Decimal places indicate the cause of the error in more detail:

500.0: Module or ISAPI error occurred.500.11: Application is shutting down on the website server.500.12: Application is busy restarting on the web server.500.13: Web VPS is too busy.500.15: Direct requests for global.asax are not allowed.500.19: Configuration data is invalid.500.21: Module not recognized.500.22: An ASP.NET httpModules configuration does not apply in Managed Pipeline mode.500.23: An ASPhường.NET httpHandlers configuration does not apply in Managed Pipeline mode.500.24: An ASPhường.NET impersonation configuration does not apply in Managed Pipeline mode.500.50: A rewrite error occurred during RQ_BEGIN_REQUEST notification handling. A configuration or inbound rule execution error occurred.500.51: A rewrite error occurred during GL_PRE_BEGIN_REQUEST notification handling. A global configuration or global rule execution error occurred.500.52: A rewrite error occurred during RQ_SEND_RESPONSE notification handling. An outbound rule execution occurred.500.53: A rewrite error occurred during RQ_RELEASE_REQUEST_STATE notification handling. An outbound rule execution error occurred. The rule is configured khổng lồ be executed before the output user cabít gets updated.500.100: Internal ASP error.

The “Internal Server Error” can occur when the request is processed by the web hệ thống. The collective status code includes everything unplanned that can happen on the server & prsự kiện the website from being loaded. The VPS error 500 probably happens because an error has occurred in the configuration of the website hệ thống. Here is a selection of typical error sources:

Permission error: The permissions of the main files & folders are not phối correctly.PHPhường timeout: The script tries to lớn access an external resource & experiences a timeout.PHP memory limit: A process exceeds memory and therefore cannot be executed correctly.

In the case of WordPress sites or other nội dung management systems, installing a faulty or incompatible extension can also be the cause. Plugins và themes – especially from third-buổi tiệc ngọt providers – can affect the entire trang web.


Are your trang web visitors only seeing the 500 VPS error? As an operator, you should tackle the problem quickly because not only will this scare off your visitors, but it could also mean that Google will lower your ranking. Before you take action, first check whether your VPS is still running. If not, tương tác your hosting provider as soon as possible.

If there is an internal error, the first step is to view the log files. For Linux servers, the collection of error messages should be found at /var/log/httpd/error_log. It makes sense khổng lồ reload the website khổng lồ reproduce the HTTPhường error 500 code & observe sầu how the log tệp tin is being created. This will help you find the source of the error quite quickly. Also consider which changes were made shortly before. In many cases, incorrectly programmed or incompatible plugins are the cause of error messages.

Errors can also occur if you have sầu not set permissions correctly for important files. In general, there are three types of rights:

Read (r)Write (w)Exedễ thương (x)

These permissions can be assigned for three different user types:

Owner of the fileGroup of usersAll others

The rights are specified either in the abbreviations r, w, and x, or in corresponding numerical values: 4 for read, 2 for write, and 1 for exexinh tươi. They are added for each user type và specified one after the other: rwxr-xr-x (rwx for the owner, r-x for the group, và r-x for all others) or 755. This configuration (755) should be the mặc định setting. If the permission assignment is phối differently, an error may occur. You can change this with a command:


If this change does not solve the problem, you can also release all rights for each group for thử nghiệm purposes:


But only use this setting to lớn locate the problem. Any user is allowed lớn rewrite the tệp tin, which is understandably a security risk.

Next, check (if distributing the rights didn’t produce the error message) if your scripts are running correctly. Sometimes errors occur because the script files have sầu been moved, renamed, or deleted. Also kiểm tra the .htaccess file: even a syntax error – no matter how small – can cause an internal server error. An equally comtháng error is incorrectly formatting the .htaccess file. This must be created in ASCII or ANSI format, not in Unicode. Therefore, write the tệp tin in a text editor such as Notepad, Notepad++, or Sublime Text, and not in a word processing program such as Microsoft Word. To kiểm tra whether the file is responsible for the error, you can temporarily rename it & reload the trang web. The server now won’t access .htaccess when loading the website. If you no longer receive sầu the error message, you can repair the file or create a new one.

A timeout can also lead to an error message. In this case, it isn’t a website server error, but rather an interrupted connection to an external source. Are PHP scripts on your trang web set to lớn access resources from other servers? Perhaps the resource is no longer available or VPS communication is down for some other reason. One way to lớn eliminate this source of error is of course to lớn not make your site dependent on external resources. If this is not possible, you can increase the time limit of your script. It also makes sense khổng lồ implement efficient error handling so that errors in the PHPhường script can be detected more accurately.

Could it be that the memory is overloaded? The memory limit determines how much memory a process may use. If more RAM is needed than is available, this could result in an internal VPS error. You can increase the limit as a temporary solution. To vì chưng this, add a comm& lượt thích this to lớn php.ini:


In this example, you would set the memory provided to 512MB. Note, however, that your hosting provider will only allow you a certain PHPhường script limit within the package that you’ve booked. If you enter a higher value, the website hệ thống will ignore it. Raising the limit is only a temporary solution: once your site is up and running again, you should look for the reason for the high RAM usage. There is a high probability that the error can be found in the code of your website.

If none of these methods offer you a solution, it is a good idea khổng lồ liên hệ your hosting provider. Before doing so, you can kiểm tra the status of the servers: many hosting service providers will report the status of their servers via a status page or insize users via social media if a problem has occurred.

Xem thêm: Hướng Dẫn Các Cách Lưu Giữ Ảnh Trên Mạng Mới Nhất 2020, Sao Lưu Ảnh Và Video


jdomain.vn also has a status page where the hosting service’s customers are informed about current problems.


As a website visitor, there is little you can vày if you encounter an internal hệ thống error. The website server on which the target trang web is located has an incorrect configuration. This means that there is no error in your PC settings or the network connection settings. Therefore, the easiest solution for you as an internet user is usually to reload the page again later. On the one h&, it is possible that the webmaster has already corrected the error. This is very likely, especially with large providers. On the other hvà, it could be that you’re trying khổng lồ access the trang web at an inconvenient time for the website server. If you’ve sầu chosen the exact moment that the service is rebooting, the error message will be displayed even though everything is going to lớn plan.


If you are confronted with the error message when ordering online, you must not reload the webpage, since you can’t see where the error occurred. It could be that the confirmation page failed lớn load, but the system has already accepted your order. Refreshing the page could therefore lead lớn a duplicate order.


It is also possible that an extreme increase in page views has brought the VPS down all of a sudden. This problem is usually solved within a few seconds – unless the trang web is permanently overloaded. If you still receive the error message after refreshing the page, you should first clear your browser’s cache. The browser may not actually reload the website, but use its internal memory instead. After emptying the cabịt, try again lớn access the trang web.

If the “500 Internal Server Error” is still being displayed, you simply have sầu no other choice, but to wait for the trang web operator lớn solve the problem. There is, however, a little trick you can use in order lớn access the contents of the trang web. If you are not dependent on the lachạy thử state of the (functioning) page, you can access the Google cache. If you enter the command cache: followed by the relevant URL in the Google tìm kiếm bar, you can access an earlier – hopefully still working – version of the website. However, you won’t really be surfing the page, you will only be navigating within the copy on the Google VPS.

If you have sầu to lớn go bachồng even further in the past, it may be worth taking a look at the Wayback Machine. There you can sometimes find older versions of websites that are even decades old.


*
Google enables you khổng lồ download copies of older versions of websites.
*
An information bar at the top of the page tells you when Google has copied the page khổng lồ the cache.
If the trang web you want lớn visit is not accessible for a longer time, you can of course tương tác the webmaster. They may not even know that visitors are unable lớn access their site, which is why they will be grateful to be told.


HTTPhường 503 (Service Unavailable): meaning and troubleshooting

18.09.2017 It’s very likely that you’ve sầu stumbled on the 'HTTPhường. Error 503 The service is unavailable' notification or something similar during your daily browsing. The error message appears whenever a website server can’t display the trang web that the user is trying lớn access. There are many reasons for these notifications, just as there are many solutions. It’s your responsibility as the trang web operator to...


HTTP.. 400: Bad Request explained

16.08.2019 Internet users are often confronted with error messages. HTTP status codes can be especially annoying, and even more so if you don’t understvà what they mean. The message 'HTTP 400 – Bad Request' is a mystery for many mạng internet users, but luckily it can be solved in most cases. We explain what the error message means and how to lớn fix the error.


HTTP. 504 (Gateway Timeout): How lớn fix an error 504

16.08.2019 If the error message ‘HTTP.. 504 Gateway Timeout’ appears when you attempt to lớn open a trang web, it means that the allowed time for responding lớn browser queries has been exceeded. A lot of the time the culprit is not the website hệ thống itself, but instead some other component of the hệ thống, i.e. a gateway, which is integral lớn the path of communication. What does 504 gateway timeout mean? How can you fix...


Windows xanh screen (BSOD): How lớn cure the error

27.02.2019 The infamous blue screen of death usually shows up without any warning. It’s an important indicator of internal problems with hardware, software, or drivers. If Windows can no longer be run as a result of such a problem, then the forced shutdown takes place in the khung of a xanh screen containing an error message. This may cause unsaved files and documents lớn be lost. The most important thing with...


SMTP. error 550: how lớn fix “Requested action not taken: mailbox unavailable” và other SMTP 550 error messages

06.09.2019 If you want lớn skết thúc a message with your e-mail client & the sending fails, you’ll receive a corresponding error message from the hệ thống, including an SMTPhường status code. For example, the message “550 Requested action not taken: mailbox unavailable” means that the targeted address couldn’t be reached. Since this problem can have various causes, even more possible solutions exist, some of which you...


Related Products


Web Hosting
See packages

Web hosting for agencies

Provide powerful và reliable service to your clients with a web hosting package from jdomain.vn.

View packages
How much does a website cost?

Use our typology lớn create a realistic estimate for the cost of your website...


How lớn promote your website

From SEM, to display và sản phẩm điện thoại, we show you the most important online sale methods...


Build a restaurant website

A homepage lets you reach existing & potential customers, you don't even need any web kiến thiết skills lớn get started...


Selling crafts online

We show you how khổng lồ sell your handmade crafts on online platforms, social truyền thông, and your own trang web...


Chuyên mục: Domain Hosting