Support » Fixing WordPress » Your Upgrade Method

  • I was wondering.

    When upgrading, what happens if someone tried to view your site?

    Also, would it be a good idea to set up a temp index file that would say that you were upgrading until such times as you were upgraded?

    What method do you use?


Viewing 15 replies - 1 through 15 (of 15 total)
  • (my method before):

    (1) backup wp files from the server (FTP),
    (2) backup MySQL database,
    (3) delete all files, except for wp-content dir, .htaccess, wp-config.php, and any other files I may have modified,
    (4) upload via FTP new wordpress files and folders,
    (5) run upgrade.php script,
    (6) check if the blog is OK, done:)

    (if you use a lot of plugins, a good idea might be first to disable them before upgrade and then re-enable them after that)


    (my method now):

    (1) backup wp files from the server (copy via SSH),
    (2) backup MySQL database (wp-db-backup plugin),
    (3) delete all files, except for wp-content dir, .htaccess, wp-config.php, and any other files I may have modified (delete via SSH),
    (4) download latest WP version directly on server (via SSH) and copy them to my wordpress install dir,
    (5) run upgrade.php script,
    (6) check if all is OK, done:)

    My new method is faster, and more secure.

    Basically, that’s it…

    My $ 0.02, 🙂

    PS I do not post a temp file, saying ‘We upgrade, please wait’ 😉 — upgrade via SSH can take just less than a minute, so why bother… Delete old files, copy new ones, run upgrade.php, that’s all:)

    I am not SSH savvy yet, but thank you for responding.

    I set up a temp file and use a redirect from CPanel.

    My web host provides automatic upgrade, it backs up the whole blog as it is into a new temp domain in case something goes wrong. After it finishes upgrading, about 5 min, I just replace new plug-in folder and theme folder with old stuff. My blog looks as good as it was before. No problems. And it took me less then 10 min. the best hosting I found on the internet.


    [affiliate link and sig moderated – see forum rules!]

    I ended up doing a temp file while seemed to work well for me.


    I am not SSH savvy, too… 🙂

    You basically need to know three commands:

    cd (change directory, to move between remote dirs)
    cp -r (copy)
    rm -rf (delete)

    That’s all 🙂

    “cp” is used to backup your WordPress files before starting an upgrade; “rm” is used to delete old WP files; “cd” you use to move between different folders…

    To download the new copy of WordPress, you use “wget” and then “tar -xzvf” to extract files:)

    I’d like to write a short tutorial on that, maybe these days:)

    The good thing is that when using SSH, things are much faster – you do not download files locally, everything is done on the server, so no delays:)

    And SSH looks a bit like good ol’ DOS 😉

    I would need a tutorial — even more than what you just wrote — to give SSH a try for the first time. I know my host offers it, but I don’t even know what program to launch to do it, or if it can be done in the browser.

    Been using FTP for years.

    Thanks for the tips tho

    Well, while waiting for my soon-to-be tutorial, I can give you just some ‘directions’ 😉

    You need PuTTY – get it here.

    Launch it, use data provided by your hosting to connect via SSH:

    Enter the host name (or IP address), OPEN session, you’ll see a black screen, then type your username to connect to your account, then type password. That’s it:)

    Now type ‘cd’ to see list of directories. Type ‘cd name-of-dir’ to enter a certain dir. Type ‘cd ..’ to go level up. Type just ‘cd’ to go to the root of your account:)

    Only other two commands I use are ‘cp’ and ‘rm’ to backup and delete files for my WP upgrades.

    There are lots of tutorials on how to use SSH in Unix, though. Just search! 🙂

    There is also very good documentation at, as to how you could perform upgrade using SSH. Check it out!

    Be careful, you can delete everything in a second on your server account using “rm -rf”, so practice first (in a test dir on the server for example) and learn basic syntax of SSH commands – copy, delete, move from dir to dir, etc. 🙂

    PS There’s also Midnight Commander, you can launch it by typing ‘mc’, it’s like Norton Commander in DOS, via MC you do everything and you do not need to know the commands by memory 😉

    I use Subversion. I used to use SSH with a temporary redirect to a file which stated that I was updating. But now I just bash $ svn up and hit upgrade.php and the job’s done.

    When doing SSH, I feel like I have more control and know every step what it does:) Plus I do the manual backups before running the upgrade (copy files, backup database). I could make a batch script, of course (all SSH commands saved in a text file, and then run it… but then, where would be the fun of it… the manual upgrade?;-)

    Yeah, I should probably do all that “turn off plugins” and “download your database” stuff. But then, where would be the fun in doing it the lazy way? :o)


    I use not a lot of plugins, so I do not disable them lately… Just backup of MySQL databse, backups of the WP files, delete old ones, copy new ones, run upgrade.php:)





    I follow the instructions. That’s what they’re for. If you do that, chances are you don’t need to worry all that other crap.

    99% of the problems people have with upgrades stems from a lack of following simple instructions. No read – no work.

    I follow the instructions, too. I have only 3-4 plugins (incl. Akismet). If one of them will hapen to be incompatible with a newer version of WP, I’ll simply rename the dir /plugins/ to something else and then will try to enable them one by one:)

    (Plus, with the amount of spam I get lately, I don’t think it’s a good idea to disable Akismet even for 5 mins;-)

    Apart from the plugins, I always follow the basic principles when upgrading WP: backup files, backup database, delete old files, put new ones, run upgrade.php, that’s all:)


Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘Your Upgrade Method’ is closed to new replies.