LWS Linux shared hosting and domain package6 November 2026By romain 3 min read
How to fix a 500 error on your website with LWS Panel
Procédure
Introduction
The dreaded 500 Internal Server error. It always seems to appear at the most inconvenient moment, suddenly leaving you searching for solutions to get your site back online. We understand this situation perfectly, because we have all been through it.
In this article, we will explore the 500 Internal Server error and provide you with solutions to quickly restore your site online. Find out below the causes of this error and how you can prevent it from happening again in the future.
What is the 500 Internal Server Error?
Status code 500 (Internal Server Error) indicates that the server encountered an unexpected condition that prevented it from fulfilling the request.
When you access a website, your browser sends a request to the server where the site is hosted. The server then takes that request, processes it, and sends back the requested resources such as PHP, HTML, CSS, etc., along with an HTTP header. This HTTP header also contains what is called an HTTP status code. This status code is a way of informing you about the status of the request. It can be a 200 status code, meaning “Everything is fine,” or a 500 status code, indicating that an internal server error has occurred.
There are different types of 500 status error codes (500, 501, 502, 503, 504, etc.), each with a different meaning. In this case, a 500 Internal Server error means that the server encountered an unexpected condition preventing it from responding to the request
Error code
HTTP Error 500
Error type
Error code
Error variations
“500 Internal Server Error”
“HTTP 500”
“Internal Server Error”
“HTTP 500 – Internal Server Error”
“Error 500”
“HTTP Error 500”
“500 – Internal Server Error”
“500 Internal Server Error. Sorry, something went wrong.”
“500. That’s an error. There was an error. Please try again later. That’s all we know.”
“The website cannot display the page – HTTP 500.”
“Is currently unable to process this request. HTTP ERROR 500.”
Causes of the error
Browser cache.
Corrupted .htaccess file and PHP memory limit.
Problems with third-party plugins and themes.
Corrupted files in your WordPress installation.
Problems with your database server.
Variations of 500 Internal Server errors
In the case of an issue with a .htaccess file, you will usually get this error page:
In general, the standard message for error 500 is:
Most Common Causes of the 500 Internal Server Error:
The 500 Internal Server error can have many causes. If you are seeing one, there is a strong chance that one (or more) of the following is responsible for the problem:
Browser cache.
Incorrect database login credentials.
Corrupted database.
Corrupted files in your WordPress installation.
Problems with your database server.
Corrupted WordPress files.
Corrupted .htaccess file and PHP memory limit.
Problems with third-party plugins and themes.
PHP timing out or fatal PHP errors with third-party plugins.
Incorrect file and folder permissions.
PHP memory limit exhausted on your server
Corrupted or broken .htaccess file.
Errors in CGI and Perl scripts.
Impact of 500 errors on SEO
Unlike 503 errors, which simply signal WordPress maintenance mode and tell Google to check again later, a 500 error can have harmful effects on SEO if it is not resolved immediately.
If your site is down for a short period, say 10 minutes, and it is regularly crawled, the indexing robot will generally just remove the page from its cache. In some cases, Google may even not have the chance to try again before the next crawl. In these circumstances, everything is under control.
However, if the site is down for a prolonged period, for example 6 hours or more, Google may interpret the 500 error as a serious problem requiring correction. This could then affect your ranking in search results. If you want to avoid encountering 500 errors regularly, it is essential to understand their initial causes. The solutions below can help you with that.
How to fix the 500 Internal Server error?
When you are faced with a 500 Internal Server error on your site, it can be difficult to know where to begin troubleshooting. Generally, 500 errors are related to the server itself, but in our experience, these errors can have two main causes. The first is related to a user error (client-side issue), while the second is associated with a server-side problem.
1. Try reloading the page
It may seem obvious to some, but one of the first simple actions you can take when faced with a 500 Internal Server error is to wait a few minutes and reload the page (F5 or Ctrl + F5). It may be that the server or hosting provider is temporarily overloaded and the site will come back online quickly. In the meantime, you can also try accessing the site through another browser to eliminate any possible issues related to your current browser.
We have also found that this can sometimes happen immediately after updating a plugin or theme on your site. Generally, this is due to a misconfiguration of the hosts. What happens is that they experience a brief temporary outage right after the update. However, things usually resolve within a few seconds, so refreshing the page is all you need to do.
2. Clear your browser cache
Before going into deeper debugging of your site, another troubleshooting step is to clear your browser cache.
3. Check your server logs
To quickly resolve the issue, it is useful to use the error logs. On LWS Panel, they can be read in the LWS Log Analyzer tool: in the “Database & PHP” section of your hosting, click the Apache PHP ModSecurity Logs icon. This can be particularly useful if the problem is related to a plugin on your site.
To find the cause of a 500 error:
open the PHP Errors tab, choose your site from the domain list and a period covering the time when the error occurred (“24h” by default, up to “last 7 days”);
click the Fatal filter and locate the line at the time of the problem: the “PHP FILE” and “LINE” columns indicate where the error occurs (for example the folder of a plugin or theme in /wp-content/plugins/ or /wp-content/themes/), and the “MESSAGE” column gives the exact text of the error;
click ✨ AI Diagnostic at the end of the line, then ✨ Analyze with AI to get an explanation and correction steps.
500 Internal Server errors can also occur because of a database connection problem. Depending on your browser, you may encounter different errors, but they will all generate an HTTP 500 status code, regardless of the content of your server logs.
Here is an example of an error that occurs when a database connection fails. The entire page appears blank because no data can be retrieved to display the page due to a database connection problem. Not only does this affect the public-facing interface of your site, but it will also prevent you from accessing the WordPress dashboard.
So, why does this happen exactly? Here are some common reasons:
Your database credentials are incorrect. Your site uses separate login details to connect to its MySQL database.
Your WordPress database is corrupted. With themes, plugins, and users constantly being added and removed, databases can sometimes become corrupted. This may be due to a missing or corrupted table, or the accidental deletion of certain information.
You may have corrupted files in your WordPress installation. This can sometimes be caused by hacker attacks.
Problems with your database server. Several issues can occur on the web host’s side, such as database overload due to a traffic spike or an inability to respond because of too many simultaneous connections. This is especially common with shared hosting, where the same resources are shared among many users on the same server.
5. Check your plugins and theme
Third-party plugins and themes can often be the cause of 500 Internal Server errors. Often, you will notice the error immediately after installing a new element or running an update. That is why we always recommend using a staging environment for updates, or at least running them one by one. Otherwise, if you encounter a 500 Internal Server error, you will need to identify the source of the error.
On a WordPress site, the easiest option is the SOS tab in WP Manager: choose Smart mode then click LAUNCH DIAGNOSTIC. This mode reads the error logs and disables only the plugin causing the issue, even if the WordPress admin area no longer opens. If the error continues, Radical mode disables all plugins and resets the .htaccess file. The steps, and how to reactivate your plugins one by one afterward, are detailed in the help article Repair a WordPress site with error 500 using the WP Manager SOS tool.
To solve this problem and determine whether a plugin is causing an issue, we recommend following this documentation.
Always make sure your plugins, themes, and the WordPress core are up to date, and check that you are using a supported PHP version. If the problem is due to faulty code in a plugin, you may need to hire a WordPress developer to fix it.
6. Reinstall the WordPress Core
Occasionally, the main WordPress files can become altered, especially on older sites. It is possible to reload only the WordPress core without affecting plugins or themes. However, make sure to back up your data before making any changes.
From the WP Manager of your LWS Panel, open your site’s SOS tab: the “Reinstall WordPress Core” card restores the wp-includes and wp-admin folders and the site root files, in the same version as the one installed, without touching your personal files. Click the “Reinstall version…” button, which shows your site’s version. This method works even when error 500 prevents access to the WordPress admin area. It is detailed in the help article Repair a WordPress site with error 500 using the WP Manager SOS tool.
If the WordPress admin area still opens, you can also go through Dashboard -> Updates, which lets you reinstall WordPress without losing content:
7. Check permissions errors*
A permissions error concerning a file or directory on your server can also trigger a 500 Internal Server error. Here are some standard recommendations regarding file and directory permissions in WordPress:
All files should have permissions of 644 (-rw-r-r-r-r-) or 640.
All directories should have permissions of 755 (drwxr-xr-xr-xr-x) or 750.
No directory should ever have permissions of 777, not even upload directories.
Advanced: the wp-config.php file can also be configured with permissions of 440 or 400 to prevent other server users from reading it.
It is possible that this error is due to the PHP version following the update of your script. It is also possible that the 500 error is due to a lack of memory allocated to your site. Indeed, some PHP scripts require a large amount of memory to function properly. The browser also makes a very large number of requests in order to load the content, plugins, and scripts of your site. As a result, insufficient memory can cause a 500 error. You can test by changing PHP versions or allocating more memory to your plan by going to the administration of your LWS plan and then to “PHP Configuration” in the “Database & PHP” section
There you will be able to change the PHP version, but also increase the allocated memory "memory_limit" or the "max_execution_time" value on your plan.
If this value is already at its maximum, your site may be too resource-intensive for the plan you currently have. In that case, you will need to switch to a more powerful plan.
9. Fix your .htaccess file
The Apache web server directives concerning .htaccess files are as follows:
Options -Indexes -Includes -ExecCGI -IncludesNOEXEC -MultiViews -SymLinksIfOwnerMatch +FollowSymLinks AllowOverride None AllowOverride Indexes AuthConfig Limit FileInfo Order allow,deny Allow from all Deny from all
Limit : Directives controlling host access (Allow, Deny and Order).
FileInfo : Directives controlling document types (DefaultType, ErrorDocument, ForceType, LanguagePriority, SetHandler, SetInputFilter, SetOutputFilter, and mod_mime Add and Remove directives, etc.), document meta data (Header, RequestHeader, SetEnvIf, SetEnvIfNoCase, BrowserMatch, CookieExpires, CookieDomain, CookieStyle, CookieTracking, CookieName), mod_rewrite directives (RewriteEngine, RewriteOptions, RewriteBase, RewriteCond, RewriteRule) and Action for mod_actions.
The "Options" directive is disabled: If this setting is present in your .htaccess file, it will produce an error. We therefore invite you to comment out all lines starting with this directive (add a "#" at the beginning of the line).
However, the "+FollowSymLinks" option of the "Options" directive is active. This feature is used in many CMSs such as Joomla. You can therefore comment out the line associated with this setting in the .htaccess file without any problem.
We recommend this site, which can help you generate your htaccess file very easily: http://www.htaccesstools.com
To check whether the problem comes from your .htaccess file, we invite you to rename it to .htaccess-test via FTP.
You can also do this through the "File Manager" in the administration of your plan, in the "File" section.
Right-click the .htaccess file and then click "Rename".
Rename the file to ".old_htaccess" or "htaccess.txt".
After renaming the file, it is necessary to test your site again to see whether it displays or still causes a problem.
If the error disappears, then the problem was due to a syntax error.
Technical help for resolving the 500 - Internal Server Error
Our technical team is available to help you resolve the 500 Internal Server Error on your website.
As part of an on-demand managed service, a specialized technician calls you back within one hour of the request being opened and carries out the necessary actions to resolve the encountered error for you.
Bonjour j'espère que vous allez bien. je travail en ligne avec le CMS drupal et j'ai un problème au niveau des images qui ne s'affiche pas sur mon site lorsque je les insèrent . merci de me répondre.
B✓
Benjamin-LWS Official answer
8 Jun 2023
Bonjour,
Merci de votre retour.
N'ayant aucun accès à vos données LWS, je ne peux vous dire précisément d'où vient le problème que vous rencontrez. C'est pour cela que je vous invite à passer par notre service support à travers votre espace client pour régler votre problème au plus vite. (Contacter le support LWS)
Je vous remercie de votre attention et reste à votre disposition pour toute autre question ou complément d'information.
Cordialement, L'équipe LWS
Was this answer helpful?
Need more help?
A question about this article?
Léo, our assistant, answers you straight away based on our articles.
A problem with your account?
Our technical support team handles your request by ticket, from your customer area.