500 Internal Server Error
Problem: Recently, I was playing with a couple of plugins and unfortunately one of them crashed my server and thus displayed the 500 Server Error message.
I also discovered that plugins such as XML Sitemap Generator for WordPress, Some Database Backup Plugins and various other useless plugins are the main cause of this error.
Diagnosis: Lack of PHP memory; in other words, PHP is running out of memory.
Solution: You can easily fix this bug if you are running your own root or dedicated server. All you need to do is update your php.ini file and provide more memory to your PHP installation.
If you are on a shared hosting just like many of us, such as godaddy, hostgator, bluehost etc, you do not have control over the php.ini setting but there is another way around.
- Create a text file and name it “php.ini” (without the quotes)
- Add a single line of code in it “memory=20MB” (without the quotes)
- Save the php.ini to your directory /wp-admin/ within your WordPress installation.
- It should look like /wp-admin/php.ini
Bingo!
You should be able to access your blog now. If you still cant then, go to your plugins folder through FTP and remove plugins like XML, database backup plugins and other suspicious plugins. Now login to your blog, go through all the plugins, activate the useful plugins and deactivate the unnecessary ones.
If you have deleted the XML plugin earlier then you can install it again and create your sitemaps with a click.
It is important that you know what you are dealing with. When i encountered the error, i was not happy. I thought i lost everything but of course there is always a way around. Make sure you know about the widget or plugins that you are dealing with. If you have several blogs then you can use one of them to test and experience with various plugins. In this way you will know what plugins to keep and use on your main blog.
Hope you find this post useful. Bookmark and share for future reference.


{ 4 comments… read them below or add one }
If I could reach out through the internet, I would give you a great big hug right now. Thank you so much for posting this, it worked like a charm!
Thank you
. I am glad that you found it useful
Thanks so much. I recently installed a Twitter plugin that fragged my plugins folder. I reinstalled the folder but kept getting the 500 error. I looked in the wp-admin folder and sure enough, the php.ini file was not there. I created it as instructed in your post and the error went away. Thanks again for the help.
thank you! Really saved my proverbial A$$.