Today I had an interesting afternoon thanks to GoDaddy and WordPress. I have been working with my blog a lot over the past few days and I noticed that I was getting a lot of “Error 500 - Internal server error” messages. I was getting this error about 50% of the time. I went to my Control Panel on the GoDaddy site and turned on Error Logging. The only thing the Error Log was showing was a few lines that said ‘mod_rewrite: maximum number of internal redirects reached. Assuming configuration error. Use ‘RewriteOptions MaxRedirects’ to increase the limit if neccessary.’
From this error messages I assumed the problem was being caused by mod_rewrite but after several hours of playing with it and spending 1/2 hour on the phone with GoDaddy Tech Support, I discovered that it was not to culprit.
After doing much searching on the Internet I stumbled upon a forum post talking about the same problem. I discovered that the problem was not with mod_rewrite but was instead with the WP-Cache plugin that I had installed in WordPress. There seams to be some kind of compatibility problem with GoDaddy and WordPress with the WP-Cache plugin enabled. Disabling the plugin got rid of the 500 Internal server error messages.
I did not want to get rid of the WP-Cache plugin because it did speed up my site so I decided to see if anyone had a work around and I found a great blog post that told me how to fix it. The post is at Using WP-Cache on GoDaddy (500 Error).
I found thinkdj’s post over at Blogulate that has a GZIP version of WP-Cache that will work with GZIP enabled so I started with that version and added the GoDaddy fix. I took it a little further and found some optimization for WP-Cache as well. I have it fully working on GoDaddy now with no more 500 Internal Server Error messages. To save you all a lot of work I have created a .zip file containing the fixes and optimization to WP-Cache. Just download wp-cache.zip and unzip it into your wp-content/plugins directory. Your site should be faster and error free. I have only tested it on GoDaddy so I don’t know if it will work on other hosts.
Refrences:
Original GoDaddy Fix site
Original GZIP Version of WP-Cache
Original Speed Optimization site
Good job Givver
Hope it helps out more GoDaddy users facing the same problem. I had trouble finding out that WP-Cache was actually causing the problem.
Yeah me too. Took me several hours of looking at error logs and searching on the internet before I found a solution. I even spent 1/2 hour on the phone with GoDadddy.
I had this same problem way back when, and the solution was much the same.
However, I would highly recommend using WP-Super-Cache at this point. It has WP-Cache built into it, it works on GoDaddy hosting, and most importantly, it supports the “super cache”, which is a lot better than the basic WP-Cache caching system as it makes the files truly static and, optionally, gzip compressed.
Wow, you rule! Thank you for the awesome fix. You made my day. I am sure it would have taken mre 10-40 hours to figure this out, since I am new to Apache, GoDaddy, and Wordpress.
Thanks a bunch. I was at loss as to the issue.
So, what if WP SuperCache doesn’t work on GoDaddy, as it doesn’t and hasn’t ever (in my own humble experience)? So far, none of the following plugins have both cached pages and prevented 500’s, in any possible configuration that I’ve found.
WP-Cache
WP-Cache II
WP-Cache (GoDaddy Version)
WP-SuperCache
Since WP-SuperCache now goes out and rewrites your .htaccess file, could that be why your GoDaddy version of WP-Cache doesn’t work? My apologies for being new to PHP. Also, the original WP-Cache supposedly allows you to keep a portion of your site dynamic if need be with the mclude and mfunc tags… does your version change anything in this particular area?
I don’t use SuperCache I only use the original WP-Cache modified with the fixes from GoDaddy Fix Site and the other some other changes listed above. I have not had an 500 errors since using it. If you are still getting 500 errors after using my version then it might be due to a conflict with some out pluging. I would suggest that you disable all plugins except WP-Cache My version and see if the 500 errors go away.
Excellent work. Thanks so much for saving me the time on troubleshooting this myself. I had the same problem and this seems to have cleared it up.
HUZZAH! Excellent work! Thank you so very much.
With your version of wp-cache (using GoDaddy) I’m still not serving up cached pages. I’m STORING them (like before), but using them. I can visibly see with FTP that there’s a ton of files in the cache, but the plugin in the admin screen always says 0.
If you have GZIP turned on then try turning it off. I have noticed that this plugin seam to turn itself off if GZIP is on, even thought it is not supposed to.
Just wanted to add my thank you to the long list. I had the exact same problem and assume this will fix it.
Best -
Thanks for that. After finding and implementing your solution, all is working well
I tried the fix, installed perfectly, but still, there were many 503 errors. I ended up removing it, :::sigh:::
This fix is for 500 server errors not 503.
A 503 Server Error is usually caused by:
* It can mean that a required program has not yet been started on the server or has crashed
* HTTP 503 might indicate other types of network or server errors.
* You often see HTTP 503 when a website has exceeded its monthly bandwidth allowance.
* A Connection to a database has failed or is misconfigured
* The server may be forbidden from giving you the requested document
http://www.crewpix.com/phpESP/public/survey.php?name=CrewPixSurvey2
You could also try the Wordpress Super Cache plugin instead of the regular cache plugin. I have used it without problem on GoDaddy (Using the go daddy fix)
http://www.givveronline.com/wordpress/godaddy-wp-super-cache/
I installed your modified version of WP Cache on my GoDaddy hosted site and it seems to be working well.
Thanks.
Many thanks, dude!
It works wonders.
Still facing the same problem even after installing your plugin, I can’t even access the plugins page for me to disable other plugins…
Let me know if you can help!
Increible!!
Amazing…
Thanks a lot
Hi. We installed WP on GoDaddy and were writing our blog, and it worked great. This week, when we went to hit Publish, we started getting those Server 500 Errors. I installed your WP-Cache fix, activated it, then enabled it. I do not have any other active plug-ins going. We are still getting the same error when we go to publish- any additional advice?
Many thanks in advance for all!
This fix will only work if you were using the original WP-Cache and were getting the 500 errors. If you still get them with no plugins active then you are having a different problem.
It might be a problem with your php.ini located in the root directory of your hosting site. (not a sub directory).
Mine contains:
register_globals=on
allow_url_fopen = on
expose_php = Off
max_input_time = 60
variables_order = “EGPCS”
extension_dir = ./
upload_tmp_dir = /tmp
precision = 12
SMTP = relay-hosting.secureserver.net
url_rewriter.tags = “a=href,area=href,frame=src,input=src,form=,fieldset=”
upload_max_filesize = 5M
post_max_size = 10M
Hope this helps.