How to install WordPress using CPanel Manually from the Scratch!

Install WordPress Manually on CPanel


ordPress Installation Using CPanel: WordPress is one of the most commonly using CMS in the websites. WordPress has the compatibility to work with MySQL DB & Linux OS. In this tutorial, we added the information about installing WordPress using CPanel manually. Follow the instruction to do:

Jump To:

What is CPanel?

CPanel is the web hosting server account and you are the administer. Most of the CPanel comes with WordPress as a default option otherwise automatic scripts such as Softaculous and Fantastico help you install WordPress. If your CPanel misses WordPress, then follow the below instructions to install WordPress manually.

Manually Install WordPress using CPanel:

Below are the essential steps you need to follow without skipping any step:

WordPress Download:

You need to download the latest version of WordPress from their official website.

Download WordPress
Download WordPress

Once you downloaded the file. You need to upload the zip file into the CPanel. Follow the next steps.

Upload WordPress in CPanel:

Now, you need to open your CPanel account. If you are unable to find the CPanel login, kindly open the link ““. Replace “” with your owned domain. Now logging into your account. Go to the “File Manager” option.

File Manager CPanel
File Manager CPanel

You can find the File Manager option under the”Files” section.

File Manager options
File Manager options

You have two options available to install WordPress and they are:

  • Install WordPress in the public domain root directory
  • Install WordPress in a custom directory
Check this too  How To Install WordPress With LAMP Stack on Ubuntu 18.04 DigitalOcean Server!

Install WordPress in the public domain root directory:

You can install WordPress in the Domain Root Directory ( To do, you need to upload the WordPress files in the public root domain directory.

Domain Root Directory
Domain Root Directory

Install WordPress in a custom directory:

You can install WordPress in a custom directory. Simply you need to create a new directory (e.g: Then upload the WordPress files inside the “blog” directory.

Create blog directory
Create a blog directory

Once you chose the location and upload the WordPress files. Extract the zip file. Now you need to delete the file from your server.

Now you need to initiate the WordPress installation process. Follow the instructions:

  • Open your domain in new tab “

The WordPress installation contains the following steps:

  • Create MySQL DB
  • Create MySQL DB Users & Credentials
  • A DB host
  • Run multiple websites in a single DB using a table prefix
  • Create unique salt keys

Create MySQL DB:

Now you need to access the MySQL Database Wizard to create the new DB.

MySQL DB Wizard
MySQL DB Wizard
  • Provide the name to your new database.
Creating New DB
Creating New DB

Click the Next Step button to create the Database. Follow the next instructions.

Create DB Users:

In the next step, you need to create the user for the database. Enter the username, password and click the “Create User” button to create the new users to the database.

Creating User
Creating User

Assigning Permissions:

The created new user does not have any access to your website database. You need to assign and give permission to the user to handle WordPress DB.

Find the Add User To Database section of the page. Under the User drop-down menu, select your newly created user. Choose your newly created database under the Database drop-down menu and click Add. Now you need to assign the permissions of the user to the database. You need to check in the “All Privileges” option. Now, click the “Make Changes” option to complete the process.

Check this too  How To Access MYSQL Database Error Log Files Server Side

You can verify the process by accessing the newly created DB with authorized users. The user has been added to the list of DB authorized users. Now you need to go back to the WordPress installation URL.

WordPress Configuration:

Yay, you have successfully completed creating DB and authorized users. Now you need to complete the WordPress Configuration. To complete the process, find the file “wp-config-sample.php or wp-config.php” and edit the file with a text editor. You need to add the instructions about your newly created Database and newly created authorized user in the wp-config.php file and save the file.

// ** MySQL settings - You can get this info from your web host ** //
/** The name of the database for WordPress */
define('DB_NAME', 'mydomain_new_wp_db');

/** MySQL database username */
define('DB_USER', 'adminsam');
/** MySQL database password */
define('DB_PASSWORD', 'Created*Password');
/** MySQL hostname */
define('DB_HOST', 'localhost');
  • You need to replace the mydomain_new_wp_db with the DB name of your website
  • You need to replace the adminsam with the username of your DB
  • You need to replace the Created*Password with the password of your DB
  • You don’t need to replace the option DB_HOST option.

Once you do the changes, then save the file. Follow the next instruction.

WordPress Unique Keys & Salts:

In this step, you need to enter your WordPress unique keys and salts. You need to add the unique keys and salts information on the wp-config.php file. Create unique keys and salts from the official WordPress website:

Unique and Salts keys
Unique and Salts keys

Copy those codes and paste the codes in the wp-config.php file. Now save the file and close it. You are all set to go.

Check this too  How To Reset the Firewall on Ubuntu 16.04 & 18.04 LTS Server

Test Your WordPress:

You can test whether WordPress is successfully installed or not! open the following link in the new tab” (Replace with your own domain). You will see the WordPress DB connection configuration wizard as we showed in the below image, which means you have successfully installed the WordPress on your website.

WP DB Connection
WP DB Connection

Completing WordPress Installation:

After connecting the WordPress, you need to finalize the installation process.

WordPress Installation Finalisation
WordPress Installation Finalisation

Enter the required information and click the “Install WordPress” button to complete the installation process. You can access the WordPress dashboard using the following URL ““.

WordPress Dashboard
WordPress Dashboard


That’s it. This is how you manually install the WordPress CMS using CPanel. Kindly follow all the instructions that we mentioned above. If you have any queries related to this topic and then feel free to comment us below.

Leave a Reply

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

Written by Jim Moriarty

Hello, Am Jim from Arizona, Big Fan of Holmes. Server-side handler, Network Engineer & currently working for Tec Robust. I write a server-based article.

Contact me:
tecrobust [@]
Sub: Message to Jim.

Restart Apache Server on CentOS

How to Start, Stop & Restart Apache on CentOS with Commands

Ubuntu 20.04 LTS Codename

Ubuntu 20.04 LTS Codename Revealed by Canonical!!