Step by step guide to install wordpress locally
Want to build or test a WordPress website on your own computer before making it live? Setting up WordPress locally with XAMPP is the best way to do that.
In this guide, we’ll show you step-by-step how to install WordPress locally using XAMPP — no technical background needed!
Step 1: Download & Install XAMPP
- Go to the XAMPP official website.
- Download the version suitable for your operating system (Windows/macOS/Linux).
- Install it just like any other software — keep default settings and finish the setup.
- After installation, open the XAMPP Control Panel.
- Start Apache and MySQL modules.
🟢 If both turn green, you’re good to go!
Step 2: Download WordPress
- Visit the official WordPress website.
- Click “Download WordPress” and save the .zip file.
- Extract the .zip file.
- Copy the WordPress folder and paste it into this path:
C:\xampp\htdocs\ (For Windows)
or
/Applications/XAMPP/htdocs/ (For macOS)
🔁 You can rename the folder to your project name (e.g., mywebsite).
Step 3: Create a Database in phpMyAdmin
- Open your browser and go to:
http://localhost/phpmyadmin - Click on the Databases tab.
- Enter a name for your new database (e.g., mywebsite_db).
- Click Create.
📌 No need to add tables — WordPress will handle that.
Step 4: Run WordPress Setup
- Go to your browser and type:
http://localhost/mywebsite
(Replace mywebsite with your folder name) - Select your language and click Continue.
- Now fill in the database details:
- Database Name: the one you just created
- Username: root
- Password: leave it empty
- Database Host: localhost
- Table Prefix: wp_ (you can leave this as it is)
- Database Name: the one you just created
- Click Submit → then click Run the Installation.
Step 5: Configure Your WordPress Site
Now, fill out your site details:
- Site Title: Anything you want
- Username: Your admin login name
- Password: Choose a strong password
- Email: Your email (for password recovery)
Uncheck the search engine visibility (optional for local setup).
Click Install WordPress.
Done! You’ll see a success message. Click Log In to access your local WordPress dashboard.
You’re All Set!
You’ve now installed WordPress locally with XAMPP!
Use this setup to:
- Build your website before going live
- Test plugins/themes safely
- Learn WordPress without any risk
Bonus Tip
Want to make your local site look like the live one? You can import themes, demo data, and plugins easily.
Need a Professional Website?
At Odiware Digital, we help businesses like yours get fully customized, high-performing WordPress websites — whether it’s for blogging, business, or eCommerce.
👉 Let’s build something great together!
📩 Contact us at sales@odiware.com
