How to Fix 500 Internal Server Error on WordPress

If you’ve been on the Internet for a while, you’ve probably encountered an error when viewing the page with the text Internal Server Error with HTTP code 500. This error is quite common on various WordPress sites and can cause a minor panic attack for a beginner. Let’s take a look at the common causes and solutions to this nasty error.

What is the Server Error 500?

This is a very general error, it basically only says that something is wrong with the server. The causes are different and we will gradually discuss the most common ones. It can be reaching the limits of your server, an error in the .htaccess file and WordPress is often a bad plugin.

Corrupted .htaccess file

The first goal of your search should be an .htaccess file, which plays a fairly important role in rendering the site. First try to rename the file to .htaccess_simple, for example – the file is located in the main directory of the website (where you have folders like wp-admin, wp-content). After renaming it, the server will ignore it when displaying the site and you will see if the error has disappeared or if it is necessary to look for error elsewhere.

If the error is fixed, you must either find the problem directly in the file and delete it, or simply let WordPress create a new .htaccess. Just go to Settings -> Permalinks in the administration dashboard and save the settings again. This step will create a new  and perhaps error-free .htaccess file. Then just test to see if all the pages on your site are loading correctly.

Server limits

WordPress often runs out of memory to execute the script. This in turn causes a known error  500. This is the PHP server memory_limit setting in the php.ini file. You don’t always have the ability to edit php.ini, especially if you have regular cheap web hosting, so you’ll need to find out why your memory needs suddenly increased (assuming the site worked normally in the past). However, this is good to know even if you manage to fix the problem by increasing the memory limit.

The culprit can be, for example, a poorly programmed wp plugin or even a template function. Try to remember what plugins or templates you recently installed and what else you changed on the site.

Tip: if you are using PHP 5.4 and higher, you must not have register_globals defined in the php.ini file – this parameter is no longer supported and may cause errors.

Deactivate All Plugins

If none of the previous procedures helped, you will need to try disabling all WordPress plugins. If you don’t even get into administration, you can try disabling plugins via FTP or via phpMyAdmin. If your site is up and running, it’s obvious that it was a faulty plugin – now you just need to find out which one. Gradually activate all plugins until you reach the one who is responsible for all the trouble.

Replacing WordPress Core Files

One of the last ways to get rid of error 500 is to reload all the basic WordPress files. Download the new WordPress installation (ideally the same version you are using) and overwrite the contents of the /wp-admin and /wp-includes directories on the server with those from the downloaded installation. This will overwrite the WordPress core files and any damaged files will be replaced with functional ones.

keep in touch with the host

If none of the suggested solutions work, try contacting your hosting provider, who will be able to search the server logs to determine the possible cause of the problem.

How to log into WordPress Admin panel

By default, the link to enter the WordPress admin area looks like this: http://yoursite.com/wp-admin/ or http://yoursite.com/wp-login.php, where instead of yoursite.com is your site’s domain.

WordPress-Login

Your hosting provider has sent the credentials to the WordPress admin panel to your mail in the letter “WordPress has been successfully installed”.

After installing WordPress using the Softaculous auto-installer in cPanel, you can enter the site admin panel from the Available Installations menu by clicking on the admin icon:Softaculous

Why change the link to enter the admin panel and how to do it
By default, on all WordPress sites, you can log into the admin panel using the wp-admin link. This is insecure: anyone can go to the login page of your console and try to hack access. Most often this is done by bots that can crack a password in minutes by brute force.

To prevent this from happening, we recommend changing the link to enter the admin panel after the first login to the site.WPS-Hide-Login

This can be done using the popular WPS Hide Login plugin:

  1.  Go to the Plugins section of your console and select Add New.
  2.  In the search, find the WPS Hide Login plugin, install it and activate it in WordPress:
  3.  Go to Plugin Settings from the WordPress Plugins section.
  4.  In the window that opens, change the value of the login URL. This will be the new link to enter the admin panel of your site. Use a unique name for it that only you know:

Now the login to the site console will look like this: http: // your_domain / ur_url /

BackWPup – WordPress Recommended Plugin for Backup

WordPress Backup Plugin

It is a plugin that allows you to easily back up your WordPress site from the WordPress backend, This is a feature that you definitely want to install unless you are using a plugin that already has an alternative backup feature.

■ Official site: BackWPup | WordPress.org

 

It is a plugin that allows you to easily back up your WordPress site from the WordPress Dashboard, and has many useful functions such as setting backup schedules, linking with cloud servers such as Dropbox, and managing backup file generations.

There is a more sophisticated paid version, but it is a convenient plugin that can be used even for free.

For best WordPress hosting Reddit 2022 , read the post.

Main features of BackWPup

  • WordPress database and file backup function
  • Function to save to external services (FTP server, Dropbox, etc.) in addition
  • to the directory inside the server
  • Email notification function during backup
  • Schedule backup function
  • Backup file generation management function