This will cover a step by step guide on how to install WordPress on a hosting account you own. The screenshots used are in a Bluehost cPanel, but the steps should be identical in other cPanel based hosts like Hostmonster, Justhost, and Fastdomain.
- Download WordPress
- Upload WordPress to your hosting account
- Extract the .zip file
- Create a database and sql user
- Run the installer
- Create a login for your site
WordPress is a script that will run on your hosting account and connect to a database on your hosting account. We’ll start by downloading WordPress. You can get the latest version by going to wordpress.org/download and clicking Download. This will download a zip file to your computer.
Now that you have a copy of the WordPress core files on your computer, we’ll want to upload that to your hosting account. You can use FTP or cPanel’s File Manager for that. For this tutorial we will be using cPanel’s File Manager. You can find that in your hosting account’s cPanel (Control Panel)
And upload the .zip file to the folder where your website is located. If it’s the primary domain, that will be /public_html
If you are unsure which folder your domain is pointed at, this guide may help.
cPanel’s File Manager can unzip .zip files for you. When you do this, the files will all be in a folder called /wordpress. Move everything out of the /wordpress one folder up, to the folder where your domain is pointed.
Now go back to your hosting account’s control panel, and go to the My SQL DBs section
Create a database that will be used only for this WordPress install. You can call it whatever you like, but it’s a good idea to give it a name relating to the site so that you know which database is which if you ever have to migrate your site. No one will see the database name but you. To create it, just scroll down to the “Create a New Database” section, name the database and click “Create Database”. The page will then reload. Copy the database name to a notepad or other window on your computer, we will be using it later.
Now let’s make a database user. This won’t be a user to log into your site, this will just be a way for your WordPress install to have access to the database. Most people pick the same or similar name for the database user as they do for the database, to make it simple and easy to keep track of. Copy the sql username and password to a notepad or other window on your computer we will use these later on as well. You will need it for the install later on. Also keep in mind you won’t need to remember this password and it’s very important that the password is very secure so it’s a good idea to use the “Password Generator” here.
Now that you have made a database and a database user for this WordPress install, we will want to assign that user to the database. You can do that by scrolling down to the “Add a User to a Database” Section. Select the user and database you just made from the dropdown menus and click “Add”.
This will take you to a new page with more options. Click the “ALL PRIVILEGES” checkbox which will check all the other checkboxes for you,
and then at the bottom of that page, save your settings by clicking the Make Changes button.
Now you’ve made a database and sql user for your site. You’re almost done, let’s finish up.
Navigate to your website’s url in a browser. You should see the WordPress install page that looks like this:
Click Continue and you’ll be taken to a new page that will remind you we need the database name, user, and password info we saved from before. Click the button at the bottom of this page to continue.
You will then be asked to enter the information we saved from before. Under database host, leave it to at the default setting, localhost, and for database prefix, you can leave that as the default setting as well. Once that’s been filled in, click Submit at the bottom of the page, and “Run the install” on the next page. (If you instead see an “Error Establishing a Database Connection” page, double check your sql username, user, and password).
Once the database information has been entered you should be redirected to a page that looks like this where you can setup a login for your site. You will be asked to enter some basic site information and your email address. Fill out the information and click “Install WordPress” at the bottom of the page.