How to Install WordPress With cPanel
WordPress®, a web-based content management system, allows users to easily create a website or blog. This document describes how to install WordPress on your cPanel account.
Hosting Providers enable WordPress cPAddon
Install the WordPress cPAddon
We deprecated WordPress (legacy) cPAddon in cPanel & WHM version 64 and disabled it in version 70. cPanel & WHM servers now automatically create new installations with cPAddon’s RPM-based WordPress installation package that we added in cPanel & WHM version 64. To read more information about the cPanel & WHM deprecation schedule, read our cPanel Deprecation Plan.
In order to allow users to install WordPress as a cPAddon, hosting providers must enable the WordPress cPAddon via WHM’s Install cPAddons Site Software interface (WHM >> Home >> cPanel >> Install cPAddons Site Software).
To enable WordPress installations as a cPAddon, perform the following steps:
Navigate to WHM’s Install cPAddons Site Software interface (WHM >> Home >> cPanel >> Install cPAddons Site Software).
Select the WordPress row’s checkbox.
Click Update cPAddon Config.
In cPanel & WHM version 64, we updated the cPAddons feature to use RPMs to install WordPress. When you install the WordPress cPAddon, the cPAddon also installs the WordPress Manager cPanel Plugin. This plugin includes the WordPress Manager interface (cPanel >> Home >> Applications >> WordPress Manager). The WordPress Manager interface allows you to manage the WordPress installations on your cPanel account. We only provide this plugin with the new version of the WordPress cPAddon.
In cPanel & WHM version 66, we deprecated the moderation feature and will remove it in the future. You cannot enable moderation for any cPAddons. Any cPAddons that currently use moderation will continue to function but, if you disable it, you cannot reactivate moderation.
To moderate installations for the WordPress cPAddon, perform the following steps:
Navigate to WHM’s Manage cPAddons Manage cPAddons Site Software interface (WHM >> Home >> cPanel >> Manage cPAddons Site Software).
Select the cPanel::Blogs::WordPress checkbox.
Click Update Moderation.
For the WordPress (legacy) cPAddon, you must not modify or delete the default WordPress plugins and themes that the cPanel installation provides. WordPress will not update properly if you modify any of these files.
For more information about how the system handles cPAddons notifications and permissions, read our Manage cPAddons Site Software documentation.
cPanel User installs WordPress as Site Software
Install WordPress in cPanel
If available, users can easily install WordPress as a cPAddon with cPanel’s Site Software interface (cPanel >> Home >> Software >> Site Software).
To install WordPress as a cPAddon, perform the following steps:
Navigate to cPanel’s Site Software interface (cPanel >> Home >> Software >> 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 text.
Enter the requested information.
- To install WordPress directly into a domain’s document root, leave the installation URL’s path blank. This may overwrite any files already in the document root.
- 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 your web browser to view the location that you entered in Step 4.
- For example, if you installed WordPress in the
http://example.com/wordpress/directory, browse to the
- For example, if you installed WordPress in the
For the WordPress (legacy) cPAddon, you must not modify or delete the default WordPress plugins and themes that the cPanel installation provides. WordPress will not update properly if you modify any of these files. The new RPM-based WordPress cPAddon supports changes to WordPress plugins and themes. But you must contact your hosting provider to verify that they installed the new RPM-based WordPress cPAddon.
If WordPress is not available as a cPAddon, users can ask their hosting provider to add it, or they install WordPress directly themselves. For more information, read the User installs WordPress Manually section below.
In cPanel & WHM version 64, we updated the cPAddons feature to use RPMs to install WordPress. In the latest release of the RPM-based WordPress cPAddon, we released cPanel’s WordPress Manager interface (cPanel >> Home >> Applications >> WordPress Manager) as a cPanel plugin. The WordPress Manager interface allows you to manage the WordPress installations on your cPanel account. The WordPress Manager interface only manages WordPress installations that you create with the RPM-based WordPress cPAddon.
User installs WordPress Manually
Install WordPress Manually
If your hosting provider does not offer WordPress as a cPAddon, you can manually download WordPress from the WordPress website and install it on your site.
For more information, read installation instructions from WordPress and their cPanel-specific instructions on how to create a database for WordPress.
WordPress installation issues
Document root issues
In the following examples, the following statements are true:
example.comrepresents the domain name.
examplerepresents the account name.
subdomainrepresents a subdomain’s directory.
addon.comrepresents an addon domain name.
Due to potential conflicts in the
.htaccess file, do not configure multiple WordPress installations to share a single document root. If you experience difficulties with WordPress, 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.
If the subdirectories are not a document root, cPanel account users can install additional WordPress installations in subdirectories under the domain’s home/example/public_html directory.
The following examples demonstrate installations that use the wordpress subdirectory:
Under the document root for the main domain:
Under a subdomain:
Under an addon domain:
For more information, visit the WordPress website.
Database connection errors
If WordPress returns a database connection error, ensure that the database’s name and password in the
wp-config.php file are identical to the database credentials in your account.
For a document root installation, the
wp-config file exists in the
/home/username/public_html directory, where
username represents the cPanel account name.
To change the database’s username or password, use cPanel’s MySQL Databases interface (cPanel >> Home >> Databases >> MySQL Databases).
To test a username and password combination, run the following command (where
db_user represents the database’s authorized username):
mysql -u db_user -p
After you enter the command, enter the user’s password. The system will respond with a success or failure message.