If you are installing WordPress for the first time, the task can seem a little daunting – I know that’s how it felt for me the first time I did it! This guide is aimed at people who are going to install WordPress on their own hosting account. That means you probably have bought some webspace and a domain name and want to run your own WordPress powered site. This guide will have you up and running in no time at all!
First things first – WordPress driven sites rely on two things, 1) the WordPress files and 2) a MySQL database. You need both of these things for the site to work properly.
Usually, I sort the database end first. So, with that in mind, login to PHPMyAdmin. If you are unsure how to do this, then ask your host for a path to it and login details. Most of the time, the path to PHPMyAdmin is something like “www.yourdomain.com/phpmyadmin”
Once logged in you need to create a new database and a user for that database. Click on Databases, then enter a name for the new database (I usually name it something to do with the site we are creating), select utf8_general_ci for the collation, then click Create.
Done, we now have a database for WordPress to use. Now we need to create a user for the database. Click on Privileges. Now click Add a new User. In the next window, enter a username – anything you like here. For host, type localhost – this will work in most cases. For password, use the generate link to ask PHPMyAdmin to generate a strong password for you. Please note this down! Now, scroll down and where you see Global Privileges, click Check All. Now click Create User.
So far, we have created a database and created a user. Please keep to hand your database name, user name and password as we will need them in the next section!
Visit http://wordpress.org/download/ and download the latest version of WordPress. Extract to your desktop and find the file named wp-config-sample.php Rename this file to wp-config.php Now, open this file in Notepad, or any other text editor of your choice. Find these lines of code:
// ** MySQL settings - You can get this info from your web host ** //
/** The name of the database for WordPress */
/** MySQL database username */
/** MySQL database password */
/** MySQL hostname */
Replace the following with the details you saved whilst in PHPMyAdmin:
define('DB_NAME', 'database_name_here'); – replace database_name_here with your database name
define('DB_USER', 'username_here'); – replace username_here with your username
define('DB_PASSWORD', 'password_here'); – replace password_here with your password
If your host does not use localhost, you should also change the line
define('DB_HOST', 'localhost'); If you are unsure about this, leave it for now and try running it with localhost, it may just work!
Finally, we need to scroll down and find these lines:
define('AUTH_KEY', 'put your unique phrase here');
define('SECURE_AUTH_KEY', 'put your unique phrase here');
define('LOGGED_IN_KEY', 'put your unique phrase here');
define('NONCE_KEY', 'put your unique phrase here');
define('AUTH_SALT', 'put your unique phrase here');
define('SECURE_AUTH_SALT', 'put your unique phrase here');
define('LOGGED_IN_SALT', 'put your unique phrase here');
define('NONCE_SALT', 'put your unique phrase here');
These are the security keys that keep you site safe – they are used to check things like cookies are valid, people are logged in etc. Go to this site : https://api.wordpress.org/secret-key/1.1/salt/ and copy/paste your generated keys into the php file.
Just a quick note here – as we are dealing with code, it is important to make sure that you don’t delete things like ‘ or ; or ) or any other symbols – they may be vital!
Once you’ve done this, save the file and close the text editor.
Now, open your FTP client (I use the awesome Filezilla) Login to your site’s webspace and find the directory you wish to install WordPress into. Drag and drop all of the files you extracted on to your desktop earlier on to the server.
Go and have a cup of tea – you deserve a break and this may take a moment or two…
Once all the files are up on the server, visit www.yourdomain.com/wp-admin/install.php – that is presuming you installed WordPress on the root directory. Otherwise go to www.yourdomain.com/directory_name_here/wp-admin/install.php
You’ll see a WordPress install screen here. Enter the details it asks for – one tip here, don’t make your user name admin. Please don’t. Read all about why you shouldn’t, here. Instead, give yourself a username easy for you to remember and use strongpasswordgenerator.com to make you a really hard to guess password.
Submit the form, and you’re pretty much done. In a second or two, you’ll be redirected to a login screen where you can login to WordPress and start creating your site! Awesome!
Well done, if you’ve followed this guide right through! If you feel I’ve missed anything or you ran into trouble, feel free to comment below.