How to Install WordPress on cPanel Hosting in 10 Minutes

What You Will Have at the End

By the end of this guide you will have a working WordPress installation on your own hosting account, reachable at your domain, with a secure admin login and the basic settings already done. You will also know how to recreate the process manually, which is the skill you need when a one-click installer is unavailable or a client asks you to set up a site without one.

Two methods are covered. The first uses the one-click installer that almost every cPanel host provides, and it takes about ten minutes. The second creates the database and uploads the files yourself, which is useful when you want full control or when the installer is missing from your panel.

What You Need Before Starting

  • A hosting account with cPanel access.
  • A registered domain, either pointed at the hosting or set to use the host’s name servers.
  • The cPanel username and password sent by your host, usually in a welcome email.
  • Ten to twenty minutes, and a text file to store the details you create.

Write down every username, password and database name you create during setup. WordPress does not store these in a way you can easily read later without file access, and losing them means a password reset process that is far slower than writing three lines in a notes file.

Logging In to cPanel

Your host’s welcome email contains a cPanel URL, something like yourdomain.com/cpanel or yourdomain.com:2083. Open it in a browser, enter the cPanel username and password, and you will land on the control panel dashboard.

If the login fails, check three things before contacting support. First, confirm you are using the cPanel username, not the domain name or an email address. Second, copy the password instead of typing it, because the characters are case sensitive. Third, try a different browser if your password manager is filling in old credentials automatically.

If the host uses a different control panel with a similar purpose, the steps below are nearly identical in function even when the icons look different.

Method A: The One-Click WordPress Installer

Most cPanel accounts include an installer, commonly found under a section labelled Software or WordPress Tools. The exact name varies between hosts, but the flow does not.

Step 1: Open the installer

From the cPanel dashboard, find the WordPress icon and click it. You will see a screen offering a new installation.

Step 2: Fill in the installation form

You will be asked for the following fields. Get these right the first time, because changing the URL after installation takes extra work.

  • Choose domain: select the domain where the site should live. If you are building in a subfolder or on a subdomain for testing, choose that instead.
  • In directory: leave blank to install at the top level of the domain. Enter a word only if you want the site in a subfolder.
  • Site name: your blog or business name. You can change it later.
  • Site description: a short tagline. Also editable later.
  • Admin username: choose something specific. Never use “admin”.
  • Admin password: use a long passphrase with mixed characters, and save it.
  • Admin email: an address you check daily and protect with two-factor authentication.
  • Language: select your preferred language.
  • Limit login attempts and auto-update options: enable both if the installer offers them.

Step 3: Choose the database settings

The installer can create the database automatically or reuse an existing one. For a new site, let it create a new database. Note the database name, user and password it shows, and keep them with your other credentials.

Step 4: Install and wait

Click install. The process usually finishes within a minute. When it completes, you will see the admin URL, typically yourdomain.com/wp-admin, and the login details.

Step 5: Log in and confirm

Open the admin URL, log in, and confirm the dashboard loads. Visit the front end of the site as well. Seeing the default WordPress theme and the “Hello world!” post means everything worked.

Method B: Manual Installation Using File Manager

Manual installation gives you full control and takes about fifteen minutes once you are familiar with the steps. You will create a database, download WordPress, upload the files, connect the two, and run the installer.

Step 1: Create a database and database user

In cPanel, open MySQL Databases. Create a new database, then create a database user with a strong password. Add that user to the database and grant it all privileges on that database. On shared hosting, the panel often prefixes names with your account name, so your database might look like account_wp1 and your user like account_wpuser.

Write down the full prefixed names and the password, since you will type them in the next step.

Step 2: Download WordPress

Get the latest version from the official WordPress website. Download the zip file and do not extract it on your computer, because the file manager can extract it on the server, which saves time and avoids upload errors.

Step 3: Upload and extract

Open File Manager in cPanel and go to public_html, or to the folder matching the domain you are installing on. Click Upload, choose the WordPress zip file, and wait for it to finish. Return to File Manager, right-click the zip file and select Extract.

After extraction, you may find the files inside a folder called wordpress. Select everything inside that folder, move it up one level into public_html, and delete the now-empty folder. Your public_html should contain files such as wp-admin, wp-includes, wp-content and index.php directly.

Step 4: Create the wp-config.php file

WordPress needs to know how to reach your database. Open the file named wp-config-sample.php, and edit it with the code editor built into File Manager. Fill in the database name, username and password you created, keep the host as localhost unless your host says otherwise, and add unique authentication keys. Save the file, then rename it to wp-config.php.

If editing files by hand feels risky, skip this step. Run the installer in the next step instead and WordPress will create the configuration file for you after you enter the database details on screen.

Step 5: Run the installation in your browser

Visit your domain in a browser. WordPress will ask for the database details, or move straight to the site setup screen if you already edited the configuration file. Enter the site title, admin username, password and email, then submit.

When you see the success screen, your site is live. Log in at yourdomain.com/wp-admin.

Five Settings to Change Immediately After Installing

  1. Permalinks. Go to Settings, then Permalinks, and select “Post name”. This gives clean URLs instead of numbers.
  2. Timezone and language. Fix these in Settings, then General.
  3. Delete the sample content. Remove the default post and the sample page so you start clean.
  4. Install an SSL certificate. Most cPanel accounts include a free certificate option under the SSL or security section. Enable it, then set the site address to the https version.
  5. Set up backups. Either use your host’s backup tool or install a backup plugin that stores copies off the server.

Securing the New Installation

A fresh WordPress site is immediately a target for automated bots, so do these five things on day one.

  • Use a unique admin username and a long password saved in a password manager.
  • Enable two-factor authentication for the admin account.
  • Keep WordPress, themes and plugins updated. Delete anything unused rather than deactivating it.
  • Install a security plugin for login attempt limits and a basic firewall.
  • Set file permissions correctly. Folders are usually 755 and files 644, and wp-config.php should be as restrictive as your host allows.

Subdomains, Addon Domains and Folder Installs

cPanel lets you install WordPress in three different places, and choosing the right one at the start saves a migration later. Use the table below as a quick reference.

Where Example address Best used for
Main domain root yourdomain.com Your primary website
Subdomain test.yourdomain.com Staging, experiments, client previews
Subfolder yourdomain.com/blog Adding a blog to an existing site
Addon domain anothersite.com A second site on the same hosting plan

A subdomain is the cleanest option for testing because it has its own document root, its own database, and its own SSL certificate, and it can be deleted without touching the live site. A subfolder works well when you want your blog to share the authority of an existing domain, but it needs a little more care with internal links and menus.

If you install on an addon domain, remember that cPanel creates a folder for it, and your WordPress files must go in that folder rather than public_html. Mixing the two is the most common reason a new WordPress site ends up displaying the wrong content.

Pick the Right PHP Version and Limits

cPanel accounts usually let you choose the PHP version under a section called Select PHP Version or MultiPHP Manager. Run the version your host recommends for WordPress, ideally the newest stable release that your theme and plugins support. Older versions lose security updates and can break modern plugins.

While you are there, check three limits that affect real sites rather than test installs. A memory limit of at least 256MB prevents most white-screen errors during plugin installs. An upload limit above 32MB lets you restore backups and upload large themes. A reasonable maximum execution time avoids timeouts when you run imports or bulk edits. If these values are low and you cannot change them, ask your host’s support team, as most will raise them on request.

Decide on a Child Theme Before You Customise

If you plan to edit theme files at all, create a child theme first. A child theme inherits the parent theme’s design but keeps your changes in a separate folder, so updates to the parent never wipe your work. The alternative, editing the parent theme directly, means every update silently destroys your customisations and you will not notice until something breaks.

The same logic applies to plugins. If you need to modify a plugin’s behaviour, use a small custom plugin or a code snippets plugin instead of editing the plugin’s own files, which get overwritten on every update.

Common Errors and How to Fix Them

“Error establishing a database connection”

This means the details in wp-config.php do not match your database. Check for typos, confirm the prefixed database and user names, and verify that the user is attached to the database with full privileges.

Blank white screen

Usually a PHP memory or plugin conflict issue. Rename your plugins folder temporarily to disable all plugins, and check the error log in cPanel for the underlying message.

The installer runs but the site shows another website

Your domain may still be pointing at old hosting, or the site may be installed in the wrong directory. Confirm the DNS records and check that index.php sits directly in the folder for that domain.

“You do not have sufficient permissions to access this page”

This is normally a file permission or ownership problem. Set folders to 755, files to 644, and ask your host to verify ownership if it persists.

Installation stuck at step two

Check whether a security layer in the hosting account is blocking AJAX requests, and try a different browser. If the host uses a staging environment, confirm you are not running two installations against the same database.

Frequently Asked Questions

Should I install WordPress in a subfolder first?

Building in a subfolder is a reasonable choice if you are redesigning an existing site. Just remember that moving it to the main domain later requires a proper migration of URLs in the database, so plan for that from the start.

Do I need a separate database for each WordPress site?

Yes. One database per installation keeps backups and troubleshooting simple. Sharing a database across installations causes confusing table conflicts.

What if my host does not offer cPanel?

The concepts are the same in other panels and in managed WordPress dashboards. You still need a domain, a database, and a way to connect the two.

Can I install WordPress without FTP or File Manager?

Yes, if your host provides a one-click installer or a managed WordPress environment. The manual method is only needed for control or troubleshooting.

How do I move the site to a new domain later?

Use a migration plugin or a host-supported migration tool, update the site address in settings, and fix internal links if necessary. Take a full backup before starting.

Final Thoughts

Installing WordPress on cPanel is one of those tasks that feels intimidating until you have done it once. The one-click method gets you live in minutes, and the manual method teaches you exactly what the installer does behind the scenes. Whichever route you take, finish the job properly: set the permalinks, enable SSL, configure backups, and secure the admin account. That twenty minutes of housekeeping is what separates a site that survives its first year from one that gets compromised or lost.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top