Contact Us

Auckland, New Zealand

Follow Us

Cost Your Project

How to Fix 500 Internal Server Error

How to Fix 500 Internal Server Error: Start by checking recent website changes, then disable plugins, test your theme, check the .htaccess file, verify PHP...

Imran Khan
Imran Khan
September 14, 2026
How to Fix 500 Internal Server Error

How to Fix 500 Internal Server Error: Start by checking recent website changes, then disable plugins, test your theme, check the .htaccess file, verify PHP compatibility, review server error logs, check memory and database issues, and contact your hosting provider if the problem continues. Always create a backup before making major changes.

A 500 Internal Server Error is one of the most common and frustrating problems website owners can face. Instead of loading the page normally, visitors may see a simple message such as “500 Internal Server Error”, “HTTP 500 Error”, or “The server encountered an internal error.”

The good news is that a 500 error does not usually mean your website is permanently broken. In most cases, the issue can be identified and fixed by checking the server, website files, database, plugins, themes, permissions, or recent changes.

For New Zealand businesses, resolving this error quickly is especially important. A website that is unavailable can affect customer enquiries, online sales, search visibility, trust, and your overall digital presence.

This guide explains what a 500 Internal Server Error means, why it happens, how to troubleshoot it step by step, and how to prevent it from happening again.

What Is a 500 Internal Server Error?

A 500 Internal Server Error is an HTTP status code that indicates something went wrong on the website’s server, but the server cannot provide a more specific explanation to the browser.

When someone visits your website, the browser sends a request to your hosting server. The server processes that request and sends the required webpage back to the visitor.

If the server encounters an unexpected problem while processing the request, it may return a 500 status code.

The important thing to understand is that the error is generally server-side, rather than being caused by the visitor’s internet connection.

A 500 error may appear as:

  • 500 Internal Server Error
  • HTTP 500 Error
  • Internal Server Error
  • HTTP Error 500
  • The server encountered an internal error
  • 500 Server Error
  • Something went wrong on our server

The exact wording depends on your hosting provider, web server, CMS, or application.

Why Is a 500 Internal Server Error Serious?

A temporary 500 error may not cause major problems if it disappears quickly. However, a persistent error can become a serious business and SEO issue.

Imagine a potential customer searches for your service, clicks your website, and receives an error page instead. They may immediately leave and choose another business.

For companies investing in web design Auckland, SEO, Google Ads, or social media marketing, website availability is particularly important because traffic campaigns are ineffective if visitors cannot access the site.

A prolonged server error can also affect:

  • Customer experience
  • Online enquiries
  • E-commerce transactions
  • Lead generation
  • Google crawling
  • Organic search performance
  • Brand reputation
  • Conversion rates
  • Advertising performance

This is why a 500 error should be investigated rather than ignored.

Common Causes of a 500 Internal Server Error

Common Causes of a 500 Internal Server Error
Common Causes of a 500 Internal Server Error

There is no single cause of a 500 error. The message is essentially a general indication that the server encountered an unexpected problem.

Here are some of the most common causes.

1. Corrupted .htaccess File

On Apache servers, the .htaccess file controls various server configuration rules.

A small syntax mistake in this file can prevent your website from functioning correctly.

This can happen after:

  • Installing a plugin
  • Changing URL settings
  • Migrating a website
  • Adding redirects
  • Changing security rules
  • Updating WordPress
  • Manually editing server rules

If the error appeared immediately after changing .htaccess, this file should be one of the first things you investigate.

2. PHP Errors

Many websites, particularly WordPress websites, rely heavily on PHP.

If a PHP script encounters a fatal error, incompatible function, memory problem, or unexpected condition, the server may return a 500 error.

PHP problems can occur after:

  • Updating WordPress
  • Updating a plugin
  • Changing themes
  • Installing custom code
  • Moving to another PHP version
  • Using outdated software

Checking the server’s PHP error log is often one of the fastest ways to identify the underlying problem.

3. Plugin Conflicts

WordPress plugins add functionality to a website, but incompatible plugins can sometimes cause server errors.

For example, a newly installed plugin may conflict with:

  • Another plugin
  • Your WordPress theme
  • Your PHP version
  • A custom function
  • Your hosting environment

If your website started showing a 500 error after installing or updating a plugin, temporarily turning off the suspected plugin can help identify the cause.

4. Theme Problems

A poorly coded, outdated, or incompatible WordPress theme can also trigger server errors.

This is especially possible after:

  • A WordPress core update
  • PHP version changes
  • Theme updates
  • Custom theme modifications

Testing the website with a default WordPress theme can help determine whether the active theme is responsible.

5. PHP Memory Limit

Websites require server memory to execute PHP processes.

If a website uses more memory than the server allows, scripts may fail.

This can happen when a website has:

  • Large plugins
  • Complex themes
  • Heavy database queries
  • Image processing tools
  • Large imports
  • Multiple resource-intensive applications

Increasing the PHP memory limit may resolve the problem, provided the hosting environment allows it.

6. Incorrect File Permissions

Website files and folders need appropriate permissions so the server can read and execute them.

Incorrect permissions may occur after:

  • Website migration
  • Manual file changes
  • FTP uploads
  • Server restoration
  • Security changes

If permissions are too restrictive, the server may be unable to access important files.

If permissions are too open, they can also create security risks.

For this reason, permissions should be corrected carefully rather than changed randomly.

7. Server Configuration Problems

Sometimes the website itself is not the problem.

The hosting environment may have an issue involving:

  • Apache
  • Nginx
  • PHP-FPM
  • Server resources
  • Configuration files
  • Hosting limits
  • Database services
  • Security software

If several websites hosted on the same server are experiencing errors at the same time, contacting the hosting provider should be a priority.

How to Fix a 500 Internal Server Error

The best approach is to troubleshoot systematically. Avoid making several changes at once because this can make it difficult to determine what actually fixed the problem.

Step 1: Refresh the Website

Start with the simplest solution.

Refresh the page and try opening it again.

You can also open the website in a private or incognito browser window.

Sometimes a temporary server issue resolves itself.

If the error continues, move on to the next step.

Step 2: Check Whether the Error Affects the Entire Website

Try visiting several URLs.

For example:

  • Homepage
  • About page
  • Contact page
  • Blog
  • WordPress login
  • Admin dashboard

If every page returns a 500 error, the issue may be related to server configuration, .htaccess, PHP, or a major website component.

If only one page fails, the problem could be related to a particular script, plugin, database query, or page configuration.

Step 3: Check Recent Website Changes

Think about what changed immediately before the error appeared.

Did you recently:

  • Install a plugin?
  • Update WordPress?
  • Update a theme?
  • Change PHP versions?
  • Edit .htaccess?
  • Add custom PHP code?
  • Move the website?
  • Change hosting?
  • Install a security plugin?

Recent changes can provide an important clue.

If the website worked normally before a particular change, temporarily reversing that change can help isolate the problem.

Step 4: Rename the .htaccess File

If your website uses Apache and you have access to its files, you can test whether .htaccess is causing the problem.

Connect through your hosting file manager or FTP and locate .htaccess.

Rename it temporarily, for example:

.htaccess-old

Then test your website.

If the website starts working, the .htaccess file is likely responsible.

For WordPress websites, you can then regenerate the default .htaccess rules by going to Settings → Permalinks in the WordPress dashboard and saving the settings.

Do not permanently delete a customised .htaccess file without checking whether it contains important redirects or security rules.

Step 5: Disable WordPress Plugins

If you cannot access the WordPress dashboard, you can often turn off plugins through your hosting file manager.

Go to: wp-content/plugins

Rename the plugins folder temporarily, such as:

plugins-disabled

Then test the website.

If the website loads again, a plugin is probably causing the problem.

You can then restore the folder name and deactivate plugins individually to identify the specific plugin.

Once the problematic plugin has been identified, update it, replace it, or contact its developer.

Step 6: Switch to a Default Theme

If plugins are not responsible, your theme could be causing the problem.

A default WordPress theme can be activated to test this.

If the website works normally with the default theme, investigate the original theme for:

  • PHP compatibility
  • Outdated functions
  • Custom code errors
  • Broken template files
  • Theme conflicts

Always keep a backup before making significant changes to a live website.

Step 7: Check PHP Version Compatibility

Your website’s PHP version needs to be compatible with WordPress, plugins, themes, and custom code.

An outdated plugin may work on one PHP version but fail after the hosting company upgrades PHP.

Likewise, very old website code may stop working with newer PHP versions.

Check your hosting control panel for the current PHP version and compare it with the requirements of your website software.

If the error appeared after a PHP upgrade, compatibility should be investigated immediately.

Step 8: Increase the PHP Memory Limit

If logs indicate a memory exhaustion problem, increasing the PHP memory limit may help.

For WordPress, this can sometimes be adjusted through configuration settings such as wp-config.php, hosting controls, or PHP configuration.

However, increasing memory is not always the best long-term solution.

If a website suddenly needs excessive memory, there may be an underlying issue such as:

  • A poorly coded plugin
  • Inefficient database queries
  • Large processes
  • Malware
  • Poorly optimised scripts

The cause should be addressed rather than simply increasing server limits.

Step 9: Check Server Error Logs

Error logs are among the most valuable resources when troubleshooting a 500 error.

Your hosting provider may provide logs through cPanel, Plesk, a hosting dashboard, or another server management system.

Look for entries mentioning:

  • PHP fatal errors
  • Memory exhaustion
  • Permission denied
  • Syntax errors
  • Database connection problems
  • Missing files
  • Plugin names
  • Theme files
  • Server configuration problems

For example, if the log identifies a particular plugin file immediately before the 500 error, you have a strong starting point for troubleshooting.

Step 10: Check Database Connectivity

A website may also experience server errors when it cannot communicate correctly with its database.

For WordPress, this may involve MySQL or MariaDB.

Database-related problems can result from:

  • Incorrect database credentials
  • Database server downtime
  • Corrupted tables
  • Hosting configuration issues
  • Excessive database queries
  • Server resource limitations

If your website has recently been migrated, database credentials and configuration should be checked carefully.

Step 11: Restore a Recent Backup

If the problem started after a major change and you have a reliable backup, restoring the website to a working version may be the quickest solution.

However, do not restore unquestioningly.

First, identify what may have caused the problem so you do not immediately recreate the same issue.

Make sure you have a recent backup of:

  • Website files
  • Database
  • Important configuration files
  • Uploaded media

A backup strategy is one of the most effective ways to reduce downtime.

Step 12: Contact Your Hosting Provider

Sometimes the problem is outside your direct control.

Contact your hosting provider if you suspect:

  • Server downtime
  • Resource limits
  • PHP-FPM problems
  • Apache/Nginx configuration issues
  • Database server failure
  • Hosting account restrictions
  • Security or firewall blocks

Give the hosting team the exact error, affected URL, approximate time the issue started, and any relevant changes you made.

This allows them to investigate the server logs more efficiently.

How to Fix a 500 Error on WordPress

WordPress websites have several common troubleshooting routes.

A practical order is:

  1. Check recent changes.
  2. Disable plugins.
  3. Test the active theme.
  4. Check .htaccess.
  5. Check PHP compatibility.
  6. Review PHP and server logs.
  7. Check memory limits.
  8. Check database connectivity.
  9. Restore a working backup if necessary.
  10. Contact hosting support.

This method helps avoid unnecessary changes to the website.

For businesses using Website Design NZ services, it is also worth ensuring that the website is built using properly maintained themes, plugins, hosting configurations, and development practices from the beginning.

What If the 500 Error Appears After a Website Update?

An update-related 500 error usually points towards compatibility.

For example, you may update WordPress while using an old plugin that has not been updated for the latest WordPress or PHP environment.

Instead of updating everything directly on the live website, use a staging environment whenever possible.

A staging website allows developers to test:

  • WordPress updates
  • Plugin updates
  • Theme changes
  • PHP upgrades
  • Custom code
  • New functionality

before making changes to the live website.

This can significantly reduce unexpected downtime.

How to Prevent Future 500 Errors

Fixing the current problem is only half the job. Good website management should also reduce the chance of the same issue happening again.

Keep WordPress Updated

Keep WordPress core, themes, and plugins updated.

However, updates should be tested where possible instead of automatically applying major changes to a critical production website.

Remove Unused Plugins

Every unnecessary plugin adds another potential compatibility and security consideration.

Remove plugins that are no longer required instead of simply leaving them inactive.

Use Reliable Hosting

Cheap hosting is not always a bargain if your website frequently experiences downtime or resource limitations.

Choose hosting with:

  • Reliable server infrastructure
  • Suitable PHP resources
  • Regular backups
  • Security monitoring
  • Support availability
  • Good server performance

Maintain Regular Backups

Backups should be automated and stored separately from the live website where possible.

A backup is particularly valuable before:

  • Major updates
  • Website migrations
  • PHP upgrades
  • Theme changes
  • Plugin installations
  • Server configuration changes

Monitor Website Uptime

Website monitoring tools can notify you when your website becomes unavailable.

This is particularly useful for businesses that depend on their website for enquiries or online sales.

Schedule Regular Website Maintenance

Professional Website Maintenance Services can help businesses monitor updates, backups, security, performance, and technical issues before they become larger problems.

For many businesses, preventative maintenance is considerably easier than recovering a website after a major server failure.

When Should You Ask a Developer for Help?

A 500 error can sometimes be fixed with a simple plugin rollback or .htaccess correction.

However, you should consider professional help if:

  • The error affects your entire website.
  • You cannot access your hosting account.
  • Server logs show complex PHP errors.
  • You suspect malware.
  • The database appears damaged.
  • The website contains custom code.
  • The error keeps returning.
  • Your business website is generating significant leads or sales.
  • You are uncomfortable editing server files.

A professional developer can inspect logs, test the server environment, identify conflicts, and restore the website while reducing the risk of making the situation worse.

For example, i2D can help businesses approach website problems systematically rather than making random changes that may create additional issues.

Final Thoughts

A 500 Internal Server Error does not necessarily mean your website is permanently damaged. It is a general server-side error that can have several different causes, so the most effective solution is systematic troubleshooting.

Start with recent changes and simple checks. Then investigate .htaccess, plugins, themes, PHP compatibility, memory limits, permissions, databases, and server logs. If the problem is related to hosting or advanced server configuration, your hosting provider or a qualified developer can help identify the underlying cause.

Most importantly, do not wait until a small technical problem becomes a major outage. Regular updates, backups, monitoring, security checks, and preventative maintenance can keep your website more stable and reliable for customers across New Zealand.

Frequently Asked Questions

Yes, many basic 500 errors can be fixed without a developer. Start by checking recent changes, disabling plugins, testing the theme, checking .htaccess, and reviewing server error logs. More complex server or coding problems may require professional assistance.

Usually, no. A 500 Internal Server Error generally means the website server encountered a problem while processing the request. Your internet connection may still be working normally.

Yes. A plugin can cause a 500 error if it has a PHP compatibility problem, conflicts with another plugin or theme, contains faulty code, or uses excessive server resources. Temporarily disabling plugins can help identify the cause.

A temporary error may have little lasting impact, but repeated or prolonged 500 errors can cause SEO problems. Search engines need reliable access to your pages for crawling and indexing. Persistent server errors can therefore contribute to reduced visibility and lost organic traffic.

Your website may contain outdated code that is incompatible with the new PHP version. Plugins, themes, or custom scripts can also cause compatibility problems. Checking error logs and testing the website components can help identify the affected code.

Use reliable hosting, maintain regular backups, keep WordPress and its components updated, remove unnecessary plugins, monitor uptime, test major changes on staging, and perform regular technical maintenance.

web design auckland