A secure home for your next big idea. Explore hosting →

Knowledgebase / WordPress

How to Install WordPress in cPanel

You can install WordPress through an available cPanel installer or by uploading the official WordPress files yourself. Choose the method your hosting account provides, confirm the installation address and keep the new administrator credentials in a password manager.

Hosting domain connected to website files and a database, ending in a ready website

WordPress setup illustration: choose the address, install the files and database, then verify access.

Confirm the domain and hosting environment

Add the domain to your hosting account and check its document root before installing anything. Decide whether the site belongs at https://example.com/ or in a subdirectory such as /blog/. Confirm that HTTPS works and that the destination does not already contain a website you need to preserve.

WordPress currently recommends PHP 8.3 or later, MariaDB 10.11 or later or MySQL 8.0 or later, and HTTPS. Check the official requirements for changes and use a PHP release compatible with your chosen plugins. Compare the resources on ServersNest WordPress hosting plans if you are selecting a new account; installer availability should be confirmed for the account you use.

Install with Softaculous if it is available

  1. Open Softaculous Apps Installer from cPanel, select WordPress and choose its installation option.
  2. Choose the HTTPS domain. Leave the directory field blank for the domain root, or enter the intended folder name.
  3. Enter a site title, language and administrator email address you can access.
  4. Choose a unique administrator username and a generated password. Store the password securely.
  5. Review the offered update, backup, plugin and theme options, then start installation.

Use the completion links to visit the website and administrator area. Check the URL carefully: an unintended directory value can install the site at /wp/ instead of the domain root. Softaculous provides an official WordPress installation walkthrough.

Use WP Toolkit as an alternative

If cPanel offers WP Toolkit, open it and choose Install. Review the installation path, site title, language, administrator details and update settings before confirming. Do not run a second installer over an existing installation.

The available Toolkit features depend on the provider’s configuration and licence. A missing button does not mean WordPress cannot run on the account; use another supported method or ask support which installer is available. See cPanel’s WP Toolkit overview.

Install manually when you need direct control

  1. Download the current WordPress package from WordPress.org.
  2. Create a database and a separate database user in cPanel. Assign that user the privileges required for this database, recording the complete names including any account prefix.
  3. Upload and extract the package into the intended document root. For a root installation, the WordPress files themselves must be in that directory, not inside an extra wordpress folder.
  4. Visit the installation address over HTTPS. Supply the database name, user, password and host provided by your hosting configuration.
  5. Set the site title, administrator username, password and email, then complete setup.

WordPress can create wp-config.php through its installer when permissions allow. If it cannot, follow the displayed instructions to create the file using the supplied database details. Refer to the official manual installation guide.

Make deliberate choices before launch

Keep the administrator email current so that account recovery reaches you. Use individual logins for people who manage the website, and give each person only the permissions their work needs. Install themes and plugins from trusted sources, remove unused items and keep supported software updated.

For a staging site, use proper access restrictions. The setting that discourages search engines is a request to crawlers, not password protection. For a public production site, review search visibility before launch. Plan backups and a way to recover access before making major design or plugin changes. WordPress explains these broader controls in its hardening guide.

Verify the website before adding content

Log out and sign in again through the administrator URL to confirm that your saved credentials work. Open the site in a private browser window, create a test draft, preview it and check an uploaded image. Confirm that HTTPS remains active on both the front end and login page.

If setup reports a database connection error, recheck the full database name, user assignment, password and host. If you see a default holding page, verify DNS, document root and cached content rather than repeatedly reinstalling WordPress. Record the exact error and the installation time when asking support for help.

KNOWLEDGEBASE FAQ

Frequently asked questions

Should I use Softaculous or install WordPress manually?

Use the supported installer if you prefer a guided setup. Manual installation is useful when you need control over files and database configuration. Both require a valid destination and secure administrator credentials.

What goes in the installation directory field?

Leave it blank to install at the selected domain root. Enter a folder name only when you intentionally want an address such as example.com/blog/.

Can I install over an existing website?

Do not overwrite an existing site without a verified backup and a replacement plan. Use an empty destination or staging location first.

Does discouraging search engines make a staging site private?

No. It is a crawler preference, not an access control. Restrict access to staging with an appropriate authentication method and review visibility when launching.

Official references