{"id":36281,"date":"2021-12-08T12:40:29","date_gmt":"2021-12-08T06:55:29","guid":{"rendered":"https:\/\/rarathemes.com\/blog\/?p=36281"},"modified":"2024-08-21T11:45:51","modified_gmt":"2024-08-21T06:00:51","slug":"fix-wordpress-internal-server-error","status":"publish","type":"post","link":"https:\/\/rarathemes.com\/blog\/fix-wordpress-internal-server-error\/","title":{"rendered":"How to Fix WordPress Internal Server Error (10 Ways)"},"content":{"rendered":"\n<p>If you\u2019re a regular internet user, you most likely have already encountered an internal server error. It is by far one of the most common errors in WordPress. When a site suddenly throws an internal server error, it can leave a bad impression on your viewers.<\/p>\n\n\n\n<p>If you&#8217;re a website owner, this can be a serious problem. If you keep your visitors unattended with an internal server error, you\u2019ll have to bear the risk of losing out on potential customers.&nbsp;<\/p>\n\n\n\n<p>So, it&#8217;s important to know everything about an internal server error and how to fix it. First, let&#8217;s try to understand what an internal server error is.<\/p>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_76 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title ez-toc-toggle\" style=\"cursor:pointer\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/rarathemes.com\/blog\/fix-wordpress-internal-server-error\/#What_is_an_Internal_Server_Error\" >What is an Internal Server Error?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/rarathemes.com\/blog\/fix-wordpress-internal-server-error\/#Backing_Up_Your_WordPress_Website\" >Backing Up Your WordPress Website<\/a><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/rarathemes.com\/blog\/fix-wordpress-internal-server-error\/#Backing_Up_Your_Website_Using_cPanel\" >Backing Up Your Website Using cPanel<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/rarathemes.com\/blog\/fix-wordpress-internal-server-error\/#Backing_Up_Your_Website_Using_SFTP\" >Backing Up Your Website Using SFTP<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/rarathemes.com\/blog\/fix-wordpress-internal-server-error\/#Backing_Up_Your_Website_Via_phpMyAdmin\" >Backing Up Your Website Via phpMyAdmin<\/a><\/li><\/ul><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/rarathemes.com\/blog\/fix-wordpress-internal-server-error\/#Ways_to_Fix_WordPress_Internal_Server_Error\" >Ways to Fix WordPress Internal Server Error<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/rarathemes.com\/blog\/fix-wordpress-internal-server-error\/#Method_1_Enable_Debugging\" >Method 1: Enable Debugging<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/rarathemes.com\/blog\/fix-wordpress-internal-server-error\/#Method_2_Check_if_Your_WordPress_Dashboard_Works\" >Method 2: Check if Your WordPress Dashboard Works<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/rarathemes.com\/blog\/fix-wordpress-internal-server-error\/#Method_3_Deactivate_All_Your_Plugins\" >Method 3: Deactivate All Your Plugins<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/rarathemes.com\/blog\/fix-wordpress-internal-server-error\/#Method_3_Switch_to_the_Default_Theme\" >Method 3: Switch to the Default Theme<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/rarathemes.com\/blog\/fix-wordpress-internal-server-error\/#Method_4_Increase_Your_Sites_PHP_Memory_Limit\" >Method 4: Increase Your Site\u2019s PHP Memory Limit<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/rarathemes.com\/blog\/fix-wordpress-internal-server-error\/#Method_5_Debug_htaccess_issues\" >Method 5: Debug .htaccess issues<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-13\" href=\"https:\/\/rarathemes.com\/blog\/fix-wordpress-internal-server-error\/#Method_6_Reinstall_WordPress\" >Method 6: Reinstall WordPress<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-14\" href=\"https:\/\/rarathemes.com\/blog\/fix-wordpress-internal-server-error\/#Method_7_Check_on_Your_PHP_Version_Issues\" >Method 7: Check on Your PHP Version Issues<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-15\" href=\"https:\/\/rarathemes.com\/blog\/fix-wordpress-internal-server-error\/#Method_8_Upload_Fresh_Versions_of_Core_Files\" >Method 8: Upload Fresh Versions of Core Files<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-16\" href=\"https:\/\/rarathemes.com\/blog\/fix-wordpress-internal-server-error\/#Method_9_Check_File_Permissions\" >Method 9: Check File Permissions<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-17\" href=\"https:\/\/rarathemes.com\/blog\/fix-wordpress-internal-server-error\/#Method_10_Contact_Your_Hosting_Service_Provider\" >Method 10: Contact Your Hosting Service Provider<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-18\" href=\"https:\/\/rarathemes.com\/blog\/fix-wordpress-internal-server-error\/#FAQs_Frequently_Asked_Questions\" >FAQs (Frequently Asked Questions)<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-19\" href=\"https:\/\/rarathemes.com\/blog\/fix-wordpress-internal-server-error\/#Why_does_an_internal_server_error_occur\" >Why does an internal server error occur?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-20\" href=\"https:\/\/rarathemes.com\/blog\/fix-wordpress-internal-server-error\/#Can_you_fix_an_internal_server_error\" >Can you fix an internal server error?<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-21\" href=\"https:\/\/rarathemes.com\/blog\/fix-wordpress-internal-server-error\/#Conclusion\" >Conclusion<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"What_is_an_Internal_Server_Error\"><\/span>What is an Internal Server Error?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>The internal server error is, without a doubt, the most annoying and the most common kind of error. Annoying, because this error is nonspecific \u2014 meaning they do not provide any information whatsoever to users or even developers.<\/p>\n\n\n\n<p>Since you do not have any information about the source of the error, it is quite frustrating and confusing.&nbsp;<\/p>\n\n\n\n<p>In simple terms, an internal server error occurs when a server fails to figure out the actual issue. It is often caused by certain functions of WordPress plugins\/themes, <a href=\"https:\/\/rarathemes.com\/blog\/resolve-wordpress-memory-limit-error\/\">PHP memory limit<\/a>, and corrupted .htaccess files.<\/p>\n\n\n\n<p>When you encounter such an error, there are a few steps that you need to carry out. It&#8217;s more like a hit-and-trial process where you try out different ways of working out the solutions.<\/p>\n\n\n\n<p>Since such errors are quite frequent in WordPress, it is always smart to backup your website. Here\u2019s how you can do it:<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Backing_Up_Your_WordPress_Website\"><\/span>Backing Up Your WordPress Website<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>As a website owner, it is always good to back up your website to prevent your data \u2014 both the database and your website files. In today\u2019s competitive market, most hosting providers tend to offer backup and restore facilities.<\/p>\n\n\n\n<p>So, whenever you choose a <a href=\"https:\/\/rarathemes.com\/blog\/best-wordpress-hosting\/\">hosting provider<\/a> for your WordPress website, make sure the plan includes back and restore facilities.<\/p>\n\n\n\n<p>Even so, things do not always work in your favor. So, we highly recommend you to backup your website manually. There are a handful of ways you can do so.&nbsp;<\/p>\n\n\n\n<p>Let\u2019s check them out:<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Backing_Up_Your_Website_Using_cPanel\"><\/span>Backing Up Your Website Using cPanel<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<p>This method gives you complete control of your WordPress website, allowing you to create backups easily. You can store your website files in several locations, including Google Drive, Dropbox, hard drive, and so forth to ensure full backup.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Backing_Up_Your_Website_Using_SFTP\"><\/span>Backing Up Your Website Using SFTP<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<p>One of the most straightforward ways to back up your website files in this method is by using a popular file manager \u2014 <strong>FileZilla<\/strong>. You can simply download and install the file manager and log in to the application.<\/p>\n\n\n\n<p>Once you\u2019re logged in, select all the files you want to back up, right-click on the mouse, and choose <strong>\u201cDownload Selected Items.\u201d <\/strong>Once all the files are downloaded, make sure to save them in a secure location.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Backing_Up_Your_Website_Via_phpMyAdmin\"><\/span>Backing Up Your Website Via phpMyAdmin<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<p>This method is mostly used to backup your database rather than your website files. First, log in to your phpMyAdmin and click on the <strong>\u201cDatabases\u201d <\/strong>tab.&nbsp;<\/p>\n\n\n\n<p>Once you\u2019re in the \u201cDatabases\u201d tab, select all the files you want to back up and click on the <strong>\u201cExport\u201d<\/strong> button. After that, choose your preferred export method and set <strong>\u201cFormat\u201d <\/strong>to SQL.<\/p>\n\n\n\n<p>Finally, press the <strong>\u201cGo\u201d <\/strong>button and store the downloaded files in a proper location.<\/p>\n\n\n\n<p>If you want to learn in detail <a href=\"https:\/\/rarathemes.com\/blog\/backup-wordpress-website\/\">how to back up your website<\/a> step by step with demonstration. We have a guide on this. Please check it out if you like.<\/p>\n\n\n\n<p>Now that you\u2019ve learned to backup your website files and databases, it is time to know how to fix the WordPress internal server error.<\/p>\n\n\n\n<p>Let\u2019s get into it!<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Ways_to_Fix_WordPress_Internal_Server_Error\"><\/span>Ways to Fix WordPress Internal Server Error<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Here are a few steps you can carry out to fix the internal server error on your website.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Method_1_Enable_Debugging\"><\/span>Method 1: Enable Debugging<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Once you\u2019ve encountered an internal server error, the first thing to do is try to make sense of the error. The error can simply be a fault in your site\u2019s code. To find where the error is coming from, you should firstly look for wp-config.php.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"445\" src=\"https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/08\/wp-config-file.png\" alt=\"access the wp-config file\" class=\"wp-image-33206\" srcset=\"https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/08\/wp-config-file.png 700w, https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/08\/wp-config-file-300x191.png 300w, https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/08\/wp-config-file-94x60.png 94w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><\/figure>\n\n\n\n<p>Download the wp-config.php file from your website\u2019s root directory. Then, open the downloaded file using a text editor and look for WP_DEBUG. If you find this line of code, change \u2018false\u2019 to \u2018true\u2019 and re-upload the file to the server.<\/p>\n\n\n\n<p>In case you do not find it, add the following code at the end of the text right above the line that says &#8220;<strong>\/* That&#8217;s all, stop editing! Happy blogging. *\/&#8221; :<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>define( \"WP_DEBUG\", true );<\/code><\/pre>\n\n\n\n<p>Now, try reloading your website. You might see a \u201cfatal error\u201d message pointing to a specific line of code in a particular file. This narrows down your problem by telling you exactly where the error is.<\/p>\n\n\n\n<p><strong>Note<\/strong>: Do not forget to change the <em>WP_DEBUG<\/em> value to <em>false <\/em>once you&#8217;ve finished everything. Otherwise, by default, WordPress displays debug messages on your entire site that might be risky and confusing for your visitors.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Method_2_Check_if_Your_WordPress_Dashboard_Works\"><\/span>Method 2: Check if Your WordPress Dashboard Works<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Whenever you encounter an internal server error, check if your WordPress Dashboard is still loading. For that, you need to access your backend.&nbsp;<\/p>\n\n\n\n<p>Visit <em>http:\/\/yoursite.com\/wp-admin\/ <\/em>to access your admin dashboard. If the page loads easily and you can access your backend WordPress dashboard, you can be sure that the problem is either with the theme or the plugin.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Method_3_Deactivate_All_Your_Plugins\"><\/span>Method 3: Deactivate All Your Plugins<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Another reason your website can encounter an internal server error is due to the fault in your WordPress plugins. To test if the error is coming from plugins, the first and foremost thing to do is deactivate all your plugins.<\/p>\n\n\n\n<p>Deactivating your plugins will not result in any loss of data or the plugin. If your WordPress dashboard is loading perfectly fine, you can deactivate all your plugins at once by doing as follows:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Go to Plugins in the WordPress Dashboard.<\/li>\n\n\n\n<li>Select the checkbox to select all plugins.<\/li>\n\n\n\n<li>Select Deactivate from the dropdown menu.<\/li>\n\n\n\n<li>Click apply.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"455\" src=\"https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/08\/deactivate-all-the-plugins.png\" alt=\"deactivate all the plugins\" class=\"wp-image-33300\" srcset=\"https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/08\/deactivate-all-the-plugins.png 700w, https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/08\/deactivate-all-the-plugins-300x195.png 300w, https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/08\/deactivate-all-the-plugins-92x60.png 92w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><\/figure>\n\n\n\n<p>In case your dashboard isn\u2019t working, you can also deactivate them via FTP. Here&#8217;s how you can do it:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Connect to the WordPress site&#8217;s server via FTP.<\/li>\n\n\n\n<li>Navigate to the <em>wp-content<\/em> folder.<\/li>\n\n\n\n<li>Change<em> plugins<\/em> folder to <em>plugins-deactivated.<\/em><\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"448\" src=\"https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/12\/upload-plugins-files-from-the-backup-in-ftp.png\" alt=\"upload plugins files from the backup in ftp\" class=\"wp-image-36192\" srcset=\"https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/12\/upload-plugins-files-from-the-backup-in-ftp.png 700w, https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/12\/upload-plugins-files-from-the-backup-in-ftp-300x192.png 300w, https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/12\/upload-plugins-files-from-the-backup-in-ftp-94x60.png 94w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><\/figure>\n\n\n\n<p>If you&#8217;re certain that the error is coming from plugins, you should start looking for the particular plugin responsible for the error.&nbsp;<\/p>\n\n\n\n<p>For that, start re-activating plugins one by one. Also, keep checking for the internal server error, and you will find the culprit.<\/p>\n\n\n\n<p>Once you&#8217;ve found it, disable the plugin and call for support immediately. Or, you can opt for an alternative plugin as there are hundreds of them.<\/p>\n\n\n\n<p>If you&#8217;re using FTP, do not forget to rename the folder back to <em>plugins <\/em>before reactivating plugins.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Method_3_Switch_to_the_Default_Theme\"><\/span>Method 3: Switch to the Default Theme<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>If you finished checking your plugins and still couldn\u2019t figure out where the error is coming from, it is now time to check your WordPress theme. You can start by switching to the default WordPress theme.<\/p>\n\n\n\n<p>We recommend the Twenty Twenty-One default theme. There are earlier versions available too.&nbsp;<\/p>\n\n\n\n<p>If your dashboard is still accessible, go to <em>Appearance -&gt; Themes<\/em>, that\u2019s where you\u2019ll find the default option. In case you can not find the default theme, you can download it from <em>WordPress.org.<\/em><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"716\" height=\"265\" src=\"https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2017\/02\/wp-appearance-theme-png.png\" alt=\"Selecting new theme\" class=\"wp-image-18452\" srcset=\"https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2017\/02\/wp-appearance-theme-png.png 716w, https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2017\/02\/wp-appearance-theme-png-300x111.png 300w\" sizes=\"auto, (max-width: 716px) 100vw, 716px\" \/><\/figure>\n\n\n\n<p>You can even switch to the default theme using FTP if your dashboard isn\u2019t accessible. Follow the steps below:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Connect to the WordPress site&#8217;s server via FTP.<\/li>\n\n\n\n<li>Go to <em>wp-content\/themes <\/em>folder.<\/li>\n\n\n\n<li>Download the default theme (Twenty Twenty-One preferred) from WordPress.org and upload the theme folder after extracting the theme file.<\/li>\n\n\n\n<li>Also, rename the current theme folder to <em>[theme-name]- deactivated<\/em>.<\/li>\n\n\n\n<li>Once you deactivate your current theme, WordPress automatically falls back to the default theme.&nbsp;<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"396\" src=\"https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/12\/rename-old-theme-using-ftp.png\" alt=\"rename old theme using ftp\" class=\"wp-image-36284\" srcset=\"https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/12\/rename-old-theme-using-ftp.png 700w, https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/12\/rename-old-theme-using-ftp-300x170.png 300w, https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/12\/rename-old-theme-using-ftp-106x60.png 106w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><\/figure>\n\n\n\n<p>If switching to the default theme works for you, it is quite obvious that the error is coming from the theme. If you&#8217;re using a theme from a WordPress developer, you should immediately let them know regarding the issue and ask for support.<\/p>\n\n\n\n<p><strong>Note:<\/strong> Before opting for other options, make sure you check all the possibilities for the error.&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Method_4_Increase_Your_Sites_PHP_Memory_Limit\"><\/span>Method 4: Increase Your Site\u2019s PHP Memory Limit<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Sometimes your WordPress site might throw an internal server error when your website exceeds the memory limit. This usually occurs when you have a badly coded theme or plugin.&nbsp;<\/p>\n\n\n\n<p>Generally, your website server has a set amount of memory located to it, and you cannot increase your memory limit above that. Besides choosing another hosting service, there are a few more ways you can increase your website\u2019s memory limit. Here&#8217;s how:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>wp-config.php file<\/strong><\/li>\n<\/ol>\n\n\n\n<p>Connect to your server via FTP. Open and edit the wp-config.php file and add the following code snippet below the line that says, \/* That&#8217;s all, stop editing! Happy blogging. *\/ :<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"448\" src=\"https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/08\/edit-wp-config.png\" alt=\"how to edit the wp-config\" class=\"wp-image-33208\" srcset=\"https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/08\/edit-wp-config.png 700w, https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/08\/edit-wp-config-300x192.png 300w, https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/08\/edit-wp-config-94x60.png 94w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><\/figure>\n\n\n\n<pre class=\"wp-block-code\"><code>define('WP_MEMORY_LIMIT', '256M');<\/code><\/pre>\n\n\n\n<ol class=\"wp-block-list\" start=\"2\">\n<li><strong>PHP.ini file&nbsp;<\/strong><\/li>\n<\/ol>\n\n\n\n<p>To increase your website\u2019s memory limit using this method, find the PHP.ini file in the wp-admin folder. You then need to open and edit the file. Look for the line that says, <strong><em>memory_limit = [number]M,<\/em><\/strong><em> <\/em>now change the <em>number <\/em>to <em>256.<\/em> Your code should now look like <strong><em>memory_limit = 256M<\/em><\/strong><em>.<\/em><\/p>\n\n\n\n<ol class=\"wp-block-list\" start=\"3\">\n<li><strong>.htaccess file<\/strong><\/li>\n<\/ol>\n\n\n\n<p>Connect to your server via FTP and locate and edit the .htaccess file. Now, add the following line:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"419\" src=\"https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/12\/edit-the-htaccess-file.png\" alt=\"\" class=\"wp-image-36283\" srcset=\"https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/12\/edit-the-htaccess-file.png 700w, https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/12\/edit-the-htaccess-file-300x180.png 300w, https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/12\/edit-the-htaccess-file-100x60.png 100w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><\/figure>\n\n\n\n<pre class=\"wp-block-code\"><code>php_value memory_limit 256M<\/code><\/pre>\n\n\n\n<p>Besides the methods listed above, you need to contact your hosting service provider to increase your website\u2019s memory limit.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Method_5_Debug_htaccess_issues\"><\/span>Method 5: Debug .htaccess issues<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>If your hosting provider uses the Apache server, you&#8217;ll find the<em> .htaccess<\/em> file in your website\u2019s root directory. It is the configuration file that lets you enable advanced functionalities.<\/p>\n\n\n\n<p>WordPress uses this file to manage your website\u2019s permalinks, set up redirects, change upload size, and much more.&nbsp;<\/p>\n\n\n\n<p>Even a minor error such as a missing space or a typo can cause an internal error and crash your website. To check if the .htaccess file has errors, locate the <em>.htaccess<\/em> file in the root directory of your website. Download the file and back it up by saving it on your computer.&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"430\" src=\"https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/12\/find-htaccess-file-using-ftp.png\" alt=\"find .htaccess file using ftp\" class=\"wp-image-36285\" srcset=\"https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/12\/find-htaccess-file-using-ftp.png 700w, https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/12\/find-htaccess-file-using-ftp-300x184.png 300w, https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/12\/find-htaccess-file-using-ftp-98x60.png 98w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><\/figure>\n\n\n\n<p>Once you have your backup, delete the copy of the <em>.htaccess<\/em> file on your server. Now, try loading your website. If your website starts working, you can be sure that the error is coming from the .htaccess file.<\/p>\n\n\n\n<p>To fix the error, go to <em>Settings &gt; Permalinks<\/em> and click <em>Save<\/em>. This forces WordPress to generate a new .htaccess file if you don\u2019t have any custom .<em>htaccess<\/em> rules. If you have custom rules, go through the .htaccess file line by line and see when your site goes down.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"496\" height=\"264\" src=\"https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/06\/Permalink-structures-in-WordPress.png.png\" alt=\"Permalink structures in WordPress\" class=\"wp-image-31434\" srcset=\"https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/06\/Permalink-structures-in-WordPress.png.png 496w, https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/06\/Permalink-structures-in-WordPress.png-300x160.png 300w, https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/06\/Permalink-structures-in-WordPress.png-113x60.png 113w\" sizes=\"auto, (max-width: 496px) 100vw, 496px\" \/><\/figure><\/div>\n\n\n<p>When you get to the line that\u2019s causing the error, carefully look for typos or syntax errors. If you do not find such typos, you can delete the entire line causing the error. You can also ask for help in support forums.&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Method_6_Reinstall_WordPress\"><\/span>Method 6: Reinstall WordPress<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Sometimes your WordPress core files might be corrupted due to some unpredictable circumstances. Something might have gone wrong while your server was copying the required files. In such cases, re-uploading the WordPress core files can save you from the hassle of finding the bug.&nbsp;<\/p>\n\n\n\n<p>To reinstall the WordPress core files, follow the steps below:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Download a new copy for WordPress from WordPress.org.<\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Extract the ZIP file.<\/li>\n\n\n\n<li>Make sure you delete the wp-content folder and wp-config-sample.php file. Also, delete the wp-config.php file.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"648\" height=\"400\" src=\"https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/08\/deleting-the-wp-content-and-wp-config-sample-files.png\" alt=\"deleting the wp-content and wp-config-sample files in WordPress\" class=\"wp-image-33211\" srcset=\"https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/08\/deleting-the-wp-content-and-wp-config-sample-files.png 648w, https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/08\/deleting-the-wp-content-and-wp-config-sample-files-300x185.png 300w, https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/08\/deleting-the-wp-content-and-wp-config-sample-files-97x60.png 97w\" sizes=\"auto, (max-width: 648px) 100vw, 648px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Now, connect your host via FTP.<\/li>\n\n\n\n<li>Upload the rest of the folders and files to the root folder of your website.<\/li>\n\n\n\n<li>Select the option to overwrite all files when you see a prompt option.&nbsp;<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Method_7_Check_on_Your_PHP_Version_Issues\"><\/span>Method 7: Check on Your PHP Version Issues<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Though old PHP versions do not usually cause the internal server error, it is always a good idea to check what version of PHP you&#8217;re running on. You can check your version of PHP with your hosting service provider.<\/p>\n\n\n\n<p>Many popular older versions of PHP do not receive updates any longer and are often outdated. Make sure the version you&#8217;re using is at least PHP 7.3 or above.<\/p>\n\n\n\n<p>You can check the PHP version running on your site by executing the PHP code.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Start by opening a text or code editor \u2014 Notepad or TextEdit.<\/li>\n\n\n\n<li>Enter the following code on the editor.<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;?php\necho 'Current PHP version: ' . phpversion();\n?&gt;<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Once you enter the code, save the file by clicking on <strong><em>\u201cFile\u201d &gt; \u201cSave As.\u201d <\/em><\/strong>Make sure to save the add the .PHP extension while saving the file.<\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Now, you will now get your current PHP version.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Method_8_Upload_Fresh_Versions_of_Core_Files\"><\/span>Method 8: Upload Fresh Versions of Core Files<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Another popular option to fix an internal server error is to re-upload fresh versions of WordPress core files. This includes folders like <em>wp-admin<\/em> and <em>wp-include<\/em>.&nbsp;<\/p>\n\n\n\n<p>Do not worry about missing or losing anything while re-uploading core files. Instead, it will help you recover from a corrupted file and solve your problem.<\/p>\n\n\n\n<p>To upload fresh versions of core files, first, you need to download WordPress from WordPress.org. Then,&nbsp;<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Extract the zip folder you just downloaded.&nbsp;<\/li>\n\n\n\n<li>Now, connect to your website via your FTP client.&nbsp;<\/li>\n\n\n\n<li>Navigate to the root directory.<\/li>\n\n\n\n<li>In another window, open the WordPress file you downloaded earlier.&nbsp;<\/li>\n\n\n\n<li>Copy wp-includes and wp-admin folders and upload them to your server.<\/li>\n\n\n\n<li>You\u2019ll see a prompt option to overwrite the existing folders. Select Overwrite.<\/li>\n\n\n\n<li>Your core files are now updated with fresh new versions.&nbsp;&nbsp;<\/li>\n<\/ul>\n\n\n\n<p>Check and see if your internal server error still exists. If the error is from the core files, you&#8217;ll now see your website loading fine.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Method_9_Check_File_Permissions\"><\/span>Method 9: Check File Permissions<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>It is a rare case when an internal server error occurs due to file permissions. However, it&#8217;s still worth checking. Check your files and folders within the WordPress directory of your website via an FTP client. It needs to be set to <em>755<\/em> or <em>644.<\/em>&nbsp;<\/p>\n\n\n\n<p>Setting the permissions to anything else results in errors, including 500 internal server errors.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Method_10_Contact_Your_Hosting_Service_Provider\"><\/span>Method 10: Contact Your Hosting Service Provider<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>If nothing works and the issue seems to be an uncommon one, the best option is to contact your hosting service provider. Not only do they help you fix server issues, but they can also help you check your file permissions and other sources.<\/p>\n\n\n\n<p>If you&#8217;re a WordPress site owner, there are plenty of options recommended by WordPress. Here are some of the best hosting providers in the market:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/www.bluehost.com\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">BlueHost<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.hostinger.com\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Hostinger<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.siteground.com\/web-hosting.htm\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">SiteGround<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.a2hosting.com\/web-hosting\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">A2 Hosting<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.dreamhost.com\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">DreamHost<\/a><\/li>\n<\/ul>\n\n\n\n<p>If you want to get into specific details to choose the best hosting provider for your website, check out this guide &#8211; 10 <a href=\"https:\/\/rarathemes.com\/blog\/best-wordpress-hosting\/\">Best WordPress Hosting Provider<\/a> of 2024.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"FAQs_Frequently_Asked_Questions\"><\/span>FAQs (Frequently Asked Questions)<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n<div id=\"rank-math-faq\" class=\"rank-math-block\">\n<div class=\"rank-math-list \">\n<div id=\"faq-question-1638943331641\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \"><span class=\"ez-toc-section\" id=\"Why_does_an_internal_server_error_occur\"><\/span>Why does an internal server error occur?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<div class=\"rank-math-answer \">\n\n<p>In simple terms, an internal error occurs when your server encounters something unusual and cannot complete the request.\u00a0<\/p>\n\n<\/div>\n<\/div>\n<div id=\"faq-question-1638943344834\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \"><span class=\"ez-toc-section\" id=\"Can_you_fix_an_internal_server_error\"><\/span>Can you fix an internal server error?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<div class=\"rank-math-answer \">\n\n<p>If you follow the instructions and steps mentioned in this article, you can easily fix an internal server error on your website. It is not necessary to hire an expert to fix the internal server error. However, you can always get help from forums and your hosting providers if you need to.\u00a0<\/p>\n\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Conclusion\"><\/span>Conclusion<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>If your website is constantly troubling you and your visitors with an internal server error, try these above-listed methods to fix the error. One of these will surely fix your website&#8217;s internal server error. Try these methods one at a time to find the right approach for you.<\/p>\n\n\n\n<p>Also, do not forget to share your experience with us in the comment section below.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you\u2019re a regular internet user, you most likely have already encountered an internal server error. It is by far one of the most common errors in WordPress. When a &hellip; <\/p>\n","protected":false},"author":15,"featured_media":36297,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_be_single_description":"","_be_image_uploader":0,"_be_meta_button_label":"","_be_meta_button_url":"","_be_meta_button_newtab":false,"_be_meta_rel_attribute":"","footnotes":""},"categories":[16,3],"tags":[],"class_list":["post-36281","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-advanced-tutorials","category-tutorials","latest_post"],"_links":{"self":[{"href":"https:\/\/rarathemes.com\/blog\/wp-json\/wp\/v2\/posts\/36281","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rarathemes.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rarathemes.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rarathemes.com\/blog\/wp-json\/wp\/v2\/users\/15"}],"replies":[{"embeddable":true,"href":"https:\/\/rarathemes.com\/blog\/wp-json\/wp\/v2\/comments?post=36281"}],"version-history":[{"count":0,"href":"https:\/\/rarathemes.com\/blog\/wp-json\/wp\/v2\/posts\/36281\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/rarathemes.com\/blog\/wp-json\/wp\/v2\/media\/36297"}],"wp:attachment":[{"href":"https:\/\/rarathemes.com\/blog\/wp-json\/wp\/v2\/media?parent=36281"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rarathemes.com\/blog\/wp-json\/wp\/v2\/categories?post=36281"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rarathemes.com\/blog\/wp-json\/wp\/v2\/tags?post=36281"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}