How to Install Joomla on Your Windows 11 Computer Using XAMPP
You can install Joomla on your Windows 11 computer using XAMPP to create and manage websites locally.
Joomla is a powerful, open-source Content Management System (CMS) for building dynamic websites. XAMPP is a free, cross-platform web server solution stack package that includes Apache, MariaDB, PHP, and Perl, allowing you to run web applications on your PC.
This process is ideal for developers and beginners alike who want to test and develop Joomla sites without the need for live hosting, starting from Joomla version 4.x and XAMPP.
You’ll learn how to download and install XAMPP, configure it, and then proceed with the Joomla installation steps directly on your Windows 11 machine.
Install Joomla on Windows 11 by first installing and starting XAMPP. Then, create a Joomla database using XAMPP’s tools, download Joomla files to `C:xampphtdocsjoomla`, and modify `htdocsindex.php` to redirect to your Joomla folder. Finally, navigate to `http://localhost/` to complete the Joomla installation in your browser.
What is XAMPP?
XAMPP is a free tool that lets you run web applications, like Joomla, directly on your Windows 11 computer without needing an internet connection. It includes Apache to show your website, MariaDB for storing data, and PHP to make Joomla work.
- Apache (the web server that shows your site)
- MariaDB (a database to store your site’s information)
- PHP (a language that helps Joomla work)
You can use XAMPP to try out Joomla and other website tools on your PC before making your site live on the internet.
Step 1Install XAMPP
If you haven’t installed XAMPP yet, follow this easy tutorial here:
How to Install XAMPP on Windows 11
Once installed, open the XAMPP Control Panel to start working with your local web server.
Step 2Create a Database for Joomla
Your Joomla website needs a database to store all its information, and you can easily create one using XAMPP’s tools on your Windows 11 PC. You’ll open the XAMPP Control Panel, click the Shell button, and type `mysql -u root` to log into the database system.
Here’s how to do it using XAMPP’s built-in tools:
- Open the XAMPP Control Panel.
- Click the Shell button to open a command window.

XAMPP Shell Button - Type this command and press Enter to log into the database system:
mysql -u root - Now type these commands one by one (press Enter after each):
CREATE DATABASE joomladb CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;CREATE USER 'joomladbuser'@'localhost' IDENTIFIED BY 'your_password_here';GRANT ALL ON joomladb.* TO 'joomladbuser'@'localhost';FLUSH PRIVILEGES;exit
Replaceyour_password_herewith a password you create.
Can’t use the command line? No problem! You can also create the database and user using phpMyAdmin:
- In the XAMPP Control Panel, next to MySQL, click the Admin button.
- In phpMyAdmin, click Databases, enter
joomladbas the database name, and click Create. - Go to the Users tab, add a new user called
joomladbuserwith your chosen password, and give it all privileges on thejoomladbdatabase.
Step 3Download Joomla
To get Joomla running on your Windows 11 computer with XAMPP, download the latest Joomla files from their official website. Visit https://downloads.joomla.org/, download the zip file, then open `📁C:\xampp\htdocs`, create a folder named `joomla`, and extract the files there.
- Go to the official Joomla download page: https://downloads.joomla.org/
- Download the latest Joomla zip file.
- Open
C:\xampp\htdocson your computer. - Create a new folder here named
joomla. - Extract all the Joomla files you downloaded into this
joomlafolder.
C:\xampp\htdocs\joomla with Joomla files inside.
Step 4Make Joomla Show as Your Homepage
You can set Joomla as your default homepage when you visit `http://localhost` on your Windows 11 computer by changing the index file in your XAMPP `htdocs` folder. Edit the file `📁C:\xampp\htdocs\index.php` (or `index.html`) and replace its content to make Joomla appear first.
C:\xampp\htdocs\index.php (or index.html) and replace its content with this code:<?php
if (!empty($_SERVER['HTTPS']) && ($_SERVER['HTTPS'] == 'on')) {
$uri = 'https://';
} else {
$uri = 'http://';
}
$uri .= $_SERVER['HTTP_HOST'];
header('Location: '.$uri.'/joomla/');
exit;
?>
Something is wrong with the XAMPP installation :-(
- Save the file.
- Restart Apache in the XAMPP Control Panel by clicking Stop and then Start.
Step 5Open Joomla in Your Browser
After setting up your Joomla files and database, start the installation by opening `http://localhost` in your web browser on Windows 11. You will see the Joomla installation page where you can choose your language, enter your website’s name, click Next, and then set up your admin account.
http://localhost/
You should see the Joomla installation page.

Follow the steps on screen:
- Choose your language and enter your website’s name.
- Click Next.
- Set up your admin account by entering your name, username, password, and email.
- Click Next.
- On the database page, enter:
- Database Type: MySQLi
- Host: localhost
- Username: joomladbuser
- Password: the password you created earlier
- Database Name: joomladb
- Click Install Joomla.

Once installation is complete, you will see a success message.

Congratulations! Your Joomla website is now ready to use on your Windows 11 computer.
Summary
- XAMPP lets you run Joomla on your PC without needing the internet.
- You created a database for Joomla using either the command line or phpMyAdmin.
- You downloaded Joomla and placed it in the right folder inside XAMPP.
- You changed the homepage to open Joomla by default.
- You completed the Joomla setup by following the installation wizard in your browser.
XAMPP lets you run Joomla on your PC without needing the internet. You created a database for Joomla using the command line or phpMyAdmin, downloaded Joomla into the `htdocs` folder, and changed the homepage to open Joomla by default. Finally, you completed the Joomla setup in your browser.
Is XAMPP compatible with 🪟 Windows 11?
XAMPP is the most popular PHP development environment for Windows, OSX, and Linux platforms. It is a completely free and easy-to-install Apache distribution containing my SQL, PHP, and Perl. So, in this article, I'll show you how to install the XAMPP server on Windows 10/11.
How to run a Joomla website on localhost?
Provide the necessary. Information such as the database. Type host name username. And password in our case we use the default information for our database.
Was this guide helpful?
About the Author
Richard
Tech Writer, IT Professional
Richard, a writer for Geek Rewind, is a tech enthusiast who loves breaking down complex IT topics into simple, easy-to-understand ideas. With years of hands-on experience in system administration and enterprise IT operations, he’s developed a knack for offering practical tips and solutions. Richard aims to make technology more accessible and actionable. He's deeply committed to the Geek Rewind community, always ready to answer questions and engage in discussions.
No comments yet — be the first to share your thoughts!