If you want to transfer a WordPress website that is already created to a hosting, the procedure will be the same as for any standard website transfer. In this article, we will go through installing a WordPress website from scratch.
Preparation
1. Download WordPress.
You can download it at the official website.
2. Purchase hosting service
We assume you already have one (If that is not the case, here are some useful articles on how to choose the company and the service).
3. Create a database on your hosting account.
Create an empty database on your hosting and memorize (or write down/copy and paste) its full name, username, and password. This article will brief you in on creating a database.
Note! If the hosting company has automatically created a database for you, there is no need in creating a new one. Feel free to use the automatically created one.
4. Define the root directory.
Ask the hosting company, where should your website files be stored or check out this article on how to find it out yourself.
Installing WordPress to your hosting
1. Clearing root folder on your hosting
Remove everything from the location, which your website will be uploaded to. Usually, after purchasing a hosting your domain will resolve to a parking page with your hosting company’s logo, welcome message, and some adds. It will no longer be displayed after you remove all the content from the root folder. FTP-client (link here) or file managers in the hosting control panel are used to view, upload or delete files on the server.
Note! Make sure you know the correct folder where your website files are located. If you remove system folders, your hosting account will stop functioning correctly.
2. Unzipping the archive
Unzip the installation file downloaded from the official website (a zip file) on your computer. Locate the wp-config-sample.php file and rename it to wp-config.php.
3. Change the configuration
Open the file (with a text editor) and enter the database settings that you have previously created (database name, username, and password). Values to be changed are marked in red, and the ones that are to remain unchanged in span style="color: #339966;">green:
// ** MySQL settings- You can get this info from your web host** //
/** The name of the database for WordPress*/
define('DB_NAME', 'database_name_here');
/** MySQL database username */
define('DB_USER', 'username_here');
/** MySQL database password */
define('DB_PASSWORD', 'password_here');
/** MySQL hostname */
define('DB_HOST', 'localhost');
/** Database Charset to use in creating database tables. */
define('DB_CHARSET', 'utf8');
/** The Database Collate type. Don't change this if in doubt.*/
define('DB_COLLATE', '');
Make sure to save the changes once you’re done.
4. Upload the files to hosting
Use an FTP-client or the hosting company’s file manager to upload the files from the WordPress folder on your PC to the hosting (the location you have previously specified with your hosting company at the preparation stage). It is important to upload all the files and folders from the WordPress folder, not the WordPress folder itself. Here is how the location on your hosting should look like after all the files are uploaded:
5. Installing WordPress
Accessing your website using a browser should display a WordPress installation page. If that is not the case, enter the following in your browser address bar http://yoursite.com/wp-admin/install.php
where yoursite.com is the domain name for your website.
Fill in all the fields on the installation page according to the guidelines. Click “Install” and WordPress will be installed in a matter of seconds.
A few important mentions. Do not use “administrator”, “admin” or any similar as a username and make sure to create a complicated and secure password. You can check out some more security tips for WordPress websites in this article.
Note! Some hosting companies have this CMS installation file and you can skip the steps on downloading it from the official website and uploading it to hosting via FTP. In such a case, you will start by launching the WordPress installation from your account at your hosting.
This is a manual for virtual hosting only.
