CMS Windows

Installing Joomla Locally with XAMPP on Windows 11

Richard
Written by
Richard
Mar 4, 2025 Updated Apr 17, 2026 4 min read

This guide explains how to set up Joomla on your own computer using xampp-on-windows-11/" class="sal-link" rel="noopener" target="_blank" data-sal-id="15148">XAMPP on Windows 11.

XAMPP is a free tool that turns your computer into a web server. It includes everything you need to run websites, like Apache, MariaDB, and PHP. You can also use XAMPP on Windows or Ubuntu to run PHP apps. Joomla is a popular, free system used to build and manage professional websites.

Why run Joomla locally?

Running Joomla on your computer lets you build and test your website privately. You can experiment with designs and features before you ever go live on the internet.

What happens when you are done?

Once finished, you will have a fully functional Joomla website running on your machine. You can access it through your web browser to create content and manage your site settings.

Install XAMPP

XAMPP bundles all the necessary software into one package. If you haven’t installed it yet, follow these guides:

Install XAMPP on Windows 11

Install XAMPP on Ubuntu 24.04

Create a Joomla Database

Joomla needs a database to store your site’s information. We will create a blank database and a user account to manage it.

Open the XAMPP Control Panel and click the ‘Shell’ button to open the command window. (Requires admin privileges)

XAMPP shell button

We will create a database named ‘joomladb’ and a user named ‘joomladbuser’. Use the following commands:

mysql -u root

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

Remember to replace ‘your_password_here’ with your own secure password. If you prefer not to use the command line, you can click the ‘Admin’ button next to MySQL in the XAMPP Control Panel to use the phpMyAdmin web interface instead.

Drupal folder for xampp database

Download Joomla Files

Now, let’s prepare the files for your site.

  1. Navigate to C:\xampp\htdocs on your computer.
  2. Create a new folder named joomla.
Drupal folder for xampp

Download the Joomla files from official download page and extract them directly into your new C:\xampp\htdocs\joomla folder.

Next, open the C:\xampp\htdocs\index.html file in a text editor to update your redirect settings. Replace the contents with the following code so your browser opens your site automatically:

🐘PHP
<?php if (!empty($_SERVER['HTTPS']) && ('on' == $_SERVER['HTTPS'])) { $uri = 'https://'; } else { $uri = 'http://'; } $uri .= $_SERVER['HTTP_HOST']; header('Location: '.$uri.'/joomla/'); exit;?>

Save the file. Go back to the XAMPP Control Panel and stop and start the Apache server to apply these changes.

Finalize the Setup

Open your web browser and go to http://localhost/joomla. You will see the Joomla installation screen.

Joomla select installation language and site name

Follow the on-screen instructions to set your site name, admin username, and password.

Joomla set up account details

When asked for database details, enter the database name (joomladb), the username (joomladbuser), and the password you created earlier. Click “Install Joomla” to finish.

Configuring Joomla database connection settings within the XAMPP local environment

Your site is now ready to use!

Joomla setup complete

Summary

By installing XAMPP, you create a local environment to host your website. You created a database, set up a user with full permissions, and configured the Joomla files in your C:\xampp\htdocs folder. You can now use the browser-based installation wizard to customize your site and begin building your content.

[joomla]

[C:xampphtdocsjoomla]

What is XAMPP and why do I need it for Joomla installation?

XAMPP is a free and open-source web server solution stack that includes Apache, MariaDB, and PHP. It allows you to run PHP applications like Joomla locally on your computer, making it easier to develop and test your website.


How do I create a database for Joomla in XAMPP?

To create a database for Joomla, open the XAMPP control panel and launch the command shell. Log in to the MariaDB server using 'mysql -u root', then run the commands to create a database and user, granting the user full access to the database.


Where do I download Joomla files for installation?

You can download the Joomla files from the official Joomla download page. After downloading, extract the files into a newly created folder in the C:xampphtdocs directory to prepare for installation.


How do I configure the index.html file in XAMPP for Joomla?

After copying the Joomla files to the joomla folder, navigate to the C:xampphtdocs directory and edit the index.html file. Change the redirection path from /Dashboard/ to /joomla/ to ensure that requests to the server hostname display your Joomla site.


Can I use phpMyAdmin instead of the command line for database setup?

Yes, you can use phpMyAdmin for database setup if you prefer a graphical interface. Simply click the Admin button next to MySQL in the XAMPP control panel to access phpMyAdmin, where you can create a new database and user easily.

Was this guide helpful?

Richard

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.

Leave a Reply

Your email address will not be published. Required fields are marked *

Exit mobile version