Tuesday, May 27th, 2008

Which Files and Folders Should You Replace When Upgrading Your WordPress Blog?

Ayub, a friend from Uganda, wrote to me yesterday for help with his blog:

Please come to my rescue. I tried upgrading my blog by deleting the files and uploading new WP files and folders. It upgraded, Yes BUT now, It has dropped the Side bar to the bottom of the page.

I checked his blog with all the browsers I have installed on my MacBook, but I didn’t find this problem he reported. I even used Browsershots to test the site in 63 different browser / OS combinations — but I didn’t find any problem either.

So I supposed he must have fixed it himself.

However, I found that all his images were missing! That made me immediately suspect he had deleted them while upgrading his blog. I asked him, and this is what he wrote back:

Thanks for the quick turn around. That 2nd last paragraph [referring to my mail to him] about not removing the WP-Content folder made me smile. I realy felt like I was talking to you face to face. It is so like your usual statement :) Thanks.

—- snip — snip —

Yes, I deleted everything, including the WP-Content folder.

Wow, I thought as much!

So which directories (aka folders) and files should you actually replace when upgrading WordPress? Which ones should you leave alone?

The short answer is: replace everything, except one file (wp-config.php) and one folder (wp-content). I also suggest you actually delete all the other files and folders and upload the new ones, instead of simply overwriting them.

And now for the long answer…

WordPress is a database-driven content management system. Mouthful eh? That simply means all the text that you sweat to write are not stored within the WordPress files you install.

Rather, they are stored in the database. Remember you had to supply some MySQL database name, username and password at the time you were installing WordPress? Right — that’s where all your articles you write are stored.

However, all your media files (photos, audio, video, pdf files, etc) that you upload when writing articles are stored (by default) in a folder called uploads in the wp-content folder. Your WordPress theme and all plugins your’re using are also stored in this same wp-content folder.

So unless you want to totally clear your blog and start over on a fresh, blank note, leave this directly alone when you’re upgrading WordPress.

Also, the information that allows WordPress to connect to your database to display your articles are stored in the file named wp-config.php. Don’t delete this file as well.

And most importantly, always, always, ALWAYS… do a complete backup of your WordPress blog before starting any upgrade.

By “complete backup” I mean backup your database and all WordPress files and directories — including wp-content and wp-config.php. This way, you can easily restore your WordPress blog to its previous state in case something goes wrong during the upgrade.

If you’ve got a question about upgrading your WordPress blog, I’m always here to help. Leave a comment below, shoot me an e-mail, call, text, IM or leave a voicemail, or or head over to the Chat Room for a live discussion.

Saturday, November 17th, 2007

WordPress Tools And Tricks For The Rest Of Us

WordPress is a free, web-based software (a.k.a. content management system) for building and managing personal and small business weblogs and websites.

This software is so powerful, yet so easy to use, that for the the very first time in my life, I can comfortably call myself an expert in something (besides sleeping, that is).

Over the past two years that I have been using WordPress, I have collected a number of really great (and free), ready-to-use plugins or addons that can force WordPress to willingly accept practically any task thrown at it. I’ve also discovered some simple hacks to tame WordPress and avoid some of its nuances.

Here I share them with you.

WordPress Tutorials For The Complete Newbie

Somehow you bought into my ramblings about WordPress being the best thing that ever happened since the day Al Gore invented the Internet. Great decision. But there’s so much noise out there… and you just don’t know where to begin. This is where to begin, when you don’t know where to begin.

WordPress Tools For Super Lazy Folks (Like Me)

You love WordPress. So do I. But you’re lazy. Ehhh… that’s ok. So am I. Let me share with you a collection of WordPress plugins that can help you manage your WordPress powered website… without changing your lifestyle :-)

External WordPress Resources You Probably Don’t Know Of

Behind every great tutorial site, is… eh… whatever! I think I’m feeling sleepy now. But here are links to other WordPress tutorials and resources that might just be interesting to you. These websites helped me in the past, but I give no guarantee that they’ll help you too.

Who Is George Appiah?

a picture named George AppiahI knew you'd ask! George Appiah is a traveling technology consultant helping individuals, small businesses and non-profits leverage technology to hack poverty out of the world. Not enough for you? Find out more

Signup For George Appiah's Weekly Newsletter

Looking for more? Sign up for my free weekly newsletter packed with even more practical guides and great tips to help you hack your way through everyday challenges and live a more meaningful life.

If you enjoy the free practical guides available on this site, I bet you're going to enjoy the free newsletter as well. And it's so easy to signup! Just...


Enter Your Email Address
Enter Your First Name

NOTE: I *hate* spam as much as you do... perhaps even more. I promise to keep your email address confidential and I will NEVER share it with anyone. And you can easily unsubscribe at any time.

Search GeorgeAppiah.com
 
Travel Business