How to make the automatic update work with your WordPress blogs that are hosted on 1and1 shared servers. These are blogs that you set up yourself, not the blog that 1and1 can install for you.
The problem I was having was the update would start, and then just stop after a few seconds.
Then in my wp-content folder I would see a bunch of failed downloads. They were the update zip files with a 0 byte size.
The Solution:
Add the following lines to your .htaccess file in the root directory of your blog.
AddType x-mapp-php5 .php
This will enable PHP version 5 + on your blog and then your update should take off.
The update to PHP 5 should also make your blog run a little faster and better.
Genius – thanks so much for the tip. Worked like a dream.
The php5 line does work – but wordpress seems to modify the htaccess file from time to time removing the line causing a server 500 error until I add the line back to the file.
Anyone know a fix for this?
Make sure you place the php 5 line outside the #word press section
AddType x-mapp-php5 .php
# BEGIN WordPress
Terrific. Bravo. Just saved me much time and effort going forward. Many thanks.
wow, that saved me a bunch from frustration !!
thanks
You’re Awesome!!! Thanks!
Dear Lord!
I was having a problem upgrading from 2.8.3 to 2.8.4 until I found this post. I tried deactivating all the plugins – that didn’t work. I tried deleting some of the more hoggish plugins – that didn’t work. I thought about doing a manual upgrade – thought better of that
. Then I remembered that I had run into this problem before when trying to use the automatic upgrade functionality with WP 2.8. After searching for a while I found your blog and, yup, it worked again! Thanks.
Hat mir echt Zeit gespart, Danke!
peter
Saved me a bunch of time, Thanks
Thanks so much for the tip!
Excellent tip ! Thank you
God bless you good sir. 1and1 is such a blessing and a curse.
May your children be smart, average looking and not too full of themselves.
Thanks a lot for the info! It saved me countless hours contacting 1&1. I’d expect them to have PHP5 enabled by default or some info in their website regarding this issue. I can’t imagine the ammount of people using their own WP installations that have had this issue before…
You are right, it probably is about time they switched to php 5 as the default version, and then let users turn it down to php 4 instead of the other way around.
Superb! Thanks so much for sharing this tip. Just what I was looking for. Be even better if 1and1.com installed Fantastico, of course, but that’s just my wishing.
Thanks Andrew. 1and1 does not have Fantastico, but you can install a word press blog through their control panel, and they will take care of updates for you. However I believe the blog is limited to only certain plugins and themes, so it is probably not adequate for most users.
Thank you SO much! This has been bugging me for ages. You are a wonderful person.
Great to hear! Glad it worked for you.
I emailed 1&1 support several times and got stupid responses. One guy didn’t understand and resulted to saying our server tools were done call back (must be standard De-da-dee response for I don;t know nothing!). After several days waiting I updated manually. Today I see email responses and they said to reinstall WP. BS response I’m running latest PHP & MySQL already luckily! Anyways Googled the magic phrase tonight and found this. Thank You! I suggested to 1&1 support to read this and put it in there FAQ’s for 1&1 WordPress support. I hope (but doubt) they’ll comprehend.
Amazingly simple (yet effective) post. I can’t tell you how happy I was to run across this. Thanks!
Done that. Now memory issues when uploading 400k pictures; plus auto-update to WP 2.9 fails with memory issues. Separately, cannot run Gallery3 because 1&1 server is using outdated Apache! Probably time to leave 1&1 for …?
~Andrew~
Andrew, yes I’ve had similar issues, also random 500 errors from time to time with 1and1
I have some other sites hosted by hostgator and pair networks (where this site is as of now), both of them have been quite solid for me. Of course they might cost you a little more.
Best of luck to you.
Thank you. Very simple solution. Saved me a lot of time. Thanks again.
Awesome, so glad it helped!
Thank You, works great
THANK YOU. SO MUCH.
Not wirking for me, still having a “Fatal error: Out of memory” when trying to upgrade. Any idea?
Thanks for the tip, you are awesome, updating manually every month was more irritating than anything else
Thanks! This took care of my upgrade problems, my Server 500 errors and a few plugins that weren’t working now suddenly work.
Thanks so much! this was great!
Thanks, this saved my day! If any problem could be solved thus simple…
You are my hero. This issue has plagued me for 6 months now. No more. Kudos. Thank you so much.
DUDE! thank you!! I have to say 1and1 sucks!! But thanks to people like you I can find work arounds…
You are very welcome. Nice that such a simple line of code can do so much
Brilliant! Thanks for making life easier.
Glad to help!
I’m having trouble finding the file to modify any hints on where it is.
Thanks
.htaccess may not be on your server you can create one with notepad. it is something you use to change options in your folders.
just open notepad and put in that line he said:
AddType x-mapp-php5 .php
then save as and instead of saving as .txt save as all files and simply put .htaccess in there as the name. thanks for the instructions on this it worked like a charm i was wonder why it wasnt working!
Kevin,
Thanks, that is a good point, if you haven’t changed your permalinks or anything you may not have an .htaccess file
Perfect! Thank you. You rock.
And just in time for the big 3.0 update…
Amazing! After much grief, I finally did a Google search and found your post and followed the instructions. It worked great! Thanks! It also feels faster too!
Good to hear, and yes it should run a little faster since it is using php 5 instead of php 4.
Thanks for the post! I tried to update my wordpress over the weekend and left it going over night with nothing happening. Added this to my .htaccess and everything went good! (5sec update)
Yes, that is the tricky part, it seems like it is working, but as you found out, you can wait all night with no progress.
OMG thank you SO much for this fix. I’ve been struggling with this issue for weeks. During the interim one of my PR 5 websites has been offline because I tried updating but had the wrong verson of php set up.
Cheers,
JB
JB, great to hear it worked out for you.
Thanks for the post. We enjoy 1and1.com but the upgrade in wordpress has been tough at times. For the one click update do we need to disable plugins before upgrading to wordpress 3.0?
Rob, you do no have to disable all your plugins, however, it is recommended by WordPress.
I usually do not disable my plugins, I have only run into issues a handful of times after probably hundreds of upgrades.
Thanks for the post! This tip worked perfectly when upgrading to WP3.0!
you… you have made my day. thanks for sharing this!
Bigw Superstar.
Thanks! You are a gentleman and a scholar! KISSES!!!!
This really made my day. I was tired of updating everything by hand. (Although I didn’t copy and paste it the first time, I just typed it in and didn’t put the space before .php and got error messages. It took me about 5 minutes to realize what I did wrong.)
Yes, it is important to get the text just right or you will get a server error.
thanks a lot !
without the modification of the .htaccess file will not be able to upgrade in wp 3
Cheers to you, sir. This works like a champ!
Hi, I just created the file with text edit, added the code, saved it and then I renamed it in Dreamweaver to “.htaccess” and uploaded it to the server. Now I am getting a 500 internal server error. Any suggestions. I was under the impression that 1and 1 did not support php 5.
Thanks,
Mat
Okay, I got it to start working but I get this message. “The update cannot be installed because WordPress 3.0.1 requires MySQL version 4.1.2 or higher. You are running version 4.0.27.”
Thanks for any help,
Mat
Mat,
I would make a good backup of your database.
Then go to your 1and1 control panel and create a new database and make sure it says MySQL version 5.
Then do a database restore from your backup file to the new database you just created.
Once that is complete, update your blog wp-config.php file with the new database.
This post, and your mini tech support with “Mat”, saved my life.
PHP 5 .htaccess file + backup/restore 1&1 5.0 MySQL DB = updated WP site.
Thank You!
Oh thank you, thank you, thank you. And a tweet too: http://twitter.com/2edinburgh/status/21897683070
When I saw your post I thought ‘oh, this is old stuff 1&1 can’t be the problem…’ but you were right even after 18 months!
It was all so easy after I’d followed your advice.
Thank you very much! I was ready to tear my hair out with the broken auto-updates.
Thanks dude it takes 2 seconds to update..
You save me a lot of time and a bunch of work to do
Why it didnt work for me ?, after copy paste your code into my htaccess file, I get some error whenever I tried to login, it said it is related with something in my /wp-includes/plugin.php file? Could someone confirm if 1and1 is tested running wp 3.0.1 ?
Actually I have tried other suggestion such as setting the temporary directory or manually add ftp info in my config file, but your suggestion is the most promising right now (seeing how much people confirm that it works)
I am trying to rollback to previous version to see if your solution works now.
Worked like a charm! Thanks for your help!
I have WP 3.0.2 running on 1and1 and it is working great!
Thanks so much for this! It saved me from a headache as I was was getting read to manually upgrade!
Once again, another BIG thank you.
Thanks! Fixed the problem with failing automatic updates on my blog!
This is the post that keeps on giving – add my thanks to the many before for the fix – worked like a charm
YOU ROCK! Thanks for solving my vexing problems I’ve had for so long.
Thanks for this, I’ve just moved several blogs over to 1&1 and the non-automatic update was frustrating me, till I found your post.
Cheers!
So glad it helped!
Fantastic! Took me a bit to get hidden files to work with the Mac and Firefox FTP. After that, the update worked in seconds! Thanks a lot!
I found the file under logs but it will not let me edit it?
No, you don’t want the file under logs. It should be file in the “root” directory of your blog.
If you are not using permalinks, the file may not be there, you will have to create it.
Thanks so much! This has been bothering me for ever! It totally worked for me.
Thank you so so much. I have like 50 blogs on 1and1 and just by adding this line to my .htaccess once on each hosting package I was able to upgrade them all in a few minutes.
Thanks a LOT
Awesome!
bravo. just updated 1 year old blog install to wordpress 3.1.1 without a hitch. thank you much.
You are a star. You also have done a good job for 1&1. I was on the verge of moving all of my sites over to BlueHost because the WordPress support and upgrading process was so poor at 1&1.
—
Cheers
Mark
Client had this problem with 1and1, and this seems to be the only link that actually had a solution, so thanks
Thanks a million! This was driving me looney.
I don’t even know what to say. I’ve been putting it in wordpress/.htaccess for a long time, and no dice. Now that I decided to read the directions more carefully, and put it in the ACTUAL root directory (instead of the root of /wordpress) it WORKS.
You are the man. That is all.
Wow. Thanks a million. It works like a charm.
Keep getting the following error:
Warning: copy(/homepages/41/d369911849/htdocs/app369913502/wp-admin/includes/update-core.php) [function.copy]: failed to open stream: Permission denied in /homepages/41/d369911849/htdocs/app369913502/wp-admin/includes/class-wp-filesystem-direct.php on line 200
Could not copy files.
Installation Failed
does everyone here have the linux package? i can’t get it to work…and the 1and1 website says that the only package that allows configuration changes via htacess is the linux packages?
http://faq.1and1.com/scripting_languages_supported/htaccess/1.html
can you make it work with out the linux package?
PLEASE HELP!!
MANY MANY MANY THANKS!
Wow! Thank you soooo much! This worked great… makes our life so much easier! Thanks again, keep up the good work!
Thanks so much, that worked for me!