Guides and tutorials

Hundreds of tutorials and step by step guides carefully written by our support team.

How to fix Error 500 Internal server error

The Error 500 – Internal Server Error is a general http code that is returned when, although no further information is available, the website server detects that something has gone wrong.

You must take into account that this error can be reported in different ways, the most common are for example:

  • 500 Internal Server Error
  • HTTP 500 – Internal Server Error
  • Temporary Error (500)
  • Internal Server Error
  • HTTP 500 Internal Error
  • 500 Error
  • HTTP Error 500

How can I solve the Error 500 – Internal Server Error?

First of all we must differentiate whether the problem has occurred on an external website that we are visiting, or if it has occurred on our own website, since the steps to be taken will be different.

info If you still do not have a hosting where to host your website, you can check below the offers that we put at your fingertips.

cta:hosting

On an external website

In case you experience this error when visiting a website, it is possible that you have experienced a problem from your navigation. Some steps you can try in this case are:

  • Reload the website:

    Sometimes these kinds of problems are temporary, so you can reload the website by pressing the keys F5 or simultaneously Ctrl + R. Alternatively, you can enter the URL again in the address bar, or the reload icon.

  • Clear your browser's cache:

    As we mentioned in the previous point, it is possible that the problem was temporary, but perhaps when reloading you will still see it. This may be because the temporary error has been saved as a query result in your browser, so another recommended step is to clear your browser's cache.

    Regardless of which browser you use, you will usually see the option to clear cache or clear browsing data in your browser's history or privacy settings.

  • Delete browser cookies.

    Similar to the cache, it is possible that your browser has saved cookies that generate this error, so it is also advisable to delete them. You can usually find them next to the option to delete the cache.

  • Contact the website administrators:

    It is possible that the website administrators know the status of the website, but it is a good practice to inform them about it, as they might not know the status of the situation and this way you can benefit each other.

On your own website

If you have noticed that your website is generating this type of error, given that it is a generic error, there may be multiple causes. Here are some of the most common ones:

  • Permissions error:

    It is very common that this error is generated because of incorrect permissions, either at directory or file level. Perhaps there are incompatible permissions between a PHP script and CGI, which prevents communication.

    In case you need to check the permissions of the directories and files on your website, you can be guided by the manual below:

    Permission Management

  • PHP Timeout

    If a command sequence within your code must perform an action or process a request and exceeds the timeout time, this error may occur. Specifying specific timeout rules, or better script handling can help in this regard.

  • Code error at the .htaccess level:

    It is important to make sure that the .htaccess file is correctly structured, otherwise errors in the .htaccess file could generate the 500 error.

Finally, it is possible that you encounter this error and it is not due to any of the above causes, after all it is a generic error, and not all websites are the same and do not follow the same patterns at the code level.

For this reason, our main recommendation is that you frequently check the logs of your website, or even of your private server (if you have one). These logs will give you the information you need to diagnose this or other errors you may encounter, and are an essential tool to keep your website healthy and ready for the public.

If you need to know how to check your web logs, you can follow the manual below:

How to review the event log of your website

Are you interested in acquiring a private server to host your projects? We invite you to review the offers that SWHosting offers you:

cta:cloud_app_swpanel_smart_d5