[How To] Fix WordPress 500 internal server error

WordPress is widely used by the bloggers due to its simplicity and plugins availability.

Hosting companies provides special WordPress hosting plans in which the server environment is set to support WordPress.

 In case if you face error as below

“Error 500 – Internal server error

An internal server error has occurred!

Please try again later.”

or

“Error 500 – Internal server error

An internal server error has occurred!

Additionally page 404 not found"

  • Create a new file in any editor with following contents
1
2
3
php_flag register_globals off
register_globals = 0
memory_limit = 64M
  • Save the file as php.ini and upload it to your /wp-admin/ directory of WordPress. This will effect in increasing of PHP memory limit as sometimes default limit set by the hosting service provider is very low.

Note: If your hosting provider had put restrictions on custom php.ini then above method will not work.

If you are still receiving the error then you might need to enable PHP 5 support.

  • Edit .htaccess file in notepad or similar editor (if not present then create one). .htacess is located in root directory of website or blog. You can use FTP to access .htaccess file.
  • Add below two lines in the file above the WordPress re-write rules.
1
2
AddType x-mapp-php5 .php
AddHandler x-mapp-php5 .php

Note: If you are already on PHP 5 server then skip above step. Always backyp original .htacces before making any changes.

Even if the error persists, contact your hosting support to know the exact reason and they should fix the issue for you.

If any feedback, queries are always welcome!

Share on Facebook4
Share on Google+4Tweet about this on TwitterShare on StumbleUpon0Share on LinkedIn0Share on Tumblr0Digg thisPin on Pinterest0Share on Reddit0Email this to someonePrint this page
WordPress is widely used by the bloggers due to its simplicity and plugins availability. Hosting companies provides special WordPress hosting plans in which the server environment is set to support WordPress.  In case if you face error as below “Error 500 – Internal server error An internal server error has occurred! Please try again later.” or “Error 500 – Internal server error An internal server error has occurred! Additionally page 404 not found" Create a new file in any editor with following contents php_flag register_globals off register_globals = 0 memory_limit = 64M Save the file as php.ini and upload it to…

Review Overview

User Rating: 4.05 ( 1 votes)

About Abhijit Sandhan

Abhijit Sandhan
Loves Linux, Blogging, Traveling, Hiking and sharing knowledge!

5 comments

  1. I coded in .htaccess file as you have given and my site started giving forbidden error. x-(

  2. nice article thanks.

Leave a Reply

Your email address will not be published. Required fields are marked *

CAPTCHA