If you receive the "500 Internal Server Error" error in your WordPress website, it is important to note that this error is not specific to WordPress and can occur on any server regardless of CMS or running application.
We present below some causes that lead to this error and possible ways to solve it.
First, to identify the cause as quickly as possible, check the logs for errors. Log in to your Cpanel account - access File Manager in etc / logs - find server error logs.
With the help of these logs you can easily identify the reason for this error.
The most common reasons you receive this error are:
- The .htaccess file is corrupt
- a first step would be to connect through an FTP application or through the Cpanel interface and rename the .htaccess file
- after renaming the file, log in to the WordPress interface - go to Settings> Permalinks and click Save - Insufficient memory limit
This may be due to a plugin or theme that requires a higher resource requirement. To solve this error you will need to increase the PHP memory used by WordPress. Changing the PHP memory limit can be done by editing with the help of an FTP application or the File Manager in Cpanel the file wp-config.php - located in the root of the WordPress website.
Find the line:
define('WP_MEMORY_LIMIT', '128M'); si cresteti aceasta memorie ex:512M
If errors are used in the error logs related to the memory used/allocated, contact the Technical Department.
3. Problematic plugins
If the memory limit has been changed but the error persists, it is possible that one of the plugins used has a problem or there are incompatibilities between the theme and the active plugins.
We recommend renaming the plugin directory either using Cpanel -> File Manager-> wp content -> plugins (rename the directory, this disables all plugins that were active).
Log in to the WordPress admin panel and activate one plugin at a time, checking after each activation if the error message persists.
Another problem could be WordPress files (missing or corrupt files). In this case you will have to reinstall WordPress.
If you encounter problems in applying the above instructions please contact us. HostX offers the best WordPress hosting and can assist you in solving your problems.
