Starting with WordPress 2/5- Download, install and connect to database

Another week has passed by so it is time to talk about our next topic within WordPress. Last time we covered the domains, subdomains and databases. Also, how to add a user to it. If you haven’t read it yet, you can check it out here: https://www.designyouneed.com/starting-with-wordpress-domains-subdomains-databases-and-users/

In this post you will learn the next steps:

  • Downloading WordPress
  • Installing WordPress to your domain
  • Connect it to your database
  • Finally, log into your own website

Download WordPress

I recommend to download the latest wordpress program. You can find it easily by typing in “wordpress download” into google and clicking on the first link. Or in case it is not popping up as first, always go for the link that is from wordpress.org.

Press the download button and save the file somewhere on your computer. Make sure you unzip it!

Upload WordPress to domain

You would need a program to connect to the FTP server. I use Total Commander, but you can use similars like Transmit, Free FTP, FileZila.

If you use Total Commander, you can follow the steps here to install WordPress on your storage.

Go to FTP Connect under Net in the menu.

Press New Connection.

Fill the following fields replacing the “designyouneed” with your domain name. Add the user and password that you got from your hosting company.

Make sure that “use passive mode for transfers” is checked.

If you added the data correctly, you should be logged now into your own FTP server.

You will see a bunch of folders there that are required for the website, but don’t freak out, there is no need to know all of them. We are only going to use one for now.

It is time to upload WordPress to the server.

If you read the previous post – this is the time when you get to decide whether you want to work on your main domain or a subdomain. Besides the reasons I listed in the other blog post, you can also decide to use a subdomain, for example if you are afraid to put your site public yet. It is commonly used by web designers to create the website on a subdomain, edit there until it is fully done and signed off by the client. Then move it to the public domain and make it live. 

To upload WordPress on your domain,go to folder public_html. Open WordPress folder on your computer (that you saved an unzipped earlier), select all the files (ctrl+A ) and copy them (F5) to the public_html folder on the FTP server.

There is only one step left to go before you can log into your website, and that is connecting WordPress to your database.

Connecting WordPress to the database

To connect WordPress to your database, you must edit the wp-config-sample file. I suggest to edit the one that is on your computer – not the one on the ftp server.

Open it up with any text editor program. I use Notepad++ because it is a lot clearer to see the details.

In the document you need to add 4 things

  • The database name
  • The database user
  • The datase password 
  • The table prefix

 

All these are highlighted on the screenshot. What you have to do is delete what is between the quotation marks ‘’ .

DO NOT DELETE the quotation marks!

So for instance you change ‘database_name_here’ to those that you created previously (as explained in the first blog post) ‘yourbusiness_db’; the username_here to ‘yourbusinessdb_user’ and you add the password you got from your hosting provider to log into cPanel.

The last thing you need to add is a table_prefix. It CANNOT be empty! By using different table prefixes you can let WordPress know which table to use in the database. The prefix you add here can be anything e.g ‘wp_12345’ or ‘wp_999’. 

Once these are changed, save the file as wp-config instead of wp-config-sample. 

Now copy this file to the public_html folder where you have the rest of the wordpress files.

Now you should have a wp_config and a wp_config_sample files in that folder. Delete the wp_config_sample one.

Log into your website

Now there is one thing left to do, is to do the final setup on your website.

Open a browser and type in your domain – e.g yourbusiness.com.

If you did the previous steps right, you should see the following screen when entering your domain.

Now what is left is to give your site a title – it can be anything you want, either your domain or the name of your business.

You need to give a username – this is the one you will use to log into your WordPress admin account. You can use whatever username you want, it doesn’t have to be the same as the database user.

Give a password. If you want to make sure it is strong enough, use the Password generator – but make sure you store these credentials in a safe place.

Give your email address – where you want to receive any notification (most probably your business email address, but can be your personal one if you prefer).

As for the Search Engine Visibility it is recommended to keep this unchecked until the website is completely done.

Press Install WordPress and when it’s done…tadaaa…you have your website ready.

If you are interested in the following steps – basic setups and how to navigate WordPress, come back next week when we will cover these topics and get closer to your dream website.

I know these steps seem a bit too complicated and you might have faced issues along the way and that is totally fine. If you received an error, try to go back and follow the steps again. If that didn’t help please add your comment below so I can help you.

Let me know what was your biggest struggle while installing WordPress to your own site and what could have helped you complete it more easily.

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

You May Also Like…