Best Web Hosting For WordPressBusinessWeb Hosting vs WordPress Hosting

Best Web Hosting For WordPress – How to Fix the 500 Internal Server Error in WordPress

Best Web Hosting For WordPress

Seeing a 500 inside server error the place your web page wants to be is ample to throw anyone proper right into a panic. When your web page goes down, you lose out on potential guests and product sales. If it’s offline for a while, it may truly moreover negatively impression your Search Engine Optimization (internet optimization) efforts.

Fortunately, there are numerous strategies to go about fixing this error. Many of these choices are fairly easy, and likewise you don’t need a great deal of technical know-how to start troubleshooting.

In this data, we’ll cowl what the 500 inside server error in WordPress is and discuss some potential causes. Then we’ll give you 10 options to make it simpler to get your web page once more in working order.

  • Back up your web page.
  • Try reloading the internet web page.
  • Clear your browser cache.
  • Access your error logs.
  • Check for the “Error Establishing a Database Connection.”
  • Look for permission errors.
  • Increase your PHP memory prohibit.
  • Check for points alongside together with your .htaccess file.
  • Look for coding or syntax errors in your CGI/Perl script.
  • Ask your web host about potential server factors.
  • Let’s get started!

    Dealing with the WordPress Internal Server Error?

    Avoid troubleshooting when you be a part of DreamPress. Our nice WordPress consultants may be discovered 24/7 to help treatment web page points — big or small.


    What Is the 500 Internal Server Error?

    The 500 inside server error is frustratingly nonspecific. When the error occurs, you typically don’t get many particulars about it. In reality, it’s possible you’ll not get hold of any data in any respect.

    An example of a 500 internal server error screen.

    The 500 error is a generic concern that isn’t specific to WordPress. Chances are you’ve seen it sooner than all through your internet explorations. Despite the title, it doesn’t primarily suggest that one factor is fallacious alongside together with your server. It could be an issue alongside together with your web page or browser.


    If you do see this error in your web page, you’ll want to get it mounted as shortly as doable. A 500 error can impression your internet optimization if allowed to linger. If your web page is crawled whereas it’s offline, there’s a possibility that Google may interpret the error as an issue alongside together with your web page.

    This error can also injury your User Experience (UX) and gives friends the impression that you just simply’re unprofessional. Not solely can a poor UX impact the methodology Google ranks your web page, nevertheless it may truly set off you to lose shoppers as correctly. After all, you presumably can’t do enterprise in case your web page isn’t accessible.

    All sorts of situations might end result in the 500 error, making it a bit little bit of a chore to sort out. Potential causes of the 500 inside server error in WordPress embrace:

    • Plugin compatibility factors
    • Exhausted PHP memory prohibit
    • Corrupted recordsdata
    • Coding or syntax errors

    The undeniable fact that the error message itself tends to be imprecise doesn’t help. Fortunately, you presumably can treatment a lot of these factors by your self with a bit little bit of know-how.

    Variations on the 500 Internal Server Error

    Depending in your working system, browser, and the cause for the error, there are variations in the manner it’s going to appear. For occasion, if a database connection can’t be established, you might even see one factor like this:

    An error establishing a database connection message.

    A plain white show display screen, usually referred to as the White Screen of Death (WSoD), can level out a 500 inside server error.

    A blank browser window due to a 500 error.

    Also, many web page homeowners have the alternative to customise their 500 error messages. So you might even see this error in many various varieties.

    How to Fix the 500 Internal Server Error in WordPress (10 Tips)

    Now that you just simply’ve had an introduction to the 500 inside server error, it’s time to discuss how to resolve it. Let’s take a look at ten options it is best to make the most of to restore this concern in WordPress.

    1. Back up your web page.

    Before tinkering beneath the hood, it’s always smart to make a backup of your web page. If DreamHost hosts your web page, you presumably can reap the advantages of our one-click on backup operate. You can also create a information backup for many who need.

    To make a complete backup, you’ll need to save copies of your WordPress recordsdata in addition to your databases. You can once more up your web page’s recordsdata using a Secure File Transfer Protocol (SFTP) shopper harking back to FileZilla.

    Once you’re linked to your server, navigate to the WordPress recordsdata you want to save. These recordsdata embrace the WordPress core arrange, plugins, themes, images, and further. To save the recordsdata, merely proper-click on on them and select Download.

    How to download WordPress files via SFTP.

    Now you’ll need to once more up your database, which you’re able to do by logging into phpMyAdmin. Select the database you want to get hold of from the left-hand panel, after which click on on on the Export tab.

    You’ll then need to choose between a “Quick” or a “Custom” export. The Quick export will in all probability work merely excellent besides you need to deal with further superior decisions.

    Options for downloading a WordPress database using phpMyAdmin.

    Click on the Go button, and your get hold of ought to start. Once your web page is safely backed up, it’s possible you’ll get to work on fixing that 500 error.

    2. Try reloading the internet web page.

    Let’s start with the finest-case state of affairs. Some situations that set off a 500 inside error clear up on their very personal inside a few minutes. For occasion, for many who’ve merely made modifications to a plugin or theme, or in case your host is experiencing unusually heavy guests, it’s possible you’ll even see a server error. If that’s true in your case, you’re in luck, as a simple internet web page reload ought to get points once more to common.

    Therefore, the very very first thing to try is solely prepared a minute or two, all through which the error will hopefully resolve itself. Then you presumably can try reloading the internet web page by pressing F5 or (command + R for many who’re using a Mac).

    3. Clear your browser cache.

    Another potential server error restore that’s quick and easy is clearing your browser cache. It’s doable the cache grew to develop into corrupted, which could set off points when attempting to entry internet sites.

    First, it’s possible you’ll look at Down For Everyone Or Just Me. This will resolve whether or not or not there’s a widespread draw back in any other case you’re the only one experiencing difficulties.’s status on Down for Everyone or Just Me.

    If you’re alone in your 500 error frustration, the draw back is also your browser. Try accessing your web page from a particular browser. If one other works, it’s a sign that the concern is alongside together with your cache.

    In Google Chrome, you presumably can clear your cache by pressing Ctrl + Shift + Delete. Alternatively, you presumably can click on on on the three vertical dots in the prime-proper nook, adopted by More devices > Clear trying data.

    Options for clearing the browser cache in Chrome.

    Be constructive to look at the Cached images and recordsdata subject. Then click on on on the Clear data button.

    In Firefox, you presumably can clear the cache using the Ctrl + Shift + Delete keyboard shortcut. This will open the Clear Recent History window. In the Time range to clear drop-down menu, select Everything. Check the Cache subject, after which click on on on OK.

    Options for clearing browser data in Firefox.

    In Safari, you presumably can navigate to the History menu merchandise and choose Clear History. Keep in ideas that this may increasingly delete the complete lot, along with cookies and visited pages.

    How to clear the browser cache in Safari.

    Once you’ve cleared your browser cache, you presumably can strive to entry your web page as soon as extra. If you’re nonetheless seeing the 500 inside server error, it’s time to switch on to further involved fixes.

    4. Access your error logs.

    Your web page’s error logs may current notion into what’s inflicting the 500 error. Depending in your host, these logs is also cycled fairly often, so that you just’ll want to take a look as shortly as doable.

    You can look at your error logs by accessing your web page’s recordsdata via SFTP and in search of the /logs itemizing. Next, select the web page that’s experiencing the error. You may even see quite a few directories at this stage. You’ll want to look at the one with the most up-to-date date.

    Error and access log files accessed via FileZilla.

    You can view the log by downloading it and opening it alongside together with your most nicely-appreciated textual content material editor. Hopefully, your error logs will give you some additional context for the 500 error.

    Another alternative is to permit the WordPress debug log. You can do this by connecting to your web page via SFTP and opening your wp-config.php file. Within it, seek for the following line:

    define(‘WP_DEBUG’, false);

    Once you uncover it, change it with the following:

    define( ‘WP_DEBUG’, true );

    define( ‘WP_DEBUG_DISPLAY’, false );

    define( ‘WP_DEBUG_LOG’, true );

    This will create a debug.log file, which you’ll discover beneath the /wp-content material/ itemizing. Just make certain to change the WP_DEBUG price once more to “false” when you’re executed troubleshooting.

    5. Check for the ‘Error Establishing a Database Connection.’

    If there’s been a difficulty establishing a database connection, not solely will your web page be offline for friends, nevertheless you acquired’t have the capacity to entry the WordPress admin dashboard each. There are a few doable causes of this:

    • Incorrect database login credentials
    • A corrupted WordPress database
    • A corrupted WordPress arrange file

    Let’s start with incorrect login credentials, as this could be a frequent cause for the database connection error. If you’re a DreamHost particular person, you’ll discover your database credentials in your panel. However, for many who use a particular host, you’ll in all probability observe an equivalent course of.

    Navigate to MySQL Databases and uncover the one which corresponds to your web page beneath the Database(s) on this server half. Here, you’ll uncover your database title beneath the Database heading. The username is listed beneath the Users Access column.

    Alt-text: Where to uncover your MySQL username in DreamPanel.

    To uncover the password, click on on on the username. On the subsequent show display screen, scroll down and click on on on the Show button subsequent to the password topic.

    How to find your database password in DreamPanel.

    Next, you’ll consider these credentials to these in your wp-config.php file. You can entry this file in your web page’s necessary itemizing via SFTP. Once you’ve gotten the file downloaded, open it and make sure that the data beneath MySQL Settings matches what you found in your panel.

    Checking MySQL settings in the wpconfig.php file.

    Next, in case your database is corrupted, you presumably can shortly restore it via phpMyAdmin. Log in and click on on in your database in the left panel. Select all of the tables in the database, after which choose the Repair desk alternative from the drop-down menu.

    Repairing a database in phpMyAdmin.

    Finally, let’s take a look at how to cope with a corrupted WordPress arrange file. Start by downloading a model new copy of WordPress and unzipping the file. You’ll need to delete the wp-content material folder and the wp-config-pattern.php file.

    Deleting files from a new WordPress installation.

    Upload the the rest of the recordsdata to your web page via SFTP, overwriting any present ones. You now have a mannequin new, uncorrupted WordPress arrange. You’ll moreover want to clear your browser cache sooner than checking your web page as soon as extra.

    6. Look for permission errors.

    If any of your recordsdata have permissions set incorrectly, it’s possible you’ll even see the 500 inside server error consequently. Again, you presumably can look at and alter these permissions using SFTP.

    Right-click on any file and select File permissions to open a model new dialogue window. In this window, you presumably can look at and, if essential, set new permissions for the file.

    Checking and updating file permissions using FileZilla.

    Typically, you’ll want to set recordsdata to “644” and directories and executables to “755”. However, you might need thought of making an attempt to look at alongside together with your host for many who’re unsure about the applicable values.

    7. Increase your PHP memory prohibit.

    Another trigger you might even see the 500 inside server error is for many who’ve exceeded your server’s PHP memory prohibit. There are quite a few strategies to enhance your prohibit, and they also all comprise using SFTP.

    Before you try rising your memory prohibit, you might need thought of making an attempt to start by seeing what it’s presently set to. You can do this via the WordPress admin dashboard. Keep in ideas that, with some variations of the 500 error, you acquired’t have the capacity to entry the dashboard. If that’s the case, you possibly can have to skip this step.

    From your WordPress dashboard, navigate to Tools > Site Health. Click on Info at the prime of the show display screen, and scroll down to the Server half. You ought to see your PHP memory prohibit there.

    How to check your WordPress site’s PHP memory limit.

    To enhance the PHP memory prohibit, there are a few recordsdata you presumably can edit. One is your .htaccess file, normally located in your web page’s root itemizing. Open the file and add the following code:

    php_value memory_limit xxxM

    You can change the “xxx” alongside together with your desired amount of memory. Usually, 256M is a lot.

    You can also enhance your memory prohibit by enhancing your php.ini file. You ought to have the capacity to uncover this file in your root itemizing. If not, you presumably can go ahead and create one. Add or exchange its code to the following:

    memory_limit = xxxM

    Another alternative is to add in the following code at the prime of your wp-config.php file:

    define(‘WP_MEMORY_LIMIT’, ‘xxxM’);

    If this resolves the 500 error, your subsequent course of could be to work out what’s inflicting the memory prohibit exhaustion. It could be a problematic plugin or theme. You might have in mind reaching out to your host for help on discovering the precise server diagnostics.

    8. Check for points alongside together with your .htaccess file.

    Your .htaccess file is taken into account one among the core WordPress recordsdata. It incorporates pointers in your server, so it would contribute to a 500 inside server error.

    If your .htaccess file has grow to be corrupted, you’ll want to go ahead and create a current one. Start by logging into your web page via SFTP and discovering your .htaccess file. Rename the file to .htaccess_old.

    Renaming a file in FileZilla.

    Now, create a model new .htaccess file in your textual content material editor and paste in the following:

    # BEGIN WordPress

    RewriteEngine On

    RewriteRule .* – [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

    RewriteBase /

    RewriteRule ^index.php$ – [L]

    RewriteCond %{REQUEST_FILENAME} !-f

    RewriteCond %{REQUEST_FILENAME} !-d

    RewriteRule . /index.php [L]

    # END WordPress

    Go ahead and add your newly created .htaccess file. Then refresh your web page in your browser, and look at to see whether or not or not the error message is displaying.

    9. Look for coding or syntax errors in your CGI/Perl script.

    If you’re working Common Gateway Interface (CGI) scripts, any coding errors you’ve made may finish end result in a 500 error. To unearth potential factors alongside together with your CGI scripts, log into your web page using Secure Shell Access (SSH).

    Once you’ve logged in, you presumably can troubleshoot your CGI with this command:

    [server]$ ./cgi_name.cgi

    The terminal ought to return a traditional error message and the line amount the wrongdoer is located on. From there, you presumably can work your coding magic!

    When working with CGI, there are a few biggest practices to maintain in ideas to avoid points. First, it’s sensible to use a plain textual content material editor to make certain that you protect ASCII format. When you add scripts, you additionally wants to have the capacity to select ASCII mode in your FTP shopper.

    Changing the transfer type option in FileZilla.

    Finally, if essential, add to the cgi-bin itemizing in your server. Then you presumably can double-test your recordsdata’ permissions after you’ve got them uploaded.

    10. Ask your web host about potential server factors.

    If all else fails, there is also a server concern, which solely your host can affirm. Unfortunately, in case your host’s server is experiencing a difficulty, you possibly can have to wait out some web page downtime.

    If you’re a DreamHost shopper, you presumably can look at the DreamHost Status internet web page. This helpful useful resource offers you with data on all of our suppliers.

    The DreamHost status page.

    If you run into any points whereas trying to restore the 500 inside server error, you presumably can always attain out to our tech help workers. They’re ready and prepared to lend you a hand! If you’ve adopted the options in this data, you’ll have a great deal of useful data for the technician.

    Ready to Dive into Your Error Log?

    Whether you want help with file permission, determining a hidden file, or dealing with a faulty plugin, we’d assist! Subscribe to our month-to-month digest so that you just on no account miss an article.

    Let’s Get Your WordPress Website Back on Track

    While having to sort out a 500 inside server error isn’t exactly pleasurable, it’s moreover not as painful as it’s possible you’ll assume. With barely persistence and the options we’ve provided, strive to be prepared to make some progress on getting your web page once more on-line.

    You can start small by refreshing your internet web page and clearing your browser cache. Then you might have considered trying to switch onto further involved fixes, harking back to rising your PHP memory prohibit. If you’re not prepared to resolve the error by your self, DreamHost’s award-successful tech help is simply a click on on away.

    When you do run into errors, it’s easier to get once more up and dealing whenever you’ve gotten a reliable web internet hosting provider. DreamPress is fast, protected WordPress web internet hosting with extremely efficient choices to help make your web page a success!

    Best Web Hosting For WordPress

    Show More

    Related Articles

    Back to top button