What is XAMPP?
XAMPP is a completely free, open‑source Apache distribution that makes it easy to set up a local web server on your Windows computer. It includes Apache, MySQL, PHP, and phpMyAdmin – everything you need to develop and test websites or web applications offline. This guide walks you through the entire process step by step.
1. What You Need Before You Start
- A Windows PC (Windows 10, 11, or 8.1 recommended)
- At least 1 GB of free disk space (more recommended)
- Administrator rights on your computer (for installation)
- A stable internet connection to download the installer
- Optional but helpful: a basic understanding of web servers
2. Download the XAMPP Installer
- Open your browser and go to https://www.apachefriends.org
- Click the Windows icon (or "Download" button).
- Pick the latest stable version (e.g., 8.2.12). Choose 32‑bit (older PCs) or 64‑bit (modern).
- Click Download – the .exe file (≈150‑200 MB) will start downloading.
💡 Always download from the official site to avoid malware or bundled adware.
3. Run the Installer
- Double‑click the xampp‑windows‑x64‑*.exe file.
- If Windows asks, click Yes.
- Click Next in the installer wizard.
- Select Components – keep all for a full server, or uncheck extras if you only need Apache + MySQL. Click Next.
- Installation Folder – default is
C:\xampp. Keep it. Click Next. - Bitnami – uncheck if not needed. Click Next.
- Click Next again to start copying files – this may take a few minutes.
4. Complete the Installation
- When done, check "Do you want to start the Control Panel now?" and click Finish.
- The XAMPP Control Panel will open automatically.
5. Start Apache and MySQL
- Click Start for Apache – status turns green ("Running").
- Click Start for MySQL.
- Test: open your browser and go to
http://localhostorhttp://127.0.0.1. You should see the XAMPP welcome page.
6. Access phpMyAdmin (Database Manager)
- From the welcome page, click phpMyAdmin or go to
http://localhost/phpmyadmin. - You're logged in automatically (username:
root, no password). Create databases, manage tables, and run SQL queries.
7. Stop the Services (When Not In Use)
- Open the Control Panel (from Start menu if closed).
- Click the Stop buttons for Apache and MySQL.
8. Troubleshooting Common Issues
| Problem | Solution |
|---|---|
| Port 80/443 in use | Stop other services (IIS, Skype, TeamViewer) or change Apache's port in httpd.conf. |
| MySQL won't start | Check if another MySQL service is running in Windows Services and stop it. |
| phpMyAdmin "Access denied" | Edit config.inc.php and set auth_type = 'cookie'. |
| Control Panel won't open | Right‑click → "Run as administrator". |
| Missing MSVC runtime | Download and install Visual C++ Redistributable from Microsoft. |
9. Where to Go Next
- Website files:
C:\xampp\htdocs→ access viahttp://localhost/your-folder/ - PHP settings:
C:\xampp\php\php.ini - Apache config:
C:\xampp\apache\conf\httpd.conf
10. Uninstalling XAMPP (If Needed)
- Stop all services in the Control Panel.
- Run uninstaller from Start menu or
C:\xampp\uninstall.exe. - Delete
C:\xamppfolder manually (backup your website files first).
✅ Conclusion
You now have a fully functional local server environment on your Windows machine – completely free of charge. XAMPP is perfect for learning PHP, testing WordPress, developing web apps, or experimenting with databases without needing an internet connection.
🚀 Happy developing!
Need more help? Visit Apache Friends Docs.