How to Install WordPress on WampServer Localhost
WampServer lets you install WordPress locally, avoiding broken themes, half-finished pages, and mistakes appearing in front of visitors on a live host. A local installation removes all of that pressure. In this guide you will install WordPress on WampServer localhost from start to finish: downloading WordPress, creating a database in phpMyAdmin, running the famous five-minute installer, and logging in to your own private dashboard. You need WampServer already running first, so complete the steps to download and install WampServer on Windows if you have not yet, and keep our walkthrough on how to create a database in phpMyAdmin nearby for reference.
What You Need Before Installing WordPress Locally
Before you start, confirm these basics are in place:
- WampServer 3.x installed, with the tray icon showing green
- A modern browser such as Chrome, Edge, or Firefox
- Enough free disk space for WordPress and your media uploads
- About fifteen minutes of uninterrupted time
No domain name, hosting account, or payment is needed. Everything in this tutorial stays on your own computer.
Step 1: Download WordPress
Step 1: Visit the official WordPress.org website and download the latest WordPress package as a ZIP file.
Step 2: Wait for the download to finish completely. The file is small and should only take a moment on a normal connection.
Always use the package from WordPress.org. Do not use installer copies from random sites, which may be outdated or modified.
Step 2: Extract WordPress Into the www Folder
Step 1: Open the downloaded ZIP file and extract it. You will get a folder named wordpress containing all the core files.
Step 2: Copy that folder into your WampServer web root at C:\wamp64\www.
Step 3: Rename the folder to something meaningful for your project, for example mysite. Short, lowercase names without spaces make the cleanest local addresses.
Your site will now live at localhost/mysite. Keeping each project in its own named subfolder lets you run several local WordPress sites side by side without them interfering with each other.
Step 3: Create a Database in phpMyAdmin
WordPress stores posts, pages, users, and settings in a MySQL database, so you must create an empty one before running the installer.
Step 1: Left-click the WampServer tray icon and open phpMyAdmin.
Step 2: Log in with the username root and leave the password blank — that is the default on a fresh WampServer installation.
Step 3: Click the Databases tab, enter a database name matching your project, such as mysite, and click Create. Choose the utf8mb4 collation if you are asked.
Write down the database name exactly. You will type it into the WordPress installer in the next step, and a spelling mismatch is the most common cause of a failed connection.
Step 4: Run the WordPress Installer
Step 1: In your browser, go to localhost/mysite. The WordPress setup screen should appear automatically.
Step 2: Choose your language and click Continue.
Step 3: Click Let's Go on the welcome screen, then enter your database details: database name as created above, username root, password left blank, database host localhost, and table prefix wp_.
Step 4: Click Submit. If the details are correct, WordPress confirms it can connect and offers to run the installation. Click Run the Installation.
Step 5: Fill in your site information: a site title, an admin username, a strong password, and your email address. On a local install these are for practice, but build good habits anyway — never use admin as the username.
Step 6: Click Install WordPress. After a few seconds you will see a success message with a Log In button.
Step 5: Log In and Verify the Installation
Click Log In, or visit localhost/mysite/wp-admin, and enter the username and password you just created. You should land on the WordPress dashboard. Visit the front end from the dashboard menu to confirm the default theme loads correctly. Create a test post, upload a test image, and install a free plugin to confirm everything — database, file uploads, and PHP — is working together.
| Item | Local Value |
|---|---|
| Site address | localhost/mysite |
| Admin area | localhost/mysite/wp-admin |
| Database name | As created in phpMyAdmin, e.g. mysite |
| Database user | root |
| Database password | Blank by default |
| Database host | localhost |
Common WordPress on WampServer Errors
An "Error establishing a database connection" message almost always means a typo in the database name, username, or host, or that the database was never created. Re-check the details against phpMyAdmin exactly. If the browser shows a folder listing or a WampServer page instead of the installer, confirm the WordPress files are inside C:\wamp64\www\mysite and not nested one folder deeper. If uploads fail later, check that the tray icon is green and that you are using a PHP version supported by your WordPress version — switching takes seconds from the tray icon's PHP menu. For background on the platform itself, the WordPress article on Wikipedia is a useful read before you start customising.
Frequently Asked Questions
Is installing WordPress on WampServer free?
Yes. WampServer is free, WordPress is free and open source, and a local installation needs no domain or hosting. You only pay for anything if you later choose premium themes or plugins.
What are the default database login details in WampServer?
On a fresh installation the MySQL username is root with a blank password, and the database host is localhost. These defaults are for local development only and should never be used on a public server.
Can visitors see my local WordPress site?
No. A site on WampServer localhost is only accessible from your own computer by default. When you are ready to go public, you migrate the site to real hosting instead.
Can I install more than one WordPress site locally?
Yes. Repeat the same process: a new subfolder inside C:\wamp64\www, a new database in phpMyAdmin, and a separate installation for each project.
Conclusion
Installing WordPress on WampServer follows a simple pattern: extract WordPress into C:\wamp64\www, create a database in phpMyAdmin, connect the two in the installer, and log in at wp-admin. Once you have done it once, future installs take only a few minutes. Use this private site freely — test themes, break things, and learn — and your skills will transfer directly to any live WordPress host.