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)
Method 1: Install WordPress with Softaculous (recommended)
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
- Log into your cPanel account
- Scroll down to the "Software" section
- Click on "Softaculous Apps Installer" or "WordPress" icon
- You'll be redirected to the Softaculous interface
2 Select WordPress
- In Softaculous, find "WordPress" in the left sidebar
- Click on "Install Now" or the "Install" button
- Review WordPress details and click "Install"
3 Fill in the installation settings
Fill in the following:
- Choose Protocol: Select
https://if you have SSL, otherwisehttp:// - 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
- Review all your settings
- Click the "Install" button
- Wait for the installation to complete (usually 1-2 minutes)
- 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
- In cPanel, go to "MySQL Databases"
- Under "Create New Database", enter a database name (e.g.,
wp_mywebsite) - Click "Create Database"
- Under "Add New User", create a database user with a strong password
- Under "Add User to Database", select the user and database, then click "Add"
- Grant "ALL PRIVILEGES" to the user
- Note down: Database name, username, password, and host (usually
localhost)
2 Download WordPress
- Visit wordpress.org/download
- Click "Download WordPress"
- Extract the ZIP file on your computer
- 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.
- In cPanel, go to "File Manager"
- Navigate to
public_html(or your domain's root directory) - Click "Upload" and select all files from the WordPress folder
- Wait for upload to complete
- Extract the ZIP file if uploaded as ZIP
- Move all files from the
wordpressfolder topublic_html
4 Configure WordPress
- Visit your website URL in a browser
- WordPress will detect you need to configure it
- Select your language and click "Continue"
- Click "Let's go!" on the welcome screen
- Enter your database details:
- Database Name
- Username
- Password
- Database Host (usually
localhost) - Table Prefix (change from
wp_for security)
- Click "Submit"
5 Complete the installation
- If the database connection works, click "Run the installation"
- 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)
- Click "Install WordPress"
- 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.phpfile 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 plansSummary 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:
Related articles
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 →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 →



