How to Install WordPress

| |

Installing WordPress can seem a daunting task for beginners, but it really isn´t all that difficult. This tutorial will guide you through the process of setting up your WordPress site in four quick and easy steps. By following this guide you´ll not only learn how to install WordPress on your server, but you´ll also understand a little bit more about how WordPress works. Let´s get started!

Tools of the trade

During the set up we´ll use a few tools. Some of these are probably already installed on your computer. Have a look and download what´s missing. This is what you need:

  • Text editor – We´ll use a simple text editor to make notes, temporarily save passwords and usernames and edit WordPress files. Don´t use MS Word for this, as this program adds all kinds of invisible markup to your text. We strongly recommend you to use Notepad++ if you´re on Windows. If you´re on a Mac, have a look at TextWrangler. Both programs are 100% free.
  • FTP Client – An FTP Client is a small prgram that allows you to upload files to your server. We recommend the free open source program FileZilla.
  • Server login details – You´re hosting provider probably sent you an email with all logind etails for your account. We´ll need the login details for the FTP server and the ones for the control panel (cPanel, Plesk or DirectAdmin for example).
  • Password Tools (Optional) – To prevent your blog from being hacked, secure passwords are essential. Don´t use dictionary words, not even combined with letters or numbers. Choose a random string of lettes, numbers and symbols instead. Here´s a password generator you can use. After installing WordPress, you´ll want to store your passwords in a save place. Lastpass is a useful browser plugin that will automatically log you in to the sites you want.

Step 1: Preparation

We´ll start with creating a new folder on our computer where we´ll save all notes, documents and folders that we´ll use during the installation process. I usually create the folder on my desktop and call it wordpress_install. When done, open your text editor and create a new document. Save this as passwords.txt in your newly created folder.

Head over to WordPress.org and download the latest release. When done, unzip the file and save it in the wordpress_install folder. You´ll end up with this:

When we´re finished, simply delete this folder, but don´t forget to store your passwords first!

Step 2: Create the WordPress database

Creating a WordPress database in DirectAdmin

If you´ve never worked with servers, you´re probably not familar with the concept of databases. Don´t worry, it´s really simple to understand. Just think of a database as an Excel spreadsheet, with rows and columns. Within the spreadsheets there are also different worksheets. A database is pretty much the same.

WordPress uses this database to save all your posts, pages, uploads and personal settings. For security reasons WordPress can´t create the database itself, so we´ll have to do it. When done we´ll give the username and password to WordPress.

Databases come in different colors and flavours. WordPress uses a MySQL database.

The general process for creating a WordPress database is pretty similar on different control panels, although the exact steps may be slightly different.

  1. Login to your control panel with the login details your hosting provider sent you
  2. Find the “Create a database” link (other possible names: MySQL Database Wizard or MySQL Manager.)
  3. Create a database
  4. Create a database user and password
  5. Add the user to the database

Copy the database name, user and password to the password.txt file.

Step 3: Edit wp-config.php

Now that our database is set up, we should pass the login details to WordPress. We´ll also configure some additional WordPress settings. Start by opening the file wp-config-sample.php that you´ll find in the WordPress folder.

  • Add your database name, database user and password on the following lines:
    • define('DB_NAME', 'your_databasename');
    • define('DB_USER', 'your_username');
    • define('DB_PASSWORD', 'yourpassword');
  • Go to the WordPress secret key service and replace the secret keys in the wp-config-sample.php file with the keys on this page.
  • In the config file, look up the entry
    $table_prefix  = 'wp_';

    Add a few random numbers and letters after the

    wp_

    prefix and end with an underscore. Example:

    $table_prefix  = 'wp_1a2b34_';

    (Do not copy this example!)

  • Close the wp-config-sample.php file and rename it to wp-config.php

Step 4: Upload and install WordPress

Now that we´ve created a database and provided WordPress with the login details, it´s time to upload all our WordPress files to our server.

  • Open FileZilla and connect to your server with the username and password your hosting provider sent you.
  • Copy all the contents of the wordpress folder to the public_html folder on your server (or if you want to install wordpress in a subdirectory copy them to that folder).
  • Go to http://www.example.com/wp-admin/install.php (replace example.com with your domain) and fill in the site title, username and password. For security reasons it´s better not to use the default “admin” username. Any alternative is fine. Generate a long, random password and note it down in your password.txt file

Updating PHP or Other Services with DirectAdmin Custombuild

Next

22 thoughts on “How to Install WordPress”

  1. We stumbled over here coming from a different website and thought I may as well check things out.
    I like what I see so now i am following you. Look forward
    to looking at your web page repeatedly.

  2. My spouse and I stumbled over here by a different web page and thought I might check things
    out. I like what I see so now i’m following you.
    Look forward to finding out about your web page
    for a second time.

  3. Vous avez oublié un point fondamental. Les erreurs d’orthographe, les erreurs
    de syntaxes, les conversations alambiquées et, bien pires, les erreurs de copie sont des défauts rédhibitoires.
    Toutes choses dont sont truffés vos articles. Pensez à bien relire voire même à faire relire chaque billet par quelques personnes de votre environnement avant sa
    publication. En général, un site web qui présente
    ces défauts ne me aperçoit pas revenir. Bon courage.

  4. Excellent goods from you, man. I have understand your stuff previous to and you’re just too wonderful.
    I really like what you’ve acquired here, certainly like
    what you are saying and the way in which you say it.
    You make it enjoyable and you still take care of
    to keep it wise. I can’t wait to read far more from
    you. This is really a tremendous web site.

  5. I aam really impressed with your writing skills as well aas with the layout on your
    weblog. Is this a paid theme or did you modify it yourself?

    Either way keep up thee nice quality writing, it’s rare to see a
    ice blog like this one nowadays.

  6. I wouldn’t normally be so intrigued by content on this topic but the way you wrote this really grabbed my attention. It is very well thought out and interesting informative content. Thank you for sharing!

  7. Thanks for another informative blog. The place else may just I am getting that
    type of information written in such a perfect means?
    I’ve a mission that I’m simply now working on, and I’ve been at the look out for such info.

  8. I was wondering if you ever considered changing the structure of your site?

    Its very well written; I love what youve got to say.
    But maybe you could a little more in the way of content so people could
    connect with it better. Youve got an awful lot of text for only having 1 or two pictures.
    Maybe you could space it out better?

Leave a Comment