Joomla Learn
Joomla LearnThe practical desk
Getting StartedInstallationTemplates & ExtensionsSecurityTroubleshooting

How to Install Localhost on Windows 11 with IIS

Learn how to install localhost on Windows 11 by enabling Internet Information Services, checking the default local page, and creating a site for your files.

How to Install Localhost on Windows 11 with IIS

If you are searching for how to install localhost, you probably need a private web server for testing a website on your own Windows computer. Windows 11 includes Internet Information Services, or IIS, so you can enable a local web server without downloading a separate server package.

This guide shows the complete beginner workflow: turn on IIS, confirm that localhost is working, and create a site that points to a folder on your computer. It also explains what this setup does and what you still need before running a Joomla website locally.

Windows 11 computer displaying a local IIS website in a browser

What does localhost mean?

Localhost is the name used to open a web service running on the same computer as your browser. It is useful when you want to test pages privately before publishing them to a live domain. A local site can help you check file changes, experiment with configuration, or learn how a content management system works without changing a public website.

Installing localhost does not install one universal application. Instead, you enable a local web server, place website files in a folder, and open that site through a browser. On Windows 11, IIS is the built-in web server used in this walkthrough.

What you need before installing localhost

Prepare these items before you begin:

  • A Windows 11 computer with permission to change Windows features.
  • A web browser for testing the local address.
  • A folder where you will keep your website files.
  • An administrator account or the ability to approve Windows feature changes.

The IIS installation provides the web server. It does not automatically provide PHP, a database server, or a Joomla installation. If your goal is Joomla, treat IIS as the web server layer and then prepare the additional software required by the Joomla version you plan to use.

How to install localhost with IIS on Windows 11

1. Open Windows Features

Open the Start menu and search for Windows Features. Select Turn Windows features on or off from the results.

This Windows dialog controls optional components that are already available in the operating system. You do not need to find a separate IIS installer for this basic setup.

2. Enable Internet Information Services

In the Windows Features list, find Internet Information Services and select its checkbox. Expand the entry so you can review the web server components.

For a basic local website, enable these areas:

  • Web Management Tools so you can manage sites through IIS Manager.
  • World Wide Web Services so IIS can serve web pages.

The exact subcomponents shown beneath these headings can vary with the Windows configuration. For the workflow in this guide, the important result is that IIS and its management tools are enabled.

Click OK after selecting the features. Windows will apply the changes. The process may take a short time, so wait for the feature installation to finish before testing the browser.

3. Test the default localhost page

Open your browser and enter:

http://localhost

If IIS is working, Windows displays its default IIS welcome page. This confirms that the local web server is installed and responding to browser requests.

At this point, localhost is installed in the practical sense that matters for a first test: IIS is running, the browser can reach it, and the default server response appears. You have not yet connected your own project folder to a separate site.

How to add your own local website in IIS

The default IIS page is useful for verification, but most people install localhost because they want to open their own files. IIS Manager lets you create a site with a name, a physical folder, and a browser binding.

1. Open IIS Manager

Open the Start menu, search for IIS Manager, and launch the application. In the Connections panel, expand your computer name and select Sites.

IIS Manager is the control panel for local websites. It is where you can create sites, choose their folders, and review the bindings that tell IIS how requests should reach them.

2. Create a website folder

Create or choose a folder for the files you want IIS to serve. For example, you might create a folder named my-local-site in a location you can find easily.

Place a simple HTML file in that folder so you can test the result. A file named index.html could contain:

<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <title>My Local Site</title>
</head>
<body>
  <h1>Localhost is working</h1>
</body>
</html>

Using a small test page first makes troubleshooting easier. If the page does not load, you can focus on the IIS site configuration before adding a larger application.

3. Add the site in IIS Manager

In IIS Manager, right-click Sites and select Add Website. Complete the fields as follows:

  • Site name: Enter a descriptive name such as My Local Site.
  • Physical path: Browse to the folder containing your website files.
  • Binding type: Leave this as http for the basic local setup.
  • Port: Use port 80 if it is available for this site.

Click OK to save the site. IIS now has a site definition that points to your selected folder.

4. Open the local site

Open a browser and visit http://localhost. If the new site is configured as the active site on that binding, you should see the page from your folder instead of the default IIS welcome page.

If you configured a different host name or port, use that exact binding in the browser. For example, a site on port 8080 would be opened with http://localhost:8080.

Installing localhost for Joomla development

IIS can serve static HTML immediately, but Joomla is a PHP application that also needs the supporting runtime and a database. Enabling IIS is therefore the first layer of a Joomla local environment, not the entire Joomla installation.

A practical Joomla workflow looks like this:

  1. Enable IIS and confirm that http://localhost responds.
  2. Prepare a PHP version and the required PHP extensions for the Joomla release you intend to use.
  3. Install and configure a supported database server.
  4. Place the Joomla files in the IIS site folder.
  5. Open the local Joomla URL and complete the web installer.
  6. Create the database connection details requested by the installer.
  7. Sign in to the administrator area and check the initial configuration.

For the next stage, use this Joomla setup tutorial for the application files, PHP preparation, database connection, and installer steps. If you are learning the platform from scratch, a Joomla beginner tutorial can help you understand what to do after the installation finishes.

Do not assume that a working IIS welcome page means Joomla is ready. It only proves that the web server can answer a basic request. Joomla still needs a compatible application environment and a database.

Common localhost problems and fixes

The Windows Features window cannot enable IIS

Check that you have permission to change optional Windows features. If Windows asks for approval, accept the prompt with an administrator account. Allow the feature process to finish, then restart IIS Manager or the browser before testing again.

http://localhost does not show the IIS page

First check the address carefully. Use http://localhost rather than a search query. Then confirm that Internet Information Services, Web Management Tools, and World Wide Web Services were selected in Windows Features.

If you created a custom site, review its binding and port in IIS Manager. Another application may already be using port 80, or the site may be configured for a different host name or port.

The browser shows the wrong site

IIS chooses a site based on its binding. If multiple sites use the same host name and port, the request may not reach the site you expected. Review the entries under Sites, compare their bindings, and use a distinct port or host name for the site you are testing.

Also check the physical path. A correctly configured binding still points to the wrong page if the site folder does not contain the files you intended to serve.

The page lists files or returns an error

Check that the physical path is correct and that the folder contains an appropriate start page such as index.html. For a PHP or Joomla site, a static HTML check is not enough. Confirm the PHP integration and application configuration separately.

Keep the first test simple. A small HTML page can tell you whether the problem is the web server, the folder path, or the application itself.

Joomla does not complete its installation

A successful localhost test does not verify PHP or database connectivity. Recheck the PHP version, required extensions, database service, database name, username, password, and host values used by the Joomla installer. For database concepts and the full application workflow, review the Joomla database setup guidance.

Localhost best practices for beginners

Keep development files separate

Use a dedicated folder for local sites instead of mixing test files with personal documents. Clear folder names make IIS paths easier to review and reduce the chance of selecting the wrong directory.

Record your bindings

Write down the site name, physical path, host name, and port for each project. This is especially helpful when you work on more than one local website.

Test in small steps

Verify IIS first, then verify a plain HTML page, and only after that add PHP, Joomla, extensions, or custom configuration. Testing one layer at a time gives you a clear starting point when something stops working.

Treat localhost as a development environment

A local IIS site is intended for work on your own computer. It is not automatically configured as a secure public hosting environment. Do not expose a development site to the internet simply because it opens successfully on your computer.

Frequently Asked Questions

Is localhost already installed on Windows 11?

The localhost name is available as a local address, but a web server still needs to be enabled before a browser can display a website there. On Windows 11, IIS provides the web server used in this guide.

Can I install localhost without IIS?

Yes, IIS is one way to create a local web server on Windows. This guide uses IIS because it is available as a Windows feature and includes IIS Manager for creating sites. Other local development stacks use different server software and setup steps.

Does installing IIS install Joomla?

No. IIS serves the website, while Joomla needs its own files, a compatible PHP environment, and a database. After IIS responds at localhost, continue with the Joomla-specific installation process.

Can I use a different port than 80?

Yes. IIS sites can use another available port. Include that port in the browser address, such as http://localhost:8080, and make sure the IIS binding uses the same port.

How do I remove a local IIS website?

Open IIS Manager, select the site under Sites, and use the site management options to stop or remove it. Removing a site definition is separate from deleting the website folder, so review the folder before deleting any files.

Conclusion

To install localhost on Windows 11, enable Internet Information Services through Windows Features, include IIS Manager and World Wide Web Services, and verify the result at http://localhost. Then create an IIS website that points to your own project folder and test it with a simple page.

For Joomla development, use this as the web server foundation. Prepare PHP and a database next, then run the Joomla installer and test the administrator area locally before publishing anything to a live site.