BuycPanel Blog

BuycPanel Blog

Latest news and updates

cPanel and WordPress: Making Things Work

Posted by Alex on 24 04 2017.

Much thanks to the impressive prowess of cPanel, one of, if not the most powerful Linux-based control panels today, you can have parts of your website or your entire website powered by WordPress.

WordPress is just as great as cPanel, but it has a different purpose: it basically provides you with a way to manage your content, whether for a website or a blog. In fact, many cPanel users regard it highly, and believe that it is the most powerful content management systems (CMS) available today.

Now that you have learned the basics of cPanel and WordPress, it might have already piqued your interest. In this tutorial, you will learn more about how to make cPanel and WordPress work.

Prior Must-Knows

There are steps you need to perform before you can have WordPress integrated with your cPanel. First, is to access your cPanel account. From here, look for the “MySQL Database Wizard” option found in the “Database” menu and click on it.

The Step-by-Step Process Prior to Installation

Once you have performed the steps discussed above, you can go ahead with the pre-WordPress-installation process. Here are the steps you should follow:

  1. Database Creation

When you have the MySQL Database Wizard tool up and running, you first have to create a database. This is very easy, as you only have to name your database. Simply give your database a name. However, note that your own hosting account’s name will prepend the actual name of the database.

Once you have clicked on the “Next Step” button, it completes the database creation. The resulting database will have a format similar to this: “myusername_demowp,” where “myusername” refers to the name you chose for the database.

  1. Database User Creation

Next, you would have to create a database user as well as assign a password for that user. Take note of these credentials, as you will make use of them later on. Once you have hit the “Create User” option, the result will look something like this: “myusername_ dbuser,” wherein the first portion refers to the name of the user.

  1. Add the User to the Database

Here, you just need to assign a database and privileges to the user. In the event you want the user to have access to everything, just mark the “All Privileges” checkbox. Hit the “Next Step” button.

  1. Final Steps

The last step, the wizard will notify you that it has already added the user to the database. This means you successfully completed all three previous steps.

Editing the Config File of Your WordPress

Use a text editor to open the “wp-config-sample.php” file. You would have to complete four different details here. To give you an idea of what to expect, here is an example:

  • // ** MySQL settings – You can get this info from your web host ** //

/** The name of the database for WordPress */

define(‘DB_NAME’, myusername_demowp’);


/** MySQL database username */

define(‘DB_USER’, myusername_dbuser’);


/** MySQL database password */

define(‘DB_PASSWORD’, ‘abc.123.!@#’);


/** MySQL hostname */

define(‘DB_HOST’, ‘localhost’);

Make sure you save this as wp-config.php file. And from here on, you can proceed with the installation.