How to Install XAMPP Step by Step for Beginners (Complete Guide 2026)

How to Install XAMPP Step by Step for Beginners

Complete Guide 2026 — build and test websites on your own computer

$ open http://localhost/ -- your own server, running right on this machine

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:

XCross-platform — works on Windows, Linux, and macOS.
AApache — the web server that serves your pages.
MMariaDB (or MySQL in older versions) — stores your data.
P + PPHP and Perl — the languages that power your site's logic.

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
Real example

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:

Operating SystemWindows 10 or Windows 11
Memory (RAM)At least 2GB
StorageAbout 1GB free space
PermissionsAdministrator access on the computer

06

How to Download XAMPP

XAMPP is free to download for Windows, macOS, and Linux from the official Apache Friends website.

Apache Friends XAMPP download page
Official download

Always download XAMPP from apachefriends.org to make sure you get the latest, safest version.

  1. Visit the official site. Open your browser and go to https://www.apachefriends.org/download.html.
  2. 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.
  3. Click Download. The installer starts downloading automatically. It's usually around 150MB, so the wait depends on your internet speed.
  4. Save the installer. Pick an easy-to-find spot, like your Downloads folder or Desktop, and wait for it to finish. Save the XAMPP installer file
  5. 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). Downloads folder showing the XAMPP installer
  6. 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

  1. Open the installer. Double-click the file you downloaded. If Windows shows a security warning, click OK or Yes.
  2. Choose components. Leave the default components selected, then click Next. XAMPP installer component selection screen
  3. Choose the install folder. Leave the default path — C:\xampp — and click Next. XAMPP installer folder selection screen
  4. Start the installation. Click Next again and wait for it to finish. XAMPP installation progress bar
  5. Finish up. Check the box for "Start the Control Panel," then click Finish. The XAMPP Control Panel opens automatically. XAMPP installation finish screen

08

How to Start Apache and MySQL

  1. Open the XAMPP Control Panel.
  2. Click Start next to Apache.
  3. Click Start next to MySQL.
XAMPP Control Panel with Start buttons for Apache and MySQL

If both rows turn green, your local server is running correctly.

Apache and MySQL rows showing green in the Control Panel

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).

Opening the XAMPP Control Panel from the Start menu

The version number shows at the top of the window, something like XAMPP Control Panel v3.3.0.

XAMPP Control Panel showing the version number

Method 2 — In the Browser

With Apache running, open http://localhost/dashboard/ and select PHPInfo to see the PHP and server version.

XAMPP dashboard PHPInfo page

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. Admin button next to MySQL in the Control Panel
  • Option 2: Open your browser and go to http://localhost/phpmyadmin/ directly.

Both methods open the same phpMyAdmin page:

The phpMyAdmin homepage

11

Creating and Checking a Database

Create a new database

  1. Open phpMyAdmin.
  2. Click New in the left sidebar. Clicking New in phpMyAdmin's sidebar
  3. Enter a database name.
  4. Click Create. Your database is ready. New database created in phpMyAdmin

Check an existing database

Viewing an existing database and its tables
  1. Open phpMyAdmin.
  2. Look at the left sidebar for the list of databases.
  3. 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.

Fix 1 — find the culpritOpen the Control Panel, click Netstat, and see which app is using Port 80 or 443. Close it if you don't need it.
Fix 2 — stop IISPress Windows + R, type services.msc, find World Wide Web Publishing Service, right-click it, and choose Stop.
Fix 3 — change the portSwitch Apache to a different port, like 8080. Afterward, visit your site at http://localhost:8080.
Fix 4 — run as administratorClose the Control Panel, right-click it, and choose "Run as administrator," then try again.

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.

Fix 1 — check Port 3306Open Netstat in the Control Panel and check what's using Port 3306. Stop any other MySQL service you find.
Fix 2 — restart as administratorClose XAMPP, reopen it as Administrator, then click Start next to MySQL.
Fix 3 — restore a backupIf the database files are damaged, close XAMPP, open the xampp/mysql folder, and restore your backup files if you have them. Always back up before editing this folder.
Fix 4 — change the portSwitch MySQL to a different port, such as 3307, in the XAMPP configuration, then restart it.
Prevent problems before they start

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.

Post a Comment

Previous Post Next Post