How to Install WordPress Locally
A Bonus Video Guide to install WordPress available at the bottom.
Install WordPress on your local computer to allow you to build and test websites without needing an online server. WAMP (Windows, Apache, MySQL, PHP) provides everything you need to run WordPress locally.
Pre-Installation Checklist
Before you begin, make sure you have the following ready:
- Local Server (WAMP installed)
- Download WAMP from https://www.wampserver.com and install it.
- Once installed, start WAMP and ensure the icon in your system tray turns green, meaning all services (Apache, MySQL) are running.
- Database in Your Server
- You’ll need a MySQL database to store your WordPress data.
- You’ll create this in phpMyAdmin (explained in the steps below).
- WordPress Zip File
- Download the latest version of WordPress from https://wordpress.org/download/.
- Save it somewhere you can easily access, such as your Downloads folder.
Step 1: Create a Database in WAMP
- Start WAMP Server.
- Launch WAMP from your desktop or Start Menu.
- Wait for the WAMP icon in the taskbar to turn green.
- Open phpMyAdmin.
- Click the WAMP icon → phpMyAdmin, or go to http://localhost/phpmyadmin.
- Log in.
- Default username:
root - Leave the password field blank and click Go (unless you’ve set a password).
- Default username:
- Create a new database.
- Click Databases at the top.
- Enter a name for your database (e.g.,
wordpress_db). - Click Create.
Step 2: Download and Extract WordPress
- Download WordPress.
- Go to https://wordpress.org/download/ and click Download WordPress.
- You’ll get a
.zipfile (e.g.,wordpress-6.x.zip).
- Extract the WordPress folder.
- Unzip the file using Windows Explorer or any extraction tool.
- You’ll get a folder named wordpress.
- Move the folder to your WAMP “www” directory.
- Navigate to: C:\wamp64\www\
- Copy and paste (or move) the wordpress folder here.
Optionally, rename the folder to your project name (e.g.,mywebsite).
Step 3: Install WordPress
- Open your browser and go to: http://localhost/wordpress (Or replace
wordpresswith the folder name you used.) - Select your language and click Continue.
- WordPress will ask for database details.
Click Let’s go! and enter:
Database Name: the one you created earlier (e.g.,wordpress_db)
Username:root
Password: (leave blank)
Database Host:localhost
Table Prefix:wp_(you can leave this as it is) - Click Submit, then Run the Installation.
- Fill in your site details:
Site Title: e.g., “My Local Site”
Username: e.g.,admin
Password: choose a secure password
Email Address: your email (used for password resets) - Click Install WordPress.
- Once complete, you’ll see a success message — click Log In and use your credentials.
You’re Done!
You’ve successfully installed WordPress locally on your WAMP server. You can now access your local site anytime by visiting: http://localhost/wordpress (or the name you used).
Next Steps
- Explore the WordPress Dashboard (
http://localhost/wordpress/wp-admin) - Install themes and plugins.
- Experiment safely before moving your site online.

