How to Install WordPress in cPanel (Installer or Manual)
Install WordPress from cPanel with an app installer, or by hand: create the database, upload the files, run the setup wizard, then secure the new site before you build it.

Table of Contents
There are two ways to install WordPress on cPanel hosting: with an app installer (such as Softaculous or WordPress Toolkit, if your host provides one), which takes a few minutes, or manually: create a MySQL database and user, upload the WordPress files, and run the setup wizard in your browser. Either way, make sure your domain points to the hosting and has SSL before you start, so WordPress is installed on https://.
Before you start
- Your domain points to the hosting account; see how to point a domain to hosting.
- An SSL certificate is active; see how to install a free SSL certificate in cPanel.
- The PHP version is current; see how to change the PHP version in cPanel.
Method 1: With an app installer
App installers vary between hosts. The steps below follow the usual Softaculous flow; other installers are similar.
- Log in to cPanel and open Softaculous Apps Installer (or WordPress Manager / WordPress Toolkit).
- Choose WordPress → Install.
- Protocol and domain: choose
https://and your domain (with or withoutwww, matching how you want the site addressed). - Directory: leave empty to install at the domain's root. Entering
wpwould install it atyourdomain.com/wp. - Site name and description: you can change these later.
- Admin account: choose a unique username (not "admin"), a strong password and an email address you check.
- Language, and optionally plugins such as login-attempt limiting.
- Advanced options: keep automatic backups if offered, and note the database name.
- Click Install and wait for confirmation.
Log in at https://yourdomain.com/wp-admin/.
Method 2: Manual installation
Step 1: Create the database
In cPanel → MySQL Database Wizard:
- Create a database (for example
example_wp). - Create a user with a strong password.
- Grant the user All Privileges on the database.
Note the database name, username and password, including the cPanel prefix. Detailed steps are in how to create a MySQL database in cPanel.
Step 2: Upload WordPress
- Download the latest WordPress from wordpress.org.
- In cPanel → File Manager, open
public_html(the root of your main domain). - Upload the ZIP file and Extract it. This creates a
wordpressfolder. - Move the contents of
wordpressintopublic_html, then delete the empty folder and the ZIP.
See how to upload website files.
Step 3: Run the setup wizard
- Visit
https://yourdomain.com. - Choose the language, then enter the database name, username, password, database host (
localhoston most cPanel servers) and a table prefix (changing it fromwp_is optional). - WordPress creates
wp-config.php. Click Run the installation. - Enter the site title and admin account details (unique username, strong password, your email).
- Click Install WordPress, then log in.
After installation: first steps
- Settings → Permalinks: choose "Post name".
- Settings → General: check site title, timezone and that both URLs use
https://. - Delete sample content and unused default plugins and themes.
- Install a backup solution and enable 2FA for your account; see the WordPress security checklist.
- Make sure Settings → Reading → Discourage search engines is unchecked when you are ready to launch.
Then continue with how to create a WordPress website step by step.
Installing with WP-CLI (if you have SSH)
WP-CLI installs and configures WordPress from the command line, which is quick and repeatable. From the domain's document root:
wp core download
wp config create --dbname=acme_wp --dbuser=acme_wpuser --prompt=dbpass
wp core install --url=https://example.com --title="Example Ltd" \
--admin_user=example_admin [email protected] --prompt=admin_password
wp rewrite structure '/%postname%/'
--prompt asks for passwords interactively, so they do not end up in your shell history. Check with your host whether WP-CLI is available on your plan.
Choosing a secure admin account
- Username: not "admin", not your domain name, not the name shown publicly as the author.
- Password: long and unique, generated by a password manager.
- Email: an address you control long term, ideally on your own domain.
- Second factor: add 2FA with a plugin as soon as the site is installed; see two-factor authentication explained.
Create separate, lower-privilege accounts (Editor or Author) for people who only write content.
Troubleshooting
| Problem | Fix |
|---|---|
| "Error establishing a database connection" | Check database name, user, password and privileges; see the fix guide |
| Site shows the host's default page | Remove index.html from public_html |
| Installed in a subfolder by mistake | Reinstall with an empty directory field, or move the site carefully |
| Mixed content warnings | Make sure both WordPress URLs start with https:// |
Frequently Asked Questions
Which method should I use?
The installer is quicker and often sets up updates and backups. The manual method works on any host and teaches you how WordPress is put together.
Can I install WordPress on a subdomain?
Yes. Create the subdomain in cPanel → Domains, then install into its document root.
Related reading
See WordPress hosting: what it is and how to choose, and compare ServerNeed WordPress hosting.
Sources
Last updated 7 October 2026



