• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here: Home » 500 Internal Server Error WordPress – How To Fix 500 Error

By Abhishek Ghosh October 18, 2011 9:32 pm Updated on October 27, 2021

500 Internal Server Error WordPress – How To Fix 500 Error

Advertisement

If you are facing 500 Internal Server Error for your WordPress after migration from one server to another, some may blame the Web Hosting and some the .htaccess. Unfortunately, most does not tries understand a major point – one blog which was active without any 500 Internal Server Error, without some code change it will not show 500 Internal Server Error. Such changes may happen “automatically”, like changes created by a plugin’s auto-update.

 

Understanding why 500 Internal Server Error occurs in WordPress after the migration

 

Most of us simply copy-paste the whole …/public folder content either through FTP or Tar it, download to the new server using the Shell and untar it, restore the MySQL database from the old to the new, change the name-server (s) and do. Three steps, for a good host like Rackspace, everything takes hardly a day. Then why do we face this 500 Internal Server Error?
500 Internal Server Error can happen in the following cases :

 

Corrupted .htaccess – In this case 500 Internal Server Error will happen ALWAYS, not randomly.

Advertisement

---

File Permission Problem – Unusual for server migrations, you have to CHMOD to change the file permissions, you will get the default file and folder permissions in WordPress codex.

Less allocated PHP memory/default PHP memory – This is the commonest and almost always “undiagnosed” reason for random 500 Internal Server Error after server migration.

 

What is random 500 Internal Server Error ?

 

Your website or blog opens rightly at one moment and at the next moment when you try to open the XYZ page or post sudden it shows a 500 Internal Server Error. If you refresh the page, it loads rightly again.

 

Fixes for the 500 Internal Server Error

 

Corrupted .htaccess – Try with “default” clean .htaccess file. I have kept default within quotation marks as, unless permalink structure is activated, WordPress needs no .htaccess. Random 500 Internal Server Error is very less likely to happen with a corrupted .htaccess file.

 

File Permission Problem – Either CHMOD from the shell or right-click on your sFTP / FTP to change the file permissions.

 

Less allocated PHP memory/default PHP memory – I will suggest starting with this diagnostic approach for fixing the 500 Internal Server Error. Most probably, you have not increased the PHP memory with your old server from .htaccess or wp-config. Almost always we forget to change the limit from php.ini (if have access) or the previous hosting provider had configured a higher PHP memory.

 

To diagnose precisely why this 500 Internal Server Error is occurring, you need access to the error log file, which can be under a folder named log (depends on the Linux Distro and Virtualization Switch). For Rackspace, you will find it under :

 

Vim
1
root/www.name-of-your-website-showing-500 Internal Server Error.com/logs/php_error.log

 

PHP memory is by default 32 MB, which is practically nothing if you are using XML Sitemap generator, some SEO Plugins etc. and you have around 2K posts, the PHP memory will simply be exhausted and throw 500 Internal Server Error.

Simply look if anything is saying “memory limit exceeded allocated…”; this is the root cause of 500 Internal Server Error. It is not those plugins responsible for 500 Internal Server Error directly, but the limit of PHP memory is calling the 500 Internal Server Error to happen and you can easily fix it through .htacess and/or wp-config file.

For Rackspace, there is no limit up to what you can increase this PHP memory. There will be no limit for the Cloud Servers who calculates the consumption as Computing Cycles. You can increase to a few GB (you have to mention MB).

In order to increase the php memory, to get rid of random 500 Internal Server Error, you can add this to your .htaccess file (in the root) :

Vim
1
php_value memory_limit valueM

 

Change the word value to to your desired value.

 

Importance: It solves the random 500 Internal Server Error due to insufficient PHP memory. This value of PHP memory is distributed for all the files under the folder (the root of your website in this case) including WordPress. If you have a subdomain, that will share it and might throw 500 Internal Server Error as the memory has not increased much in real. For example, in your main folder, there is WordPress (default PHP memory 32 MB) and in sub- there is another WordPress (32 MB again), if you increase the PHP memory to 64 MB from the .htacees in the root of your website, you will get 500 Internal Server Error again! Simply because the 64 MB is divided into 2 x 32 MB. So to solve this 500 Internal Server Error in your case you will need a value of more than 64 MB.

 

Changing PHP memory from wp-config to solve the random 500 Internal Server Error :

 

in wp-config.php, you need to add :

 

Vim
1
define('WP_MEMORY_LIMIT', 'valueM');

 

Change the word value to to your desired value.

 

Importance: This is specific for the WordPress installation under question showing random 500 Internal Server Error.

Changing from php.ini: It is better to ask the hosting provider before manipulating php.ini.

 

More on random 500 Internal Server Error

 

500 Internal Server Error WordPress - How To Fix 500 Error

If increasing the memory to practical value does not solve the 500 Internal Server Error, there is a probable issue with the SQL database (as we are talking about migration). Again, look what error is showing on the error log. If the 500 Internal Server error is due to any specific plugin, deactivate, delete it, clean the database and then install the plugin again. You will not get 500 Internal Server Error anymore.

Sometimes, hacking attempts can throw 500 Internal Server Error. This is due to the fact, the hacker has injected some code and that is eating up the PHP memory. PHP log will show the problem.

Signature Tagged With wordpress 500 internal server error , WordPress Error 500 , wordpress 500 error , 500 internal server error wordpress , internal server error 500 , 500 internal server error after editing htaccess , wordpress 500 internal error , wordpress http 500 error , wordpress internal server error , wordpress copy database error 500

This Article Has Been Shared 849 Times!

Facebook Twitter Pinterest

Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to 500 Internal Server Error WordPress – How To Fix 500 Error

  • Tips to Optimize WordPress Running on Dedicated Server

    Tips to Optimize WordPress Running on Dedicated Server gives you the most commonly missed optimization tips to smoothen the performance and page loading speed.

  • Web hosting, Domains, Website, Blog, Forums demystified

    Web hosting, Domains, Website, Blog, Forums are often quite cloudy to the new users. In this article we have written about them in plain English.

  • Cheapest WordPress Cloud Hosting at One Dollar Per Month With CDN

    Cheapest WordPress Cloud Hosting at One Dollar Per Month With CDN on Rackspace cloud infrastructure is now available as pilot project. Amazing, right?

  • Create Facebook App Page With Free Google Sites

    Create Facebook App Page With Free Google Sites with just few clicks without knowing a single bit of coding things. We are giving warranty, it will look great.

  • WordPress Mobile Version Subdomain : Full Guide For Creation

    Wordpress Mobile Version Subdomain is needed to offload the traffic, to increase readability, professionalism, SEO, Make Money using Specific AdSense units.

Additionally, performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Comments

  1. Avatardr. mardiney says

    October 3, 2013 at 4:58 am

    Feel free to surf to my blog post: dr. mardiney

  2. AvatarGia says

    December 17, 2013 at 10:56 am

    You rock. Thanks. I like how you write.

    This article really helped me.

    Gia-

  3. Abhishek GhoshAbhishek Ghosh says

    December 21, 2013 at 1:18 am

    Thank you very much!

  4. Avatarseo, seo hizmeti says

    February 22, 2014 at 9:50 pm

    You can certainly call at your skills in the job you’re posting. Your sector desires far more enthusiastic authors like you which will not be fearful to mention the way they imagine. Continuously focus on your center.

Subscribe To Our Free Newsletter

Get new posts by email:

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (24.3K Followers)
  • Twitter (5.8k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • The Importance of Voice and Style in Essay Writing April 1, 2023
  • What Online Casinos Have No Deposit Bonus in Australia March 30, 2023
  • Four Foolproof Tips To Never Run Out Of Blog Ideas For Your Website March 28, 2023
  • The Interactive Entertainment Serving as a Tech Proving Ground March 28, 2023
  • Is it Good to Run Apache Web server and MySQL Database on Separate Cloud Servers? March 27, 2023

About This Article

Cite this article as: Abhishek Ghosh, "500 Internal Server Error WordPress – How To Fix 500 Error," in The Customize Windows, October 18, 2011, April 2, 2023, https://thecustomizewindows.com/2011/10/500-internal-server-error-wordpress-how-to-fix-500-error/.

Source:The Customize Windows, JiMA.in

PC users can consult Corrine Chorney for Security.

Want to know more about us? Read Notability and Mentions & Our Setup.

Copyright © 2023 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy

We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies.
Do not sell my personal information.
Cookie SettingsAccept
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
CookieDurationDescription
cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Others
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
SAVE & ACCEPT