WordPress Installation
This document provides a detailed guide for installing WordPress on your server. It covers cPanel automatic installation, manual installation, database configuration, HTTPS setup, file structure, and post-installation administration.
Installing WordPress via cPanel
cPanel provides an easy way to install WordPress using Softaculous or a similar installer.
Steps:
-
Login to cPanel
Navigate tohttps://yourdomain.com:2083orhttps://yourdomain.com/cpaneland log in with your cPanel credentials. -
Locate WordPress Management or Installer
In the Software section, click on WordPress (usually powered by Softaculous). -
Install WordPress
- Click Install Now.
- Choose Protocol:
https://if your domain already has SSL configured.http://otherwise (SSL can be configured later).
- Choose Domain: Select the domain or subdomain where WordPress will be installed.
- Directory: Leave blank to install at the root (
yourdomain.com) or specify a folder likeblog(yourdomain.com/blog).
-
Site Settings
- Site Name and Site Description: Enter your preferred values.
- Admin Username & Password: Set credentials for logging into
yourdomain.com/wp-admin. - Admin Email: Enter a valid email for notifications.
-
Database Settings
- cPanel usually auto-generates a database name and user. You can also customize it if needed.
-
Advanced Options (Optional)
- Auto-upgrade WordPress core, plugins, and themes.
- Backup options.
-
Install
- Click Install.
- Wait until the installation completes.
- Access your site at
https://yourdomain.comand admin athttps://yourdomain.com/wp-admin.

Manual WordPress Installation
Sometimes you may want full control over your WordPress setup. This involves downloading WordPress, uploading files, and connecting a database.
Steps:
-
Download WordPress
- Go to WordPress.org Download and download the latest
.zipfile.
- Go to WordPress.org Download and download the latest
-
Upload to Server
- Login to cPanel → File Manager → navigate to your domain folder (
public_htmloryourdomain.com). - Upload the
.zipfile and extract it. - If necessary, move the contents of the
wordpressfolder to the desired location.
- Login to cPanel → File Manager → navigate to your domain folder (
-
Create a Database
- In cPanel → MySQL Databases → create a new database.
- Create a database user and assign it to the database with All Privileges.
- Note the database name, username, and password for later.
-
Configure wp-config.php
- Rename
wp-config-sample.phptowp-config.php. - Edit the file:
php define('DB_NAME', 'your_database_name'); define('DB_USER', 'your_database_user'); define('DB_PASSWORD', 'your_database_password'); define('DB_HOST', 'localhost');
- Rename
-
Run the Installation Script
- Navigate to
https://yourdomain.com/wp-admin/install.php. - Fill in Site Title, Admin Username, Password, and Email.
- Click Install WordPress.
- Navigate to
Drag-and-Drop Installers
- Some hosting providers allow uploading
.zipfiles via File Manager and using one-click extract + database setup. - This method requires you to connect the extracted WordPress folder to a database manually as described above.
HTTPS/Domain Considerations
- Use SSL for HTTPS: Most cPanel setups provide AutoSSL.
- Ensure
https://is selected during installation. - If WordPress is installed manually, update the Site URL in wp-admin → Settings → General.
Post-Installation Access
- Admin dashboard:
https://yourdomain.com/wp-admin. - Use the admin credentials created during setup.
- From here you can:
- Install themes and plugins
- Configure site settings
- Add users and manage content
File Structure Overview
When installed in cPanel, your files typically reside in public_html or yourdomain.com folder:
| File/Folder | Purpose |
|---|---|
wp-admin/ |
WordPress admin panel backend |
wp-includes/ |
Core WordPress files and libraries |
wp-content/ |
User content: themes, plugins, uploads |
wp-config.php |
Contains database connection and credentials |
.htaccess |
URL rewriting, security, and server rules |
Removing WordPress
If you need to remove WordPress:
-
Delete Files
- In cPanel → File Manager → delete WordPress files/folders (
wp-admin,wp-content,wp-includes, andwp-config.php).
- In cPanel → File Manager → delete WordPress files/folders (
-
Drop Database
- In cPanel → MySQL Databases → drop the database created for WordPress.
-
Remove Database User
- Delete the user associated with the database to remove credentials.
Or you can just delete the entire folders and database from WordPress Management in cPanel if available.
Summary
- Automatic (cPanel): Fast, minimal setup.
- Manual: Full control over files, database, and folder structure.
- HTTPS: Always recommended.
- Admin: Manage the site from
/wp-admin. - Removal: Delete files + database + users.
This guide covers all essential steps a developer needs to install and manage WordPress.