How to Install XAMPP Step by Step for Beginners
Complete Guide 2026 — build and test websites on your own computer
If you want to build websites on your own computer, you need a local server. One of the most popular tools for this is XAMPP.
XAMPP lets you build, test, and run websites before putting them on a live web server. It's free, easy to install, and works on Windows, macOS, and Linux. This guide explains everything in simple English — what XAMPP is, why it's useful, how to install it, and how to create your first database.
01
What is XAMPP?
XAMPP is free software that turns your own computer into a local web server. It lets developers, students, and beginners build websites without paying for hosting or needing an internet connection.
The name XAMPP stands for:
All of these come bundled in one installer, which is exactly why XAMPP is so easy to set up.
02
History of XAMPP
XAMPP was created by Apache Friends in 2002. Before XAMPP existed, developers had to install Apache, PHP, and MySQL one at a time — a slow, fiddly process. XAMPP solved that by packing everything into a single installer. Today, millions of developers use it to learn web development and test websites locally.
03
Why Use XAMPP?
- Free to use
- Easy to install
- Works without an internet connection
- Supports PHP and MySQL/MariaDB
- Great for beginners
- A safe place to test websites before going live
- Saves money — no hosting needed while you learn
Say you're building a WordPress site for a client. Instead of testing every change on the live website — where visitors could see a broken page — you build and test it first on XAMPP, on your own computer. Once everything works, you upload it to the real server.
04
Features of XAMPP
- Apache web server
- MariaDB database
- PHP support
- Perl support
- phpMyAdmin — a visual tool for managing databases
- FileZilla FTP Server
- Simple Control Panel to start and stop everything
- Cross-platform support
05
System Requirements
Before installing, make sure your computer has:
06
How to Download XAMPP
XAMPP is free to download for Windows, macOS, and Linux from the official Apache Friends website.
Always download XAMPP from apachefriends.org to make sure you get the latest, safest version.
- Visit the official site. Open your browser and go to
https://www.apachefriends.org/download.html. - Choose your operating system. Options include Windows, Linux, and macOS. On Windows, pick the 64-bit installer — it's the right choice for most people.
- Click Download. The installer starts downloading automatically. It's usually around 150MB, so the wait depends on your internet speed.
- Save the installer. Pick an easy-to-find spot, like your Downloads folder or Desktop, and wait for it to finish.
- Check the download is complete. Open your Downloads folder and confirm the file is there. On Windows it looks something like
xampp-windows-x64-8.x.x-installer.exe(the version number may differ). - Prepare for installation. Close other apps, make sure you have administrator permission, and confirm you have at least 1GB of free space.
07
How to Install XAMPP Step by Step
- Open the installer. Double-click the file you downloaded. If Windows shows a security warning, click OK or Yes.
- Choose components. Leave the default components selected, then click Next.
- Choose the install folder. Leave the default path —
C:\xampp— and click Next. - Start the installation. Click Next again and wait for it to finish.
- Finish up. Check the box for "Start the Control Panel," then click Finish. The XAMPP Control Panel opens automatically.
08
How to Start Apache and MySQL
- Open the XAMPP Control Panel.
- Click Start next to Apache.
- Click Start next to MySQL.
If both rows turn green, your local server is running correctly.
09
How to Check Your XAMPP Version
Knowing your version helps when you're following a tutorial or fixing a problem. There are two easy ways to check.
Method 1 — In the Control Panel
Open the XAMPP Control Panel from the Start menu (or from C:\xampp on Windows).
The version number shows at the top of the window, something like XAMPP Control Panel v3.3.0.
Method 2 — In the Browser
With Apache running, open http://localhost/dashboard/ and select PHPInfo to see the PHP and server version.
10
How to Open phpMyAdmin
phpMyAdmin is a web-based tool built into XAMPP. It lets you create, edit, delete, and manage databases with a simple visual interface — no need to type SQL commands for basic tasks.
Before opening it, make sure both Apache and MySQL are running (both rows green in the Control Panel).
Two ways to open it
- Option 1: In the Control Panel, click the Admin button next to MySQL — your browser opens phpMyAdmin automatically.
- Option 2: Open your browser and go to
http://localhost/phpmyadmin/directly.
Both methods open the same phpMyAdmin page:
11
Creating and Checking a Database
Create a new database
- Open phpMyAdmin.
- Click New in the left sidebar.
- Enter a database name.
- Click Create. Your database is ready.
Check an existing database
- Open phpMyAdmin.
- Look at the left sidebar for the list of databases.
- Click your database name to view its tables and data.
12
Common Problems and Solutions
The two most common issues are Apache or MySQL failing to start — usually because another program is already using the same port.
Problem 1: Apache Won't Start
The Start button flips back on its own, or you see an error in the log window.
Common causes: something else is already using Port 80 (Skype, VMware, Microsoft IIS) or Port 443, or another web server like Nginx is running.
Windows + R, type services.msc, find World Wide Web Publishing Service, right-click it, and choose Stop.http://localhost:8080.Problem 2: MySQL Won't Start
The service stops right after starting, or shows an error.
Common causes: another MySQL/MariaDB server is already using Port 3306, database files got damaged after an unexpected shutdown, or a different program is on that same port.
xampp/mysql folder, and restore your backup files if you have them. Always back up before editing this folder.Always stop Apache and MySQL before shutting down your computer, avoid installing more than one web server at a time, back up your databases regularly, and run the Control Panel as Administrator.
13
Tips for Beginners
- Install XAMPP at
C:\xampp— the default location. - Always stop Apache and MySQL before shutting down your computer.
- Keep backup copies of your databases.
- Practice using phpMyAdmin until it feels familiar.
14
Conclusion
XAMPP is one of the best tools for beginners who want to learn web development. It's free, easy to install, and includes everything you need to build and test websites on your own computer — without touching a live server.
In this guide, you learned what XAMPP is, how to download and install it, how to start Apache and MySQL, how to open phpMyAdmin, how to create a database, and how to fix the most common problems. As you keep practicing, you can use XAMPP to build PHP applications, connect to MySQL or MariaDB, and even install WordPress locally before going live.
Next step: download the installer, follow the steps above, and open http://localhost/ to see your own server running.
15
Frequently Asked Questions
Is XAMPP free?
Yes. XAMPP is completely free and open-source, for Windows, macOS, and Linux, with no fees to download, install, or use.
Can I use XAMPP without an internet connection?
Yes. Once installed, XAMPP runs as a local server, so everything — files, databases, and websites — stays on your own computer. You only need internet to download XAMPP itself or install updates.
Is XAMPP good for beginners?
Yes. It's one of the easiest local server tools to set up, with a simple installer and Control Panel. Many schools and online courses use it for exactly that reason.
Does XAMPP include MySQL?
Recent versions include MariaDB instead, which is fully compatible with MySQL. Almost every PHP project built for MySQL will run the same way on MariaDB.
Can I build PHP websites with XAMPP?
Yes. XAMPP bundles PHP, Apache, and MariaDB together, so you can build and test dynamic PHP websites — personal projects, school work, or even WordPress sites — right on your computer.
Where are my website files stored in XAMPP?
Inside the htdocs folder in your XAMPP installation — by default, C:\xampp\htdocs on Windows. Once your project is there, view it at http://localhost/your-project-folder/.
How do I stop Apache and MySQL?
Open the XAMPP Control Panel and click Stop next to each one. Do this before shutting down your computer or whenever you're done working.
Why can't I open http://localhost?
Check that Apache is actually running, make sure nothing else is using Port 80, restart the Control Panel as Administrator, and check that your firewall or antivirus isn't blocking Apache.
What is phpMyAdmin?
A web-based tool built into XAMPP for managing MySQL/MariaDB databases visually — create, edit, import, and export data without writing SQL by hand. Open it at http://localhost/phpmyadmin/.
Can I use XAMPP to install WordPress?
Yes. XAMPP is a common way to build and test a WordPress site locally before publishing it to a live hosting server.