WP AI Agent
Features Pricing Blog Contact Download Plugin Manage Subscription Get Free Key →

How to Install WordPress on cPanel Hosting: Complete Guide

· · 8 min read

Introduction

Installing WordPress on cPanel hosting is one of the most common tasks for anyone starting a new website. Whether you are launching a personal blog, a business site, or an online store, WordPress combined with cPanel makes the process straightforward even for beginners. This guide walks you through every step, covering both the automated installation method using Softaculous and the manual installation method for those who prefer full control.

What You Need Before You Start

Before diving into the installation process, make sure you have the following ready:

  • A cPanel hosting account – Any shared, VPS, or dedicated hosting plan that includes cPanel will work.
  • A registered domain name – Your domain should already be pointed to your hosting server's nameservers.
  • Your cPanel login credentials – Username and password provided by your hosting company.
  • An FTP client (optional) – Required only if you choose the manual installation method. FileZilla is a popular free option.

Method 1: Installing WordPress Using Softaculous (Recommended)

Softaculous is an auto-installer built into most cPanel hosting plans. It lets you install WordPress in just a few clicks without touching a single line of code. This is the recommended method for most users.

Step 1: Log In to cPanel

Open your browser and navigate to your cPanel login page. This is typically found at one of the following URLs:

https://yourdomain.com/cpanel
https://yourdomain.com:2083

Enter your username and password, then click Log In. Your hosting provider will have sent these credentials to you when you signed up.

Step 2: Find Softaculous in cPanel

Once inside cPanel, scroll down to the Software section. You should see the Softaculous Apps Installer icon. Click on it to open the installer dashboard. Alternatively, you can search for "Softaculous" using the cPanel search bar at the top of the page.

Step 3: Select WordPress

Inside Softaculous, you will see a list of popular applications. Click on WordPress, which is usually featured prominently on the homepage. Then click the Install Now button to proceed to the configuration screen.

Step 4: Configure Your WordPress Installation

Fill in the installation details on the configuration page:

  • Choose Protocol: Select https:// if you have an SSL certificate installed (recommended). Otherwise, choose http://.
  • Choose Domain: Select the domain or subdomain where you want WordPress installed.
  • In Directory: Leave this field empty to install WordPress at the root of your domain (e.g., yourdomain.com). Enter a folder name like blog to install it in a subdirectory (e.g., yourdomain.com/blog).
  • Site Name: Enter your website's name.
  • Site Description: Add a short tagline or description.
  • Admin Username: Choose a unique admin username. Do not use "admin" as it is a common target for hackers.
  • Admin Password: Use a strong password with a mix of letters, numbers, and symbols.
  • Admin Email: Enter a valid email address for password recovery and notifications.

Step 5: Complete the Installation

Scroll to the bottom of the configuration page and click Install. Softaculous will automatically create a database, configure all settings, and install WordPress files on your server. This typically takes 30 to 60 seconds. Once complete, you will see confirmation links for your new WordPress site and the admin dashboard.

You can now log in to your WordPress admin panel at:

https://yourdomain.com/wp-admin

Method 2: Installing WordPress Manually via FTP

Manual installation gives you more control over the process and is useful when Softaculous is not available or when you need a custom configuration. This method involves downloading WordPress, creating a database, and uploading files yourself.

Step 1: Download WordPress

Visit wordpress.org/download and download the latest version of WordPress as a ZIP file. Extract the ZIP file on your computer — you should see a folder named wordpress containing all the core files.

Step 2: Create a MySQL Database in cPanel

Log in to cPanel and navigate to the Databases section. Click on MySQL Databases. Follow these steps:

  1. Under Create New Database, enter a name for your database (e.g., mysite_db) and click Create Database.
  2. Scroll down to MySQL Users. Enter a new username (e.g., mysite_user) and a strong password, then click Create User.
  3. Under Add User to Database, select the user and database you just created, then click Add. On the next screen, grant All Privileges and click Make Changes.

Note down your database name, username, password, and database host (usually localhost) — you will need these shortly.

Step 3: Upload WordPress Files via FTP

Open FileZilla or your preferred FTP client. Connect to your server using the FTP credentials provided by your host. Navigate to the public_html directory (or the appropriate subdirectory if installing in a folder). Upload all the contents of the extracted wordpress folder into this directory.

Step 4: Configure wp-config.php

Inside the uploaded WordPress files, find the file named wp-config-sample.php. Rename it to wp-config.php, then open it in a text editor and update the following lines with your database details:

define( 'DB_NAME', 'mysite_db' );
define( 'DB_USER', 'mysite_user' );
define( 'DB_PASSWORD', 'your_password' );
define( 'DB_HOST', 'localhost' );

Save the file and upload it back to your server, replacing the existing version.

Step 5: Run the WordPress Installation Wizard

Open your browser and navigate to your domain. WordPress will detect the configuration and launch the installation wizard automatically. Choose your language, then fill in your site title, admin username, password, and email address. Click Install WordPress. Within seconds, your site will be ready and you can log in to the admin dashboard.

Post-Installation Steps

After installing WordPress, there are a few important tasks to complete before launching your site:

  • Install an SSL certificate: If you haven't already, enable a free Let's Encrypt SSL certificate through cPanel to secure your site with HTTPS.
  • Set your permalink structure: Go to Settings > Permalinks in your WordPress dashboard and choose a URL structure such as Post name for better SEO.
  • Install a theme: Navigate to Appearance > Themes to choose and activate a theme that suits your website's purpose.
  • Install essential plugins: Add plugins for security (Wordfence), caching (WP Super Cache), SEO (Yoast SEO), and backups (UpdraftPlus).
  • Delete the default content: Remove the sample post, page, and comment that WordPress installs by default.
  • Update WordPress core, themes, and plugins: Always keep everything up to date to protect against security vulnerabilities.

Troubleshooting Common Issues

If you encounter problems during or after installation, here are some common fixes:

  • Error establishing a database connection: Double-check your wp-config.php database credentials. Ensure the database user has been granted full privileges.
  • WordPress stuck in maintenance mode: Delete the .maintenance file from your root directory via FTP or cPanel File Manager.
  • White screen of death: Increase PHP memory limit by adding define('WP_MEMORY_LIMIT', '256M'); to your wp-config.php file.
  • Permalink structure not working: Make sure the .htaccess file in your root directory is writable. You can reset it by going to Settings > Permalinks and clicking Save.

Conclusion

Installing WordPress on cPanel hosting is a straightforward process whether you choose the automated Softaculous method or the manual FTP approach. The Softaculous method is ideal for beginners who want a fast, hassle-free setup, while the manual method suits developers who want complete control over the installation. Once WordPress is installed, take the time to configure your site properly — set up SSL, choose a theme, install key plugins, and keep everything updated. With these foundations in place, your WordPress site will be secure, optimised, and ready to grow.

Ready to manage WordPress with AI?

Get 100,000 tokens free every month. No credit card required.

Get Your Free License Key →

More from the blog