Big Webmaster

Tips and Help for Webmasters

WordPress Automatic Update with 1and1

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.

wordpress-update-1and1

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.

working-wordpress-update-1and1

The update to PHP 5 should also make your blog run a little faster and better.

 

Filed Under: code, wordpress Tagged With: 1and1 wordpress, error 500, wordpress

Comments

  1. Ben says

    February 23, 2009 at 1:41 pm

    Genius – thanks so much for the tip. Worked like a dream.

  2. Neto says

    April 11, 2009 at 2:29 pm

    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?

    • bigw says

      November 14, 2009 at 9:13 am

      Make sure you place the php 5 line outside the #word press section

      AddType x-mapp-php5 .php
      # BEGIN WordPress

    • Tom P. says

      August 4, 2010 at 6:42 pm

      Terrific. Bravo. Just saved me much time and effort going forward. Many thanks.

  3. James says

    May 14, 2009 at 4:12 pm

    wow, that saved me a bunch from frustration !!

    thanks

  4. T166 says

    June 20, 2009 at 5:22 pm

    You’re Awesome!!! Thanks!

  5. Travis Lindsay says

    August 12, 2009 at 2:52 pm

    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.

  6. Peter says

    August 14, 2009 at 1:02 am

    Hat mir echt Zeit gespart, Danke!
    peter

    Saved me a bunch of time, Thanks

  7. reb says

    September 10, 2009 at 8:00 am

    Thanks so much for the tip!

  8. Jeremy says

    September 29, 2009 at 12:58 pm

    Excellent tip ! Thank you

  9. John says

    October 27, 2009 at 5:01 pm

    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.

  10. Carlos Castillo says

    November 13, 2009 at 11:57 pm

    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…

    • bigw says

      November 14, 2009 at 9:15 am

      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.

  11. Andrew Jensen says

    November 14, 2009 at 10:29 am

    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.

    • bigw says

      November 14, 2009 at 12:26 pm

      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.

  12. Nick says

    November 24, 2009 at 5:25 am

    Thank you SO much! This has been bugging me for ages. You are a wonderful person.

    • bigw says

      November 25, 2009 at 10:35 pm

      Great to hear! Glad it worked for you.

  13. MacDIllon says

    December 16, 2009 at 8:46 pm

    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.

  14. Buy N Review says

    December 19, 2009 at 12:53 am

    Amazingly simple (yet effective) post. I can’t tell you how happy I was to run across this. Thanks!

  15. Andrew Reeves-Hall says

    December 22, 2009 at 8:10 pm

    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~

    • bigw says

      December 22, 2009 at 8:14 pm

      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.

  16. Chris says

    December 28, 2009 at 4:58 pm

    Thank you. Very simple solution. Saved me a lot of time. Thanks again.

    • bigw says

      December 28, 2009 at 6:41 pm

      Awesome, so glad it helped!

  17. Jeff says

    January 1, 2010 at 10:49 pm

    Thank You, works great

  18. carson says

    January 4, 2010 at 6:26 pm

    THANK YOU. SO MUCH.

  19. [SiMON] says

    January 7, 2010 at 11:06 am

    Not wirking for me, still having a “Fatal error: Out of memory” when trying to upgrade. Any idea?

  20. Howard says

    February 18, 2010 at 2:24 am

    Thanks for the tip, you are awesome, updating manually every month was more irritating than anything else

  21. Clifford says

    February 20, 2010 at 4:14 pm

    Thanks! This took care of my upgrade problems, my Server 500 errors and a few plugins that weren’t working now suddenly work.

  22. jay says

    March 11, 2010 at 11:54 am

    Thanks so much! this was great!

  23. Dinu says

    March 19, 2010 at 4:51 am

    Thanks, this saved my day! If any problem could be solved thus simple…

  24. Jesse says

    March 22, 2010 at 6:02 pm

    You are my hero. This issue has plagued me for 6 months now. No more. Kudos. Thank you so much.

  25. GO Zone says

    March 24, 2010 at 8:03 pm

    DUDE! thank you!! I have to say 1and1 sucks!! But thanks to people like you I can find work arounds…

    • bigw says

      April 1, 2010 at 1:38 pm

      You are very welcome. Nice that such a simple line of code can do so much :)

  26. Jeremy says

    March 31, 2010 at 6:10 pm

    Brilliant! Thanks for making life easier.

    • bigw says

      April 1, 2010 at 1:38 pm

      Glad to help!

  27. Ivan Klugman says

    April 19, 2010 at 5:59 pm

    I’m having trouble finding the file to modify any hints on where it is.
    Thanks

    • kevin says

      May 22, 2010 at 3:43 am

      .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!

      • bigw says

        May 22, 2010 at 7:36 am

        Kevin,

        Thanks, that is a good point, if you haven’t changed your permalinks or anything you may not have an .htaccess file

  28. Shalom Ormsby says

    June 13, 2010 at 2:24 pm

    Perfect! Thank you. You rock.

  29. Shalom Ormsby says

    June 13, 2010 at 2:25 pm

    And just in time for the big 3.0 update…

  30. Joseph Lee says

    June 21, 2010 at 6:31 pm

    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!

    • bigw says

      June 21, 2010 at 6:47 pm

      Good to hear, and yes it should run a little faster since it is using php 5 instead of php 4.

  31. James R. says

    June 30, 2010 at 11:18 am

    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)

    • bigw says

      July 24, 2010 at 9:56 am

      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.

  32. John Bates says

    July 7, 2010 at 7:22 am

    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

    • bigw says

      July 24, 2010 at 9:55 am

      JB, great to hear it worked out for you.

  33. Rob says

    July 12, 2010 at 11:45 am

    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?

    • bigw says

      July 24, 2010 at 9:54 am

      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.

  34. LaMs says

    July 20, 2010 at 12:07 pm

    Thanks for the post! This tip worked perfectly when upgrading to WP3.0!

  35. keith w says

    July 27, 2010 at 10:15 pm

    you… you have made my day. thanks for sharing this!

  36. Heiko says

    July 29, 2010 at 3:57 am

    Bigw Superstar.

  37. Deirdre says

    August 1, 2010 at 12:10 pm

    Thanks! You are a gentleman and a scholar! KISSES!!!!

  38. labman says

    August 11, 2010 at 8:09 am

    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.)

    • bigw says

      August 11, 2010 at 8:50 am

      Yes, it is important to get the text just right or you will get a server error.

  39. nabekor says

    August 11, 2010 at 8:00 pm

    thanks a lot !
    without the modification of the .htaccess file will not be able to upgrade in wp 3

  40. Seth says

    August 16, 2010 at 2:20 pm

    Cheers to you, sir. This works like a champ!

  41. Mat says

    August 17, 2010 at 4:54 pm

    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

  42. Mat says

    August 17, 2010 at 4:58 pm

    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

    • bigw says

      August 17, 2010 at 5:22 pm

      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.

      • Matt H says

        January 7, 2011 at 1:28 am

        This post, and your mini tech support with “Mat”, saved my life. :)

      • cy says

        April 26, 2011 at 3:50 pm

        PHP 5 .htaccess file + backup/restore 1&1 5.0 MySQL DB = updated WP site. :)

        Thank You!

  43. Susan McNaughton says

    August 23, 2010 at 3:32 am

    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.

  44. Jeff says

    August 25, 2010 at 2:56 am

    Thank you very much! I was ready to tear my hair out with the broken auto-updates.

  45. Tolga says

    September 29, 2010 at 3:04 am

    Thanks dude it takes 2 seconds to update..
    You save me a lot of time and a bunch of work to do

  46. Riza says

    October 20, 2010 at 4:51 pm

    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.

  47. Tyler Sand says

    November 8, 2010 at 8:12 pm

    Worked like a charm! Thanks for your help!

    I have WP 3.0.2 running on 1and1 and it is working great!

  48. Gary Tucker says

    November 16, 2010 at 10:42 pm

    Thanks so much for this! It saved me from a headache as I was was getting read to manually upgrade!

  49. NeoJudus says

    December 6, 2010 at 6:24 pm

    Once again, another BIG thank you.

  50. John Wart, jr says

    December 9, 2010 at 11:29 pm

    Thanks! Fixed the problem with failing automatic updates on my blog!

  51. Owen says

    December 15, 2010 at 7:08 am

    This is the post that keeps on giving – add my thanks to the many before for the fix – worked like a charm

  52. JonShakey says

    January 25, 2011 at 3:21 pm

    YOU ROCK! Thanks for solving my vexing problems I’ve had for so long.

  53. NSM says

    January 28, 2011 at 12:50 pm

    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!

    • bigw says

      February 9, 2011 at 11:14 am

      So glad it helped! :)

  54. Anthony says

    February 9, 2011 at 11:39 pm

    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!

  55. Donnie Rosie says

    February 15, 2011 at 5:48 pm

    I found the file under logs but it will not let me edit it?

    • bigw says

      February 22, 2011 at 11:52 am

      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.

  56. Elizabeth says

    March 6, 2011 at 6:25 pm

    Thanks so much! This has been bothering me for ever! It totally worked for me.

  57. Online Marketing says

    March 25, 2011 at 7:37 pm

    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

    • bigw says

      March 25, 2011 at 8:34 pm

      Awesome!

  58. million says

    April 25, 2011 at 9:36 am

    bravo. just updated 1 year old blog install to wordpress 3.1.1 without a hitch. thank you much.

  59. Mark Goodson says

    April 27, 2011 at 9:55 am

    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

  60. Sam Orchard says

    May 15, 2011 at 7:01 am

    Client had this problem with 1and1, and this seems to be the only link that actually had a solution, so thanks

  61. pat says

    May 30, 2011 at 8:04 am

    Thanks a million! This was driving me looney.

  62. Chris Johns says

    June 15, 2011 at 9:46 am

    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.

  63. Dan says

    June 24, 2011 at 6:23 am

    Wow. Thanks a million. It works like a charm.

  64. joe says

    June 30, 2011 at 10:38 pm

    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

  65. Matt says

    July 25, 2011 at 5:24 pm

    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!

  66. JB says

    August 12, 2011 at 1:07 am

    Wow! Thank you soooo much! This worked great… makes our life so much easier! Thanks again, keep up the good work!

  67. Samantha says

    December 5, 2011 at 7:57 pm

    Thanks so much, that worked for me!

Categories

  • bots
  • code
  • ecommerce
  • misc
  • software
  • tips
  • tools
  • wordpress

Do Follow!

Wordpress Podcast Theme

Pages

  • About

Copyright © 2022