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:
- First, navigate to CPanel’s Site Software interface (Home >> Software and Services >> Site Software).
- 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
- Click WordPress.
- Enter the requested information.
- To install WordPress directly into a domain’s document root, leave the installation URL’s path blank.
- Click Install.
- If your hosting provider moderates requests for WordPress installation, click Submit Moderation Request.
- Enter a note for your hosting provider, and click Submit Request.
- 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:
- Each cPanel account user can host only one installation of WordPress in the document root directory.
- The following are examples of document root directories:
- Each directory may only contain one WordPress installation.
- 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).