How to Install WordPress

WordPress logo
If you find this tutorial too difficult to follow, you can hire me to install WordPress to suit your specific needs.

WordPress is an incredibly powerful platform and provides you with the ability to create all sorts of websites. Themes allow you to control how your site looks and plugins provide the flexibility and functionality to handle every need.

The difference between and

It should be noted at this point that and are two different products, with different features. This guide is tailored towards those using (self-hosted WordPress). If you’re not sure about what you need, or what the differences are, then read this guide I put together first.


In order to install WordPress, you need to get hosting arranged first, so that you’ve actually got somewhere to install it. Once you’ve arranged that, you can proceed with installation.

If you are in need of hosting, I thoroughly recommend Hostgator; they provide an excellent service and customer service at very reasonable rates. See why I love them so much.

Installing WordPress

WordPress essentially consists of two components; the core fies and a database. In my opinion, it’s best to start with the database.

Setting up the database

Here’s a general guide that should point you in the right direction. Obviously every web host has a slightly different setup and/or control panel, but so long as you can work your way through the steps, you should be fine.

  1. Create a SQL database with a random name. Take note of the name.
  2. Create a database user with a password. Make both the password and the username as random as possible, but take note of them again.
  3. Add the user to the database, giving the user all privileges if asked.

Uploading the files

Now you need to access your server to upload the files, so you can either create an FTP account and use FTP software to log in, or a good host (particularly those that use cPanel, like HostGator do) will provide an online file manager, where you can log in using your browser. Once you’ve logged in to your server:

  1. Go to and download the latest version of the WordPress software.
  2. Upload the zip file to the public_html directory and extract it there, or unzip it on your machine and upload the entire file structure. (Bear in mind that all the files are contained a parent directory labelled wordpress – unless you want your site to be accessible from, then you’ll want to move the contents of the wordpress directory into the public_html so that the site will be accessible from
  3. In the root directory is a file called wp-config-sample.php. Open it up for editing for the next few steps:
  4. Find the section that looks like this:
  1. Enter your database information that you noted down earlier (database, username and password). Unless your host says otherwise, localhost is probably the right setting for the hostname.
  2. Go to and copy the seemingly random code it will display. Paste that into the section of your config file that looks like this – these are your security keys:
  1. Find the following section and replace wp with a random string of letters and numbers. This will help prevent SQL injection attacks:
  1. Save the wp-config-sample.php file and rename it to wp-config.php.
  2. For extra security, move your wp-config.php to your server root (public_html’s parent directory). It is then not accessible to the web, but WordPress can still find it.

Now that your files are all in place, you’re almost there.

  • Go to your new website and you’ll be presented with a dialog asking you to choose a username, password and email address for your admin account.
  • Enter that information, using any username other than ‘admin’.
  • Select whether you want your sites to be searchable by search engines.
  • Save your changes and you’ll be told that you can now log in.

You’re now free to start publishing your content to the web. You’ll find that WordPress has a lot to offer and I hope to share some of that with you on this site (subscribe to the RSS feed or newsletter to get updates). But in the meantime, explore and enjoy creating your content!

6 thoughts on “How to Install WordPress”

  1. awebdev says:

    When I install WP I always set post revisions to off. It tends to blow up the DB size and I don’t recall the last time I switched back posts.

    define(‘WP_POST_REVISIONS’, false );

    A local development environment for WordPress is also a good start right before hosting. You can get comforatable and play around with it, using any one of the wamp packages such as xampp (free), wampdeveloper pro (commercial, but has some cool features), wampserver (free).

    1. I’ve actually used post revisions a few times, but I will say that there are several other definitions I make in my wp-config.php file (which I plan to write a tutorial about in the future), but I didn’t include them in this tutorial because I just wanted to get the absolute essentials together for getting WordPress running on a server.

      A local WordPress install is also a good idea. It’s something I’ve been meaning to do myself for quite some time, but it’s just not been that pressing for me.

      Thanks for your comment!

  2. Jasmine says:

    Great little tutorial. I guess for beginners an even easier option is just to install from Fantastico, which is available in almost all cPanel hosting accounts.

    1. Yes, I suppose there is that option, but I can’t remember whether Fantastico gives you the option to set the database prefix, which I always like to change away from the default wp_, for security reasons. Good point though.

  3. Pedro says:

    So the tutorial was not totally idiot proof, but I got through it! It’s only the beginning…

    1. Haha, well you’ll have to tell me which parts you found hard so that I can make it even more idiot-proof

Leave a Reply