How to Install Joomla on Your Windows 11 Computer Using XAMPP
Joomla on Windows 11 runs locally by using XAMPP to turn your PC into a web server without a live host. Joomla is free website software that lets you build pages offline, and XAMPP provides the backend tools like PHP and a database to make it run.
Testing sites on your own machine saves money and time before you launch them online. You need a Windows 11 PC, the XAMPP installer, and the Joomla installation files to get everything set up in a few simple steps.
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 software package that turns your Windows 11 computer into a local web server so you can test websites offline. It includes Apache for showing web pages, MariaDB for storing site data, and PHP to run applications like Joomla without needing an internet connection.
- 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
You need to create a blank database using phpMyAdmin or the command line before you install Joomla on XAMPP. Open the XAMPP Control Panel, start the MySQL service, open phpMyAdmin in your web server browser, and create a new database specifically for your Joomla files.
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
Download the latest installation package directly from the official Joomla website to set up Joomla on your Windows 11 computer using XAMPP. Save the zip folder, extract the files, and place them inside the C:\xampp\htdocs directory so your local server can read them.
- 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 make your new site open automatically when you visit http://localhost on your Windows 11 computer by editing the default index files in your XAMPP folder. Rename or replace the standard start page inside C:\xampp\htdocs so your browser loads the Joomla installer right away.
To do this, edit the file 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
You finish the setup by opening http://localhost in your web browser on Windows 11 to launch the on-screen Joomla installation wizard. Follow the prompts to choose your language, connect the database you made earlier, and create your administrator login details.
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.
Running Joomla on your Windows 11 computer using XAMPP gives you a complete offline environment for building and testing websites. You now have a working local server, a dedicated database, and the core Joomla files ready for your web development projects.
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!