This guide will walk you through manually installing WordPress on a web server. It’s ideal if you want full control over your site setup.
Prerequisites
Before you begin, make sure you have the following:
-
A domain name (e.g., example.com)
-
A web hosting account that supports PHP and MySQL
-
Access to your hosting control panel (like cPanel) or FTP
-
PHP 7.4 or higher
-
MySQL 5.7+ or MariaDB 10.3+
-
HTTPS support (SSL certificate)
-
A MySQL database and user ready (you can create this during installation)
Step 1: Download WordPress
-
Go to the official WordPress website: https://wordpress.org/download/
-
Click “Download WordPress” and save the .zip file to your computer.
-
Extract the .zip file to get the WordPress folder.
Step 2: Upload WordPress to Your Web Server
Option A: Using cPanel File Manager
-
Log into your hosting control panel (e.g., cPanel).
-
Open the File Manager and navigate to the root directory (often
public_html). -
Upload the extracted WordPress files.
-
If you uploaded the .zip file, extract it after uploading.
Option B: Using FTP
-
Use an FTP client like FileZilla.
-
Connect to your web server using your FTP credentials.
-
Upload the contents of the WordPress folder to your desired directory (
public_htmlfor the main domain).
Step 3: Create a MySQL Database and User
-
Log into cPanel and go to “MySQL Databases”.
-
Create a new database (e.g.,
my_wp_db). -
Create a new MySQL user and assign a strong password.
-
Add the user to the database and grant it all privileges.
Step 4: Configure wp-config.php
-
In the WordPress folder, find the file named
wp-config-sample.php. -
Rename it to
wp-config.php. -
Open it in a text editor and update the following lines with your database information:
-
Save the file and upload it to your server if working locally.
Step 5: Run the WordPress Installer
-
Open your web browser and navigate to your domain (e.g.,
https://example.com). -
You should see the WordPress installation screen.
-
Choose your language and click “Continue”.
-
Fill in the site information:
-
Site title
-
Username
-
Password
-
Email address
-
-
Click “Install WordPress”.
Step 6: Log In to WordPress
Once the installation completes:
-
Go to
https://yourdomain.com/wp-admin -
Log in with the username and password you just created.
Optional: Secure and Optimize Your Site
-
Set up an SSL certificate (usually available via your hosting provider)
-
Install essential plugins (security, SEO, backups)
-
Choose a theme that suits your needs
-
Configure permalinks and general settings

