Installing WordPress

because there are no dummies or complete idiots around here. :-)

I've assumed some basic knowledge of t'internet and web hosting here, including how zip files and FTP work. If anything needs more clarification, leave me a comment.

Why WordPress?

There are lots of blog management systems, and not all of them take effort to install like WordPress does. If you use BlogSpot, for example, you can be up and running in a minute or two. But WordPress more than pays off a little effort to get started:

  • the content stays on your own server and can be backed up, by you, so you know it's always going to be there,
  • the sheer range of stuff you can do with WordPress is unmatched by any other BMS I've seen,
  • the community around WP is a great place to be,
  • and it's free.

So lets get started.

The least you need to know

  • Download the latest version of WordPress from wordpress.org.
  • Edit wp-config-sample.php with your own database details, and save as wp-config.php
  • Upload to your hosting
  • Open /wp-admin/install.php in your browser, and follow the instructions from there.

Sounds easy, yes? Lets look at each stage in detail.

Hosting

You will need some web hosting to run WordPress. The up-to-date minimum requirements are available via WP's site: they're pretty basic, and most web hosting accounts will be adequate. If, for example, you're already running your own ecommerce site, you can almost certainly run a WP blog on the same hosting. If you're not sure, WP provide a handy email to copy to your hosts to check.

If you don't have hosting yet, WP have a number of recommended hosts: they're all in the US, but that largely doesn't matter, and several of them offer one-click WP install. This can be an advantage getting started, but do check that the version you're being offered is the most recent one, and remember you'll have to keep it updated yourself when new releases come out.

Get the software

You can always find the latest release of WordPress via wordpress.org. If you downloaded it a while back but haven't installed it yet, check that there isn't a newer release before you go any further: new releases add security features as well as functionality, so it's important to keep your WP install up to date.

Once downloaded to your computer, you'll need to unzip the software. If this doesn't happen automatically (and it should), there are any number of free utilities to do this for you. Save everything on your PC somewhere where you can find it again easily.

Edit wp-config-sample.php

This is the file that gives WordPress the specific information about your own database installation. You'll need to edit the bits in red (be careful you don't delete any inverted commas by mistake):

define('DB_NAME', 'putyourdbnamehere');    // The name of the database
define('DB_USER', 'usernamehere');     // Your MySQL username
define('DB_PASSWORD', 'yourpasswordhere'); // ...and password
define('DB_HOST', 'localhost');    // 99% chance you won't need to change this value 

The bits after // on each line are comments to help you.

Where do you find this info?

  • Your hosting package may come with a database already set up. Check your control panel or the welcome email you received when you opened your account.
  • You may need to manually set up a database yourself; look on your control panel for something like database or MySQL management.
  • If in doubt, your hosts will be able to give you the information.

In the same file, you'll see three "secret key" phrases: change these to something long and nonsensical.

Use Notepad or another plain text editor, *not* Word, to edit PHP files. Save the edited file as wp-config.php (.php is the file extension: if your text editor tries to call it wp-config.php.txt or similar, override that).

Upload WordPress


You now have a folder on your PC called Wordpress, with all the WP files in it: you need to upload the *contents* of that folder to the directory on your server where you want the blog to appear.

So now you need to decide what you want the URL of your blog to look like.

  • If your blog is part of a larger site, you might want it in its own directory, for example www.domain.com/blog: upload the WP package to that directory.
  • If the entire domain *is* your blog, then upload to the root public HTML directory (which might even be called public_html, depending on your hosts).

:shock: Don't upload the WordPress folder itself, only its contents, or you'll end up with URLs that look like www.domain.com/blog/wordpress.

Once the upload is complete, open [your blog directory]/wp-admin/install.php in your browser, and follow the on-screen instructions. You'll need to tell WordPress the title of your blog and your email address, and then it will install everything for you. At the end of the installation, you'll be given an admin password. This should also be emailed to you, but make a note of it now - WP generates some fantastically random passwords, so I'd make the next thing you do...

Set up your admin user account and password

Click the "users" link from the top right, and then the "admin" user name. You can fill out some important details here including how you want your name to display on your posts (unless you want to be called "admin" forever), and also change your password to something you can remember.

Now would also be a good time to bookmark your admin dashboard: it lives at /wp-admin/ if you forget.


And we're done!

You should now have a plain-vanilla install of WordPress, that looks something like the screen shot to the left. This is now functional, and you can start writing: click "Write" from the top of your admin dashboard to write a post. WordPress comes with one post and one comment "pre-installed"; you probably want to delete these, so go into "Manage" to remove them.

It's worth taking a bit of time to look around the WordPress dashboard at this point: generally, things you might want to use often (Write, Manage, Comments) are the big links on the left, and things you'll use less often are the smaller links on the right. It can look a little daunting at first, but once you get used to what lives where, it's really pretty straightforward.

Next weekend, we'll be looking at making things pretty with WordPress themes.

Share this post:
  • email
  • del.icio.us
  • Facebook
  • FriendFeed
  • LinkedIn
  • StumbleUpon
  • Tumblr
  • Twitter

Posted by Sue on November 18, 2008 in NPG2WP, WordPress.

7 comments to "Installing WordPress"

  1. DBL wrote:

    I changed the names servers as instructed on the day of the email set up. I am having problems importing even following the instructions, is this becuase the domain is still not gone through yet?

    Ta me duck :)

  2. Sue (@blogmum) wrote:

    Looks like Typepad have changed the format of their export file but WP haven't updated the importer to me... Anyway, all sorted: manual imports straight into the database are always an option.

  3. Lynne (@josordoni) wrote:

    Lesson one accomplished. You are such a star...

    (I KNOW.. it has only taken me over a year to get here....)

  4. blogs wrote:

    I must say, I possibly could not concur with you in 100%, however , this is just my feeling, that indeed might be incorrect.

  5. Olivia Miller wrote:

    Does anyone know of a cheap but reliable web hosting company?~."

  6. I would like to say, nice webpage. Im not sure if it has been addressed, however when using Firefox I can never get the entire page to load without refreshing alot of times. Could just be my modem.

  7. there are many webhosting companies these days and most of them are overselling their products`;:

Leave a Reply