Before starting this installation one should make sure of the following things.
- You have access to your web server (via shell or FTP)
- You have a text editor
- You have an FTP Client
Make sure your web hosting service provider has provided you all the minimum resources required to run a WordPress.
Assuming that the above-mentioned points are fulfilled I would like you to go through the following steps for completing the installation.
Step 1. Download and unzip the WordPress package from the official website (https://wordpress.org/) or from a well-trusted source.
Step 2. Make a database file on your shared web hosting account which is also called Web Hosting with cPanel, also create a MySQL user will all possible privileges to handle the database.
Step 3. You will see the ‘wp-config’ file with the name wp-config-sample.php, rename it as wp-config.php.
Step 4. Open the renamed ‘config file’ in a text editor read the Editing_wp-config.php and insert your database details into it as instructed, this will help you generate and use your private key password.
Step 5. Move the WordPress files to your desired location on your web server.
If one is willing to use a root domain name then he should place and upload the unzipped WordPress directory directly into the root directory of the webserver. But if WordPress is to be installed on a sub-domain of the main domain then the unzipped WordPress directory should be uploaded into the sub-directory which should be renamed with that sub-domain name.
Following is the example I would like to share to get a more detailed idea of this.
- WordPress installation for the main domain
yourdomain.com is the main domain you want to host with WordPress then upload the unzipped WordPress directory in the root directory of yourdomain.com.
- WordPress installation for sub-domain
If you want to install WordPress at blog.yourdomain.com (sub-domain) then you should rename to the WordPress directory with your sub-domain name (blog) and upload the unzipped WordPress directory into it.
Step 6. In the final step of WordPress installation run the WordPress installation script by accessing wp-admin/install.php by typing in the browser
In the case of main domain WordPress installation, the installation URL should be as follows
In the case of sub-domain (blog) WordPress installation the installation URL should be as follows
Here is the end of your WordPress installation process.