How to install WordPress in cPanel
WordPress can be installed in cPanel in three ways: with WP Toolkit, with Softaculous if your host has added it, or by hand with a database and the WordPress files. This guide covers each method, installs on a domain, subdomain or folder, and the errors that usually appear first.
Short answer
To install WordPress in cPanel, open Domains » WP Toolkit and click Install WordPress. Pick the domain under Installation path (leave the folder empty for the domain itself), enter a Website title and the administrator’s username, password and email, then click Install. Without WP Toolkit, use Softaculous if your host provides it, or install by hand: create a database, upload WordPress and run its installer.
- Where
- cPanel » Domains » WP Toolkit
- You need
- A cPanel login, a domain on the account and a free database in your package
- Applies to
- cPanel & WHM 134 (LTS) to 138, Jupiter theme
- Other ways
- Softaculous (if your host adds it) · manual install
Choose a method
| Method | Where to find it | What it does |
|---|---|---|
| WP Toolkit | Domains » WP Toolkit | Creates the database, installs WordPress and then helps with updates, plugins and themes. It ships with cPanel, but your host can switch it off. |
| Softaculous | Usually Software » Softaculous Apps Installer | A third-party installer that your host licenses and adds. It installs WordPress and many other applications. |
| Manual install | Databases and Files » File Manager | You create the database, upload the files and run the WordPress installer yourself. It works on every cPanel account. |
Use WP Toolkit when your cPanel has it. cPanel’s documentation describes WP Toolkit first and points to a manual install only when the host does not offer WordPress.
Before you install
- Install on the final domain. WordPress stores the site address it was installed with, and the site can only be opened by name once the domain points to the server.
- Check that the domain has a valid certificate in Security » SSL/TLS Status, and install on
https://so the address does not have to change later. - Install into an empty folder. cPanel allows one WordPress site per document root, because two installs in the same folder conflict over the same
.htaccessfile. - WordPress recommends PHP 8.3 or later and MySQL 8.0 or later, or MariaDB 10.11 or later. You can check the PHP version of the domain in Software » MultiPHP Manager.
- WP Toolkit needs a PHP
memory_limitof at least 128 MB. If an install fails for lack of memory, ask your host.
Guide: install an SSL certificate Guide: change the PHP version
Install with WP Toolkit
- Log in to cPanel.
- In the Domains section, click WP Toolkit.
- Click Install WordPress. When the account already has WordPress sites, the button above the list may read Install.
- Under Installation path, choose the domain or subdomain. Leave the folder box empty to install on the domain itself, or type a folder name such as
blog. - Enter the Website title, pick the Website language and keep the latest Version. Leave Plugin/theme set empty unless you want a ready-made set.
- Under WordPress Administrator, check the Username, Password and Email that WP Toolkit suggests. Use your own email address and note the password.
- Leave the Database and Automatic Update Settings sections as they are unless you have a reason to change them, then click Install.
When WP Toolkit has finished, the new site appears in the WP Toolkit list. Click Log in next to it to open the WordPress dashboard. WP Toolkit creates the database and database user itself, so there is nothing to set up in Databases first.
NoteIf WP Toolkit is not in the Domains section, your host has not enabled the WP Management feature for your account in WHM » Feature Manager, or has removed WP Toolkit from the server. Some tools belong to WP Toolkit Deluxe, which the host enables separately.
Install with Softaculous
- Open Softaculous Apps Installer, usually in the Software section of cPanel. Some hosts place it elsewhere or give it their own name.
- Click WordPress, then Install Now.
- Under Choose Installation URL, pick
https://and the domain. - Clear the In Directory field to install on the domain itself, or type a folder name such as
blog. - Fill in the site name and the admin username, password and email.
- Click Install at the bottom of the form and wait for the confirmation.
If the In Directory field still holds a folder name such as wp, Softaculous installs WordPress at example.com/wp instead of on the domain itself. Check the field before you click Install.
NoteSoftaculous is a third-party add-on, not part of cPanel. Its screens and labels can differ between Softaculous versions and hosts.
Install WordPress by hand
- Download WordPress as a
.zipfile fromhttps://wordpress.org/download/. - In cPanel, open Databases » Database Wizard, create a database and a user, and give the user ALL PRIVILEGES. Write down the full names, prefix included, and the password.
- Open Files » File Manager and go to the domain’s document root,
public_htmlfor the main domain. - Click Upload, choose the WordPress zip file and wait until the upload is complete, then go back to the folder.
- Select the zip file, click Extract and confirm. The files appear in a new folder named
wordpress. - Open the
wordpressfolder, click Select All, click Move and enter the document root, for example/public_html. - Delete the empty
wordpressfolder and the zip file. - Open your domain in a browser. The WordPress installer starts: choose a language, click Continue, then Let’s go!.
- Enter the Database Name, Username and Password from step 2, keep
localhostas Database Host andwp_as Table Prefix, and click Submit. - Click Run the installation, enter the Site Title and the administrator’s Username, Password and Your Email, and click Install WordPress.
NoteIf the WordPress installer cannot write wp-config.php itself, it shows the text of the file instead. Create wp-config.php in the document root with File Manager, paste the text, save it and continue the installation.
Install on a subdomain or in a folder
To run WordPress on a subdomain such as blog.example.com, create the subdomain first. Then choose it under Installation path in WP Toolkit or Choose Installation URL in Softaculous. The subdomain has its own document root, so it can hold its own WordPress site.
To run WordPress in a folder such as example.com/blog, type the folder name in the installation path. cPanel’s documentation allows extra WordPress sites in sub-folders as long as the folder is not itself a document root, for example /home/example/public_html/blog.
For a manual install on a subdomain, an extra domain or a folder, upload and extract the files in that directory instead of public_html. Domains » Domains shows the document root of every domain on the account.
Common problems
- WordPress shows “Error establishing a database connection”.
- The database name, user or password in
wp-config.phpdoes not match the database, often because the cPanel prefix is missing, or the user was never added to the database. Compare the values with Databases » Manage My Databases. - The domain still shows the old page after a manual install.
- The files are probably still in the
wordpressfolder from the zip, or in another domain’s document root. Move them into the right document root, which Domains » Domains shows, and remove the old start page left there. - Uploading a theme or plugin fails with “The uploaded file exceeds the upload_max_filesize directive in php.ini.”
- PHP limits the size of uploads. Raise
upload_max_filesizeandpost_max_sizefor the domain in Software » MultiPHP INI Editor, or upload the theme or plugin zip with File Manager intowp-content/themesorwp-content/pluginsand extract it there. - WordPress says “Your PHP installation appears to be missing the MySQL extension which is required by WordPress.”
- The PHP version the domain uses lacks the
mysqliextension. Pick a current PHP version in Software » MultiPHP Manager, and ask your host to add the extension if the message stays. - WP Toolkit will not install on the domain I chose.
- The chosen document root most likely holds a WordPress site already, and cPanel allows one per document root. Pick an empty folder, a subdomain or another domain, or remove the old site first.
Doing it from CTAServer
CTAServer does not install WordPress or other applications on cPanel servers. It has no one-click app installer and no WordPress toolkit, so use WP Toolkit or Softaculous in cPanel. For a manual install, CTAServer can do the server-side parts.
- On the Databases screen you can create the database and the database user. Linking the user to the database and choosing privileges stays in cPanel.
- The file manager uploads a zip file of up to 512 MB and extracts zip and tar archives, so the WordPress files can be put into the document root.
- On the PHP screen you can set the site’s PHP version and php.ini values such as
memory_limitandupload_max_filesize.
cPanel management with CTAServer The databases screen The PHP settings screen
Frequently asked questions
Does cPanel have a one-click WordPress installer?
Yes, WP Toolkit at Domains » WP Toolkit, which ships with cPanel & WHM. Your host can switch it off, and some hosts add Softaculous as well. Without either, WordPress can still be installed by hand with a database and the files from wordpress.org.
How do I install WordPress on a subdomain in cPanel?
Create the subdomain first, for example blog.example.com. Then open Domains » WP Toolkit, click Install WordPress and choose the subdomain under Installation path. The subdomain has its own document root, so it can hold its own WordPress site.
Can I have several WordPress sites in one cPanel account?
Yes, as long as each one has its own document root or folder. Put each site on its own domain or subdomain, or in its own folder such as example.com/blog. Two WordPress sites in the same folder conflict over the same .htaccess file.
How do I log in to WordPress after installing it in cPanel?
Go to https://example.com/wp-admin and sign in with the administrator username and password you set during the install. In Domains » WP Toolkit, the Log in link next to the site opens the dashboard as well.
Where are the WordPress files in cPanel?
In the document root of the domain you installed on, which is public_html for the main domain, or in the folder you chose. Open Files » File Manager to see them. The wp-config.php file there holds the database name, user and password.
Is WP Toolkit free in cPanel?
The standard WP Toolkit ships with cPanel & WHM and the server installs it automatically. WP Toolkit Deluxe adds more tools, and your host decides whether to enable it for your account.
Connect your first server today.
Free for 7 days, no card needed. Create your account, add your first server with an API token or an SSH key, and the panel starts filling in a few minutes later.
No setup fee · Cancel anytime · EU-hosted