How to Install WordPress in cPanel Manually – 5 Steps and Examples

Many web hosting control panels or cPanel comes with automated WordPress installation script installers, such as Softaculous and Fantastico. If yours does not, you will need to install WordPress in cPanel manually. Below are steps to install WordPress in cPanel manually.

How to install WordPress in cPanel manually

Unlike Softaculous Apps Installer, installing WordPress in cPanel manually involves a few more steps, yet some users prefer this method. 

By manually installing WordPress in cPanel or any web host control panel, you have the choice to create a website or use the software to handle your website development in a safe place since it’s installed locally.

To install WordPress in cPanel manually, you need to download and upload the WordPress files, create a database and install WordPress. 

Let’s get started:

 

#1. Download WordPress

Download the most recent official version of the CMS from the WordPress website. Download the zip file, and save it to your desktop computer.

How to install wordpress in cPanel manually - Download wordpress

Once the zip file has been downloaded, the next step is to upload it to the server directory and extract the entire archive. Note the location of the extracted content, and upload it to your web server.

 

#2. Upload WordPress Install Script to Server

Follow these steps to upload the downloaded WordPress archive to your cPanel account.

Step 1. login to your cPanel account

To login to your cPanel, use the login credentials provided by your hosting provider. Click on the URL (something similar to https://example.com/cpanel), enter the username and the password, then click on the login button. See the screenshot below;

how to install wordpress using softaculous apps installer - Login to cPanel

Step 2. Locate the Files section on the cPanel dashboard

After successful login to the cPanel dashboard, locate the Files section and click on the File Manager.

How to install wordpress in cPanel manually - file manager

Step 3. Open the public_html directory

The public_html directory is your web root, the directory in which you want to store all your websites.

How to install wordpress in cPanel manually - public_html

Step 4. Upload the files inside the downloaded WordPress zip file

How to install wordpress in cPanel manually - upload files

Upload all the files of the WordPress folder, but not the folder itself. After the upload, all WP files and subfolders should reside in the public_html or in a sub-directory you want the website, eg: www.example.com/blog.

For example, if you want the WordPress site in your root domain, eg: www.example.com then upload the files in the public_html, otherwise, upload them inside the sub-directory you want your website on, eg: public_html/blog

Step 5. Extract the Uploaded WordPress archive

After you have extracted the WordPress installation archive, go ahead and delete the zip file from your web server. Right-click on the zip file and hit Delete.

Make sure the extracted files are moved to the public_html directory or to the directory where you want the website. Because WordPress websites require a database to store data, the next stage is to create a database.

 

#3. Creating a MySQL Database and Database User

To create a database for your WordPress site, go back to your cPanel dashboard to locate the cPanel’s MySQL Database Wizard under the Databases section.

How to install wordpress in cPanel manually - create database

Step 1. Give a name to your database

The first step is to create a Database. Name your database. Your hosting account name will prepend it. We’ll use the database name later, so save it for now and then click on the Next Step button.

How to install wordpress in cPanel manually - create database name

Step 2. Enter your database username and password

Next, the wizard will prompt you to create a database user. Enter a username and a password. Ideally, you want the strength meter to turn green and read Very Strong, indicating that the password is secure. Your hosting account name will prepend the username as well.

How to install wordpress in cPanel manually - create database username

Again, we’ll be using these credentials later, so save them for now.

Step 3. Assign User to Database and Assign Permissions

The newly created database user doesn’t have access to the database we created earlier, so we need to assign privileges, which is the final step of the database creation process.

The wizard will prompt you to assign database privileges when you click on the Create User button in the above screenshot. So, check the All Privileges checkbox and click on the Make Changes button.

How to install wordpress in cPanel manually - create database and assign privileges

You’re done creating the database. 

To verify you assign the database user to the correct database correctly, click to view databases. There should be a database and a privileged user assigned to the database.

Then, click on the Return Home button to go back to the cPanel dashboard.

 

#4. Edit the config.php file to complete the WordPress Installation

The database has been created, and the newly created superuser has been assigned to the database. To complete the process, you must edit the wp-config-sample.php file and enter the credentials of the database we just created. Before then, first, locate and rename the wp-config-sample.php file to wp-config.php and save, then open it again.

The lines below are an example, and the information you insert may look different.

How to install wordpress in cPanel manually - edit the WordPress config file

The important pieces of information are:

  • DB_NAME. Database name.
  • DB_USER. Username of the database user.
  • DB_PASSWORD. This is the database user password.
  • DB_HOST. In most cases, the value is localhost

NOTE: Make sure to include the prepended parts when typing the value for DB_NAME and DB_USER. Additionally, bear in mind that for most cPanel hosts, the DB_HOST value is ‘localhost.’

 

#5. Run The WordPress Install Scripts

  • If you uploaded the files to the root directory, (public_html) browse to https://example.com/wp-admin/install.php
  • Or If you uploaded WordPress installation files to a subfolder, browse to the sub-directory, similar to https://example.com/sub-directory/wp-admin/install.php

In each case, once the install scripts are initiated, WordPress will prompt you to select a language and to enter details such as Site Title, your desired WordPress Username and Password, and your Email Address. Please note that the username and password are for this instance of WordPress only. 

Do not enter the same username and password you used for your database user.

How to install wordpress in cPanel manually - select language

Select a prefer language and click on the Continue button.

How to install wordpress in cPanel manually - enter wordpress site information
  • Site Title – This can be changed at a later time.
  • Username – This is the admin username for the site. We highly recommend using something other than ‘admin’ since using it can pose a security risk.
  • Password- A strong password will be automatically generated for you, but you can choose your own. The strength indicator will let you know how secure your password is.
  • Your Email- Login information will be sent to this email address, so make sure it is an email address you have access to.
  • Search Engine Visibility- If you want your website to show up in search engine results, leave this unchecked. If you do not want your site indexed, then you can check this box.

Click the Install WordPress button, and you should be taken to the final screen, which says, “WordPress has been installed. Thank you, and enjoy!“. It will display the username you chose on the previous page and a placeholder for your password. Click the Log In button to log in to the WordPress Admin Dashboard to begin building your site!

How to install wordpress in cPanel manually - success

Congratulations! You’ve successfully installed WordPress in cPanel manually.

 

What's next?

This article has given you a step-by-step guides to install WordPress in cPanel manually. Next is to check out ways to manage and grow your new WordPress website. With WordPress, you’ve got lots of flexibility when it comes to customization.

You can start learning WordPress and ramping up your website with access to thousands of themes, plugins, and features to help you design the perfect site for your needs.

Do not forget to contact us should you need any assistance for your WordPress site.

Open chat
We're Online
Any question? Let's talk