Blogging How To's Learning News Web Development Wordpress

How to install WordPress on cPanel?

Written by Minakshi

Install WordPress On cPanel

In the previous blog post, we learned how to set up WordPress on localhost. Now we shall look into install WordPress on cPanel. Let us proceed. First of all, what is cPanel?

Basically, cPanel is a web based hosting control panel provided by many hosting providers to website owners. It allows them to manage their websites from a web based interface. This program gives us a graphical interface from which they can control their portion of the UNIX server.

It is possible to install WordPress manually without enabling cPAddon function for it, or going through these steps. You can still download and install WordPress from the WordPress website. To get more information, read the installation instructions on the WordPress website.

But it is quite easy to install WordPress as a cPAddon with Cpanel’s Site Software interface, through the following steps:

  1. First, navigate to CPanel’s Site Software interface (Home >> Software and Services >> Site Software).
  2. To receive a notice via email when the hosting provider installs WordPress, click here after the You currently are set to receive a notice when updates for your installs are available
  3. Click WordPress.
  4. Enter the requested information.
  5. To install WordPress directly into a domain’s document root, leave the installation URL’s path blank.
  6. Click Install.
  7. If your hosting provider moderates requests for WordPress installation, click Submit Moderation Request.
  8. Enter a note for your hosting provider, and click Submit Request.
  9. When the WordPress installation finishes, use the web browser to view the location which you entered in Fourth Step.

If WordPress is not available as a cPAddon, then you can ask their hosting provider to add it, or you can install WordPress directly themselves.

WordPress installation issues

Due to potential conflicts in the .htaccess file, it is wise not to configure multiple WordPress installations to share a single document root.

If you experience difficulties with WordPress, you can check the following requirements:

  1. Each cPanel account user can host only one installation of WordPress in the document root directory.
  2. The following are examples of document root directories:

š /home/example/public_html/

š /home/example/public_html/addon.com

š /home/example/public_html/subdomain

  1. Each directory may only contain one WordPress installation.
  2. In case the subdirectories are not a document root, and cPanel account users are able to install additional WordPress installations in subdirectories under the domain’shome/example/public_html directory.

The following examples demonstrate the installations that use the WordPress subdirectory:

  • Under the document root of the main domain: /home/example/public_html/wordpress
  • By a subdomain: /home/example/public_html/subdomain/wordpress
  • Under an addon domain: /home/example/public_html/com/wordpress

Database connection errors

In case WordPress returns a database connection error. So, it is important to ensure that the database’s name and password in the wp-config.php the file is identical to the database details in your account.

For a document root installation, you can find the wp-config file in the /home/username/public_htmldirectory. The username represents the cPanel account name.

To change the database’s username or password, and use cPanel’s MySQL Databases interface (cPanel >> MySQL >> Databases).

I hope you liked my blog “How to install WordPress on cPanel?”. So, please give your feedback and suggestions. And also if you have any query you can ask it on our Discussion Forum.

 

About the author

Minakshi

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.