Get started

How to install WordPress on cPanel

Two ways to install WordPress on a cPanel account: the one-click installer in Softaculous, or a manual install with a database you create yourself.

15 January 2026 · 6 min read

This guide covers two ways to install WordPress on a cPanel hosting account: with the Softaculous installer, which takes a couple of minutes, and by hand, for accounts without Softaculous or for anyone who wants to control each step. After that it covers basic security, the first settings to change, and fixes for common installation errors.

Why WordPress

WordPress runs over 40% of all websites, for practical reasons:

  • The admin area is simple enough for beginners and doesn't get in the way of developers.
  • There are thousands of free and paid themes and plugins.
  • Clean URLs and SEO plugins make it easy to set page titles, descriptions and sitemaps.
  • Most current themes are responsive, so the site works on phones without extra work.
  • The community is large, so most problems already have a documented fix.
  • It's free and open source, with no licence fees.

Prerequisites

You'll need:

  • cPanel Access: Login credentials for your hosting account
  • Domain Name: A registered domain (or subdomain) pointing to your hosting
  • Database Access: MySQL database (usually auto-created during installation)
  • PHP Support: PHP 7.4 or higher (most hosting providers support this)
  • Softaculous: Pre-installed on most cPanel hosting (check with your provider)

Softaculous is a one-click installer built into many cPanel accounts. It creates the database, uploads the files and writes the configuration for you.

1 Open Softaculous in cPanel

  1. Log into your cPanel account
  2. Scroll down to the "Software" section
  3. Click on "Softaculous Apps Installer" or "WordPress" icon
  4. You'll be redirected to the Softaculous interface

2 Select WordPress

  1. In Softaculous, find "WordPress" in the left sidebar
  2. Click on "Install Now" or the "Install" button
  3. Review WordPress details and click "Install"

3 Fill in the installation settings

Fill in the following:

  • Choose Protocol: Select https:// if you have SSL, otherwise http://
  • Choose Domain: Select your domain name from the dropdown
  • In Directory: Leave blank for root installation, or enter a folder name for subdirectory installation (e.g., blog)
  • Site Name: Enter your website name
  • Site Description: A short description of your website
  • Admin Username: Choose a username other than "admin"
  • Admin Password: Use a long, random password
  • Admin Email: Your email address

4 Advanced options (optional)

Expand the advanced options if you want to change any of these:

  • Database Name: Auto-generated, or set your own
  • Table Prefix: Default is wp_ (change for security)
  • Disable Update Notifications: Optional checkbox
  • Auto Upgrade: Enable automatic WordPress updates
  • Backup Location: Choose where Softaculous stores its backups

5 Install WordPress

  1. Review all your settings
  2. Click the "Install" button
  3. Wait for the installation to complete (usually 1-2 minutes)
  4. You'll see a success message with your admin URL and login credentials

WordPress is now installed.

Log in to the admin area at yourdomain.com/wp-admin.

Method 2: Install WordPress manually

Use this method if your account doesn't have Softaculous or you'd rather do each step yourself.

1 Create a MySQL database

  1. In cPanel, go to "MySQL Databases"
  2. Under "Create New Database", enter a database name (e.g., wp_mywebsite)
  3. Click "Create Database"
  4. Under "Add New User", create a database user with a strong password
  5. Under "Add User to Database", select the user and database, then click "Add"
  6. Grant "ALL PRIVILEGES" to the user
  7. Note down: Database name, username, password, and host (usually localhost)

2 Download WordPress

  1. Visit wordpress.org/download
  2. Click "Download WordPress"
  3. Extract the ZIP file on your computer
  4. You'll get a folder named wordpress

3 Upload the files to cPanel

Uploading the ZIP and extracting it in File Manager is much quicker than uploading the individual files.

  1. In cPanel, go to "File Manager"
  2. Navigate to public_html (or your domain's root directory)
  3. Click "Upload" and select all files from the WordPress folder
  4. Wait for upload to complete
  5. Extract the ZIP file if uploaded as ZIP
  6. Move all files from the wordpress folder to public_html

4 Configure WordPress

  1. Visit your website URL in a browser
  2. WordPress will detect you need to configure it
  3. Select your language and click "Continue"
  4. Click "Let's go!" on the welcome screen
  5. Enter your database details:
    • Database Name
    • Username
    • Password
    • Database Host (usually localhost)
    • Table Prefix (change from wp_ for security)
  6. Click "Submit"

5 Complete the installation

  1. If the database connection works, click "Run the installation"
  2. Fill in your site information:
    • Site Title
    • Username (avoid "admin")
    • Password (use a long, random one)
    • Your Email
    • Search Engine Visibility (check if you don't want search engines to index your site yet)
  3. Click "Install WordPress"
  4. You'll see a success message with a login button

Securing the new site

Do these straight after installation.

1. Don't use "admin" as the username

It's the first username bots try. Pick something that isn't your domain name or your public display name either.

2. Use strong passwords

Use at least 12 characters, with upper and lower case letters, numbers and symbols. A password manager makes this painless.

3. Change the table prefix

Change the default wp_ prefix to something unique (e.g., xyz_).

4. Install an SSL certificate

Enable HTTPS for your WordPress site through cPanel SSL/TLS settings.

5. Keep WordPress updated

Update WordPress core, themes and plugins regularly. Most hacked WordPress sites are running an outdated plugin.

6. Install a security plugin

Wordfence, Sucuri and iThemes Security are the common choices.

7. Limit login attempts

Use a plugin to block an IP address after several failed logins, which stops most brute-force attacks.

First settings to change

General settings

Under Settings → General, set the site title and tagline, timezone, date and time format, and site language.

Permalink structure

  • Go to Settings → Permalinks
  • Choose "Post name" for SEO-friendly URLs
  • Save changes

Plugins to install

  • SEO plugin (Yoast SEO or Rank Math)
  • Backup plugin (UpdraftPlus)
  • Security plugin (Wordfence)
  • Caching plugin (WP Super Cache)

Choose a theme

Browse the free themes under Appearance → Themes, install and activate one, then adjust it under Appearance → Customize.

Common issues and troubleshooting

Issue: "Error establishing database connection"

Solution:

  • Check the database credentials in wp-config.php
  • Check the database exists in cPanel
  • Make sure the database user has been added to the database with all privileges
  • Check the database host (usually localhost)

Issue: "Permission denied" errors

Solution:

  • Set correct file permissions (755 for folders, 644 for files)
  • Use cPanel File Manager to fix permissions
  • Check wp-config.php file permissions

Issue: "White screen of death"

Solution:

  • Enable WordPress debug mode in wp-config.php
  • Check PHP error logs in cPanel
  • Increase PHP memory limit
  • Disable recently installed plugins

Issue: Installation stuck or very slow

Solution:

  • Check server resources and PHP limits
  • Try manual installation instead of Softaculous
  • Contact your hosting provider for help

WordPress hosting at HosterOcean

Our shared hosting includes Softaculous, so the one-click method above works on every account, and free SSL certificates are issued for each domain automatically.

Performance

Sites are served by LiteSpeed web server from NVMe storage. CloudLinux sets resource limits for each account, so other sites on the server can't use up your share of CPU and memory.

Security and backups

Imunify360 provides the firewall and malware scanning. JetBackup takes a backup every day, and you can restore files, databases or the whole account from cPanel without contacting us.

Migration and support

If your WordPress site is with another host, our team will migrate it for free. Live chat is open from 9am to 8pm CT every day, and you can open a support ticket at any hour.

See our cPanel hosting plans

Summary of the steps

Softaculous is the quickest route and is fine for most sites. The manual method takes a little longer and is useful when Softaculous isn't available or you want to choose the database name and table prefix yourself. Either way, avoid the "admin" username, change the table prefix, turn on SSL, switch permalinks to "Post name" and keep WordPress, themes and plugins updated.

Tags:

wordpress installation

cpanel wordpress

softaculous

wordpress setup

wordpress tutorial

wordpress hosting

install wordpress

wordpress guide

cpanel tutorial

wordpress security

wordpress cpanel

wordpress setup guide

Business Guide

How to Choose the Best Web Hosting for Your Business 2026

How to compare shared, VPS and dedicated hosting and pick a plan that fits your traffic and budget.

Read More →

Technical Guide

How to Update PHP Settings for All Versions in cPanel & CloudLinux Using a Bash Script

Use a bash script to change PHP settings for every PHP version on a cPanel and CloudLinux server in one go.

Read More →