---
description: We look into step by step process to install XAMPP and the Netbeans IDE for PHP programs. For Other Operating Systems, installation steps are similar.
title: How to Download &#038; Install XAMPP on Windows
image: https://www.guru99.com/images/xampp-download-install-on-windows.png
---

 

[Skip to content](#main) 

**⚡ Smart Summary**

XAMPP and NetBeans together give beginners a complete local PHP development stack. XAMPP bundles Apache, MariaDB, PHP, and Perl into one installer, while the NetBeans editor adds syntax highlighting, autocomplete, and debugging for writing PHP projects.

* 📦 **What XAMPP Is:** XAMPP is a free, cross-platform package that installs Apache, a database engine, PHP, and Perl in a single step.
* 🖥️ **Local Server:** PHP needs a web server to run, and XAMPP supplies Apache so you can test PHP pages on your own computer.
* 🎛️ **Control Panel:** The XAMPP control panel starts, stops, and configures Apache and MySQL or MariaDB without any command-line work.
* 📁 **Key Folders:** The htdocs folder holds your PHP files, while the php folder contains php.ini for tuning how PHP behaves.
* 🧩 **Why an IDE:** A PHP IDE such as NetBeans highlights syntax and flags errors early, which a plain text editor cannot do.
* ▶️ **First Project:** NetBeans creates a PHP application inside htdocs and runs it on the local server to print a simple Hello World page.
* 🤖 **AI Assist:** AI tools can guide XAMPP configuration, resolve Apache port conflicts, and help write or debug PHP code inside NetBeans.

[ Read More ](javascript:void%280%29;) 

![Download and Install XAMPP and NetBeans](https://www.guru99.com/images/xampp-download-install-on-windows.png)

## What is XAMPP?

**XAMPP** is an open-source, cross-platform web server that consists of a web server, a MySQL or MariaDB database engine, and PHP and [Perl](https://www.guru99.com/perl-tutorials.html) programming packages. It is compiled and maintained by Apache Friends. It allows users to build and test websites on a local web server on their computer, and it supports Windows, Linux, and Mac.

The acronym XAMPP stands for:

* X – \[cross-platform operating systems\] meaning it can run on any OS: Mac OS X, Windows, [Linux](https://www.guru99.com/unix-linux-tutorial.html) etc.
* A – [Apache](https://www.guru99.com/apache.html) – this is the web server software.
* M – MySQL or MariaDB – Database.
* P – [PHP](https://www.guru99.com/php-tutorials.html)
* P – Perl – scripting language

## Why use XAMPP?

XAMPP provides an easy-to-use control panel to manage Apache, MySQL, and other programs without using commands. To use PHP, we need to install Apache and MySQL. It is not easy to install Apache and configure it, as it needs to be set up and integrated with PHP and Perl, among other things. XAMPP deals with all the complexity of setting up and integrating Apache with PHP and Perl.

Unlike [Java](https://www.guru99.com/java-tutorial.html), which runs with the Java SDK only, PHP requires a web server to work.

## How to Install XAMPP

We look into the step by step process to install XAMPP for Windows. For other operating systems, the XAMPP installation steps are similar.

**Step 1) Download XAMPP**

Click here to download XAMPP for Windows: <https://www.apachefriends.org/download.html>

**Step 2) Start Installation**

XAMPP installation is just like installing any other Windows program. There are, however, a few things that we must note.

**Step 3) Run the Setup**

After you have downloaded XAMPP, run the setup. The warning message dialog window shown below appears.

[](https://www.guru99.com/images/2013/04/xampp%5Fuac.png)

**Step 4) Change User Control Settings**

If you are using an older Windows version such as Vista or Windows 7, make sure that you deactivate the User Account Control feature. To do this, select Control Panel > User Accounts > Change User Access Control settings. The diagram below illustrates the main steps.

[](https://www.guru99.com/images/2013/04/deactivate%5Fuac.png)

**Step 5) Save the settings**

* After you have deactivated the User Account Control, click on the OK button on the warning message box.
* This time you get the following message

[](https://www.guru99.com/images/2013/04/uac%5Fdeactivated.png)

**Step 6) Click Next**

In the succeeding screen, click Next

[](https://www.guru99.com/images/2013/04/xampp%5Finstall%5Fstep%5F1.png)

**Step 7) Choose the Installation path**

In the next screen, change the installation path if required. Click Next

[](https://www.guru99.com/images/2013/04/xampp%5Finstall%5Fstep%5F2.png)

**Step 8) Check the necessary services**

In the next screen, select Apache and [MySQL](https://www.guru99.com/mysql-tutorial.html). You may optionally select FileZilla (FTP Client) if needed. Click Install

[](https://www.guru99.com/images/2013/04/xampp%5Finstall%5Fstep%5F3.png)

**Note:** a service is a long-running program in Windows that does not require user intervention. Services can be set to run automatically whenever the Windows operating system is started. **For you to use Apache and MySQL, they are supposed to be running in the background.** **Installing them as services runs both Apache and MySQL automatically in the background whenever you power up your computer.** If you have not installed Apache and MySQL as services, then you have to manually start them every time that you want to use them. You will have to do this from the XAMPP control panel.

**Step 9) Finish the installation**

On successful completion of installation, you will see the following window

[](https://www.guru99.com/images/2013/04/xampp%5Finstall%5Fstep%5F4.png)

* Click on the Finish button

Before we test our XAMPP installation, let us first look at the basic directories that we will be working with.

### RELATED ARTICLES

* [PHP Data Types, Variables, Constants, Operators ](https://www.guru99.com/data-types-variables-and-operators.html "PHP Data Types, Variables, Constants, Operators")
* [PHP Functions: Built-in, String & Numeric Examples ](https://www.guru99.com/functions-in-php.html "PHP Functions: Built-in, String & Numeric Examples")
* [PHP Live Project Training ](https://www.guru99.com/live-php-project-learn-complete-web-development-cycle.html "PHP Live Project Training")
* [Laravel Tutorial for Beginners ](https://www.guru99.com/laravel-tutorial.html "Laravel Tutorial for Beginners")

## Basic XAMPP Web Server Configuration

This XAMPP tutorial assumes that you have **installed XAMPP on drive C in Windows using the steps mentioned above**. The following is a list of the basic directories that you are supposed to be aware of.

[](https://www.guru99.com/images/2013/04/xampp%5Fdirectories.png)

* **htdocs**: this is the web root directory. All of our PHP code will be placed in this directory.
* **mysql** – this directory contains all the information related to the MySQL or MariaDB database engine, which by default runs on port 3306.
* **php** – this directory contains PHP installation files. It contains an important file named php.ini. This directory is used to configure how PHP behaves on your server.

**By default**, the Apache web server runs on **port 80**. If port 80 is taken by another web server, you can use a different port number. For this tutorial we will assume we are using port 80\. Note, if you use Skype, it uses the same port. Close Skype if you want to use XAMPP for PHP on port 80.

## XAMPP Control Panel

The control panel is used to manage programs installed via XAMPP. To open the XAMPP Server control panel:

* Click on the start menu
* Explore the programs directory and locate Apache Friends, then XAMPP as shown in the diagram below

[](https://www.guru99.com/images/2013/04/xampp%5Fcontrol%5Fpanel.png)

* The diagram below shows the control panel.

[](https://www.guru99.com/images/2013/04/xampp%5Fcontrol%5Fpanel2.png)

**1)** This section lists the installed services, modules and the process IDs (PIDs). A green tick means the module has been installed as a service. The red mark means it has not been installed as a service. To install a service, click on the red mark. If the button shows a green tick and you click on it, the control panel will ask you if you want to uninstall the system.

**2)** This section shows the port(s) associated with the modules. The actions section is for:

1. starting and stopping modules
2. Opening the administrative windows for Apache and MySQL
3. Opening configuration files for Apache, MySQL etc. to make changes
4. Viewing log files for the modules

**3)** This section contains useful utilities such as Netstat, Windows services shortcuts etc.

**4)** This section displays status information on the modules. The control panel can be used to:

* Install and uninstall services such as Apache, MySQL etc. that are installed via XAMPP
* Start and stop services.
* Open configuration files etc.

## Configure XAMPP

Let us now look at the basic configuration required before we start using our XAMPP installation for developing PHP-powered websites. Type the URL **http://localhost/xampp/** in your favorite browser. For this tutorial, we will be using Firefox as our web browser.

[](https://www.guru99.com/images/2013/04/configure%5Fxampp.png)

If you are able to see the above screen, then you have installed XAMPP successfully. The panel on the left-hand side contains links to useful information such as:

* The version of PHP installed
* Security settings of XAMPP
* Access to utilities such as phpMyAdmin etc.

Modern XAMPP releases ship with PHP 8.x, for example PHP 8.2, along with MariaDB as a drop-in MySQL replacement. The much older XAMPP 1.8.0 shown in some of these screenshots shipped PHP 5.4.4.

## What is the best PHP IDE?

A PHP IDE is a program that allows you to easily write PHP code. PHP IDEs are often equipped with syntax highlighting features and, in some cases, autocomplete features too. This means that if you write a PHP keyword that is known by the PHP interpreter, then the keyword will be highlighted in a different color from the one used for regular statements. The autocomplete feature automatically pops up known PHP keywords as you type them. Notepad can also be used to write and edit PHP code. The disadvantage of using an editor such as Notepad is that debugging the scripts becomes difficult, because it is not easy to spot errors such as misspelt keywords, unclosed braces etc. An IDE will highlight the statements with errors, so it is easy for you to spot them. The table below shows 5 popular PHP editors.

| Editor       | License     | Cross Platform | Brief description                                                                                                                                                                                                                                                          |
| ------------ | ----------- | -------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Netbeans IDE | Open Source | Yes            | Dedicated PHP coding environment with syntax highlighting and code completion for keywords and other known information. Supports integration with PHP MVC frameworks i.e. Zend, Symfony. Code history that shows the changes made to a file SFTP, FTP and SVN via plugins. |
| Dreamweaver  | Commercial  | Yes            | Supports HTML and PHP. Syntax highlighting, code folding and completion for keywords and other known information. Supports SFTP and FTP.                                                                                                                                   |
| Zend Studio  | Commercial  | Yes            | Integrated with Zend Server and the Zend PHP MVC framework, PHPUnit, phpDocumentor etc. Has syntax highlighting, code folding, Support for [Web services](https://www.guru99.com/web-services-tutorial.html) etc.                                                          |
| PHP Eclipse  | Open Source | Yes            | Code formatter Supports SVN, SSH/FTP                                                                                                                                                                                                                                       |
| Notepad++    | Freeware    | Windows only   | Syntax highlighting Supports SFTP and FTP via plugins.                                                                                                                                                                                                                     |

**Netbeans IDE PHP editor.** As briefly highlighted in the above table, NetBeans IDE has powerful features that enhance the productivity of PHP coders. The IDE can be freely downloaded from <https://netbeans.apache.org/front/main/download/>

* Syntax highlighting and auto-complete features enhance your **productivity**
* It has native support for database systems like MySQL. **You do not need to use two programs to code and develop your database.**
* The IDE can be used in a **collaborative environment**. This comes in handy when you have to work with other developers as a team.
* The IDE has **support for other languages** such as:  
  * Java SE
  * Java EE
  * C
  * C++

**NetBeans is now maintained by the Apache Software Foundation as Apache NetBeans, and it releases four times a year. Version 30 is the current release as of 2026, while the screenshots below use the older NetBeans 7.3.**

## Introduction to Netbeans IDE

After you have successfully installed the NetBeans IDE PHP editor, run the program just like any other Windows program. The window shown below appears

[](https://www.guru99.com/images/2013/04/netbeans%5Fide%5Fwalk%5Fthrough.png)

**1\. Project explorer** – this panel is used to display all the opened projects. The projects are listed in a tree view.

**2\. Shortcuts tool bar** – this toolbar contains shortcuts to frequently performed tasks such as creating a new project, opening an existing project, undo and redo actions etc.

**3\. Startup page** – this page contains 3 tabs, namely Learn & Discover, My NetBeans, and What’s New.

* The first tab \[Learn and Discover\] introduces you to the features of the NetBeans IDE, and showcases some demos and tutorials that can be developed in the NetBeans IDE.
* The second tab \[My NetBeans\] lists the recently opened projects, and allows you to install plugins and activate features of the IDE.

**4\. Output window** – it is used to display output from programs such as Java console applications. It is also used to display log and debug information. The screenshot below shows the IDE with a project open.

[](https://www.guru99.com/images/2013/04/netbeans%5Fide%5Ffeatures.png)

## Creating a new PHP project using the Netbeans IDE

* Click on the create new project button on the tool bar as shown below

[](https://www.guru99.com/images/2013/04/create%5Fnew%5Fproject.png)

* If you downloaded all the bundles available in the XAMPP NetBeans IDE, make sure you choose PHP under project category, PHP Application under Projects, then click on the Next button.

[](https://www.guru99.com/images/2013/04/new%5Fproject%5Fwizard%5F1.png)

* Enter the project name as shown below.

[](https://www.guru99.com/images/2013/04/new%5Fproject%5Fwizard%5F2.png)

* Make sure the folder is saved in the XAMPP PHP installation directory as shown above.
* Click on the Next button when done.

[](https://www.guru99.com/images/2013/04/new%5Fproject%5Fwizard%5F3.png)

* **Make sure Run as: is set to Local Web Site (running on local web server)**  
  * The Project URL: is set to **http://localhost/phplessons/**

**_Note_** _the above settings will be set for you by default. You do not have to change anything unless you are an expert_

* Click on the Next button

[](https://www.guru99.com/images/2013/04/new%5Fproject%5Fwizard%5F4.png)

* The NetBeans PHP editor allows for integration with PHP MVC frameworks such as Symfony and Zend. For now we will not select any MVC framework. Click on the Finish button.
* Your newly created project will be displayed in the project browser and an index.php page created for you.
* The newly created page contains some HTML code. Replace it with the following code shown below.

## Running your first PHP Example

<?php
echo "Hello World!";
?>

* Click on the run button on the toolbar as shown below

[](https://www.guru99.com/images/2013/04/run%5Fproject.png)

* Your default browser will be opened with the URL **http://localhost/phplessons/index.php**. The output “Hello World!” will be displayed in your browser.

## FAQs

🚀 Is XAMPP suitable for hosting a production website?

No. XAMPP is designed for local development and testing, and its default settings are not secured for public use. For production, use a hardened server with a properly configured web stack and firewall.

🔄 What is the difference between XAMPP and WAMP?

XAMPP is cross-platform and runs on Windows, Linux, and macOS, bundling Apache, MariaDB, PHP, and Perl. WAMP is Windows-only and ships Apache, MySQL, and PHP. XAMPP is the more portable choice across operating systems.

🛑 Why does Apache fail to start in XAMPP?

The most common cause is another program using port 80, often Skype, IIS, or another web server. Close that program or change Apache’s port in the httpd.conf file, then restart Apache from the control panel.

🤖 Can AI help set up a XAMPP PHP development environment?

Yes. AI can walk you through installing XAMPP, choosing PHP versions, editing php.ini, and resolving port conflicts. It can also generate a starter project structure for your first PHP application.

🤖 Can AI assist with writing and debugging PHP code in NetBeans?

Yes. AI can explain error messages from the NetBeans output window, suggest fixes for syntax and logic bugs, and generate boilerplate PHP classes that you paste into your project and refine.

#### Summarize this post with:

ChatGPT Perplexity Grok Google AI 

**Stay Updated on AI** **Get Weekly AI Skills, Trends, Actionable Advice.** 

##### Sign up for the newsletter

Subscribe for Free 

You have successfully subscribed.  
Please check your inbox. 

![AI-Newsletter]() Chosen by over **350,000+** professionals 

[Scroll to top ](#wrapper)Scroll to top 

× 

Toggle Menu Close 

Search for: 

Search

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://www.guru99.com/#organization","name":"Guru99","sameAs":["https://www.facebook.com/Guru99Official","https://twitter.com/guru99com"],"logo":{"@type":"ImageObject","@id":"https://www.guru99.com/#logo","url":"https://www.guru99.com/images/guru99-logo-v1-150x59.png","contentUrl":"https://www.guru99.com/images/guru99-logo-v1-150x59.png","caption":"Guru99","inLanguage":"en-US"}},{"@type":"WebSite","@id":"https://www.guru99.com/#website","url":"https://www.guru99.com","name":"Guru99","publisher":{"@id":"https://www.guru99.com/#organization"},"inLanguage":"en-US"},{"@type":"ImageObject","@id":"https://www.guru99.com/images/xampp-download-install-on-windows.png","url":"https://www.guru99.com/images/xampp-download-install-on-windows.png","width":"700","height":"250","caption":"XAMPP Download &amp; Install on Windows","inLanguage":"en-US"},{"@type":"BreadcrumbList","@id":"https://www.guru99.com/xampp-netbeans.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":"1","item":{"@id":"https://www.guru99.com","name":"Home"}},{"@type":"ListItem","position":"2","item":{"@id":"https://www.guru99.com/php","name":"PHP"}},{"@type":"ListItem","position":"3","item":{"@id":"https://www.guru99.com/xampp-netbeans.html","name":"How to Download &#038; Install XAMPP on Windows"}}]},{"@type":"WebPage","@id":"https://www.guru99.com/xampp-netbeans.html#webpage","url":"https://www.guru99.com/xampp-netbeans.html","name":"How to Download &#038; Install XAMPP on Windows","dateModified":"2026-07-22T18:04:36+05:30","isPartOf":{"@id":"https://www.guru99.com/#website"},"primaryImageOfPage":{"@id":"https://www.guru99.com/images/xampp-download-install-on-windows.png"},"inLanguage":"en-US","breadcrumb":{"@id":"https://www.guru99.com/xampp-netbeans.html#breadcrumb"}},{"@type":"Person","@id":"https://www.guru99.com/author/fiona","name":"Fiona Brown","description":"I'm Fiona brown, a Full Stack Developer with over a decade of experience, sharing practical guides on robust and scalable application development.","url":"https://www.guru99.com/author/fiona","image":{"@type":"ImageObject","@id":"https://www.guru99.com/images/fiona-brown-author.png","url":"https://www.guru99.com/images/fiona-brown-author.png","caption":"Fiona Brown","inLanguage":"en-US"},"worksFor":{"@id":"https://www.guru99.com/#organization"}},{"articleSection":"PHP","headline":"How to Download &#038; Install XAMPP on Windows","description":"We look into step by step process to install XAMPP and the Netbeans IDE for PHP programs. For Other Operating Systems, installation steps are similar.","keywords":"php","speakable":{"@type":"SpeakableSpecification","cssSelector":[".entry-title",".summary"]},"@type":"Article","author":{"@id":"https://www.guru99.com/author/fiona","name":"Fiona Brown"},"dateModified":"2026-07-22T18:04:36+05:30","image":{"@id":"https://www.guru99.com/images/xampp-download-install-on-windows.png"},"copyrightYear":"2026","name":"How to Download &#038; Install XAMPP on Windows","subjectOf":[{"@type":"HowTo","name":"How to Install XAMPP","description":"We look into step by step process to install XAMPP for Windows. For Other Operating Systems, XAMPP installation steps are similar.","step":[{"@type":"HowToStep","name":"Step 1) Download XAMPP","text":"Click here to XAMPP download for Windows: http://www.apachefriends.org/en/xampp-windows.html","url":"https://www.guru99.com/xampp-netbeans.html#step1"},{"@type":"HowToStep","name":"Step 2) Start Installation","text":"XAMPP Installation is just like installing any other windows program. There are however, a few things that we must note.","url":"https://www.guru99.com/xampp-netbeans.html#step2"},{"@type":"HowToStep","name":"Step 3) Run the Setup","text":"After you have downloaded XAMPP, run the setup. The warning message dialog window shown below appears.","image":{"@type":"ImageObject","url":"https://cdn.guru99.com/images/2013/04/xampp_uac.png"},"url":"https://www.guru99.com/xampp-netbeans.html#step3"},{"@type":"HowToStep","name":"Step 4) Change User Control Settings","text":"If you are using Windows Vista or Windows 7, make sure that you deactivate the User Account Control feature. To do this, Select Control Panel &gt; User Accounts &gt; Change User Access Control settings. The diagram below illustrates the main steps.","image":{"@type":"ImageObject","url":"https://cdn.guru99.com/images/2013/04/deactivate_uac.png"},"url":"https://www.guru99.com/xampp-netbeans.html#step4"},{"@type":"HowToStep","name":"Step 5) Save the settings","text":"After you have deactivated the User Account Control, click on OK button on the warning message box.","image":{"@type":"ImageObject","url":"https://cdn.guru99.com/images/2013/04/uac_deactivated.png"},"url":"https://www.guru99.com/xampp-netbeans.html#step5"},{"@type":"HowToStep","name":"Step 6) Click Next","text":"In the succeeding screen, click next","image":{"@type":"ImageObject","url":"https://cdn.guru99.com/images/2013/04/xampp_install_step_1.png"},"url":"https://www.guru99.com/xampp-netbeans.html#step6"},{"@type":"HowToStep","name":"Step 7) Choose the Insatllation path","text":"In the next screen, Change the installation path if required. Click Next","image":{"@type":"ImageObject","url":"https://cdn.guru99.com/images/2013/04/xampp_install_step_2.png"},"url":"https://www.guru99.com/xampp-netbeans.html#step7"},{"@type":"HowToStep","name":"Step 8) Check the necessary services","text":"In the next screen select Apache and MySQL. You may optionally select FileZilla (FTP Client) if needed. Click Install","image":{"@type":"ImageObject","url":"https://cdn.guru99.com/images/2013/04/xampp_install_step_3.png"},"url":"https://www.guru99.com/xampp-netbeans.html#step8"},{"@type":"HowToStep","name":"Step 9) Finish the installation","text":"On successful completion of installation, you will see following window","image":{"@type":"ImageObject","url":"https://cdn.guru99.com/images/2013/04/xampp_install_step_4.png"},"url":"https://www.guru99.com/xampp-netbeans.html#step9"}]},{"@type":"FAQPage","mainEntity":[{"@type":"Question","name":"Is XAMPP suitable for hosting a production website?","acceptedAnswer":{"@type":"Answer","text":"No. XAMPP is designed for local development and testing, and its default settings are not secured for public use. For production, use a hardened server with a properly configured web stack and firewall."}},{"@type":"Question","name":"What is the difference between XAMPP and WAMP?","acceptedAnswer":{"@type":"Answer","text":"XAMPP is cross-platform and runs on Windows, Linux, and macOS, bundling Apache, MariaDB, PHP, and Perl. WAMP is Windows-only and ships Apache, MySQL, and PHP. XAMPP is the more portable choice across operating systems."}},{"@type":"Question","name":"Why does Apache fail to start in XAMPP?","acceptedAnswer":{"@type":"Answer","text":"The most common cause is another program using port 80, often Skype, IIS, or another web server. Close that program or change Apache's port in the httpd.conf file, then restart Apache from the control panel."}},{"@type":"Question","name":"Can AI help set up a XAMPP PHP development environment?","acceptedAnswer":{"@type":"Answer","text":"Yes. AI can walk you through installing XAMPP, choosing PHP versions, editing php.ini, and resolving port conflicts. It can also generate a starter project structure for your first PHP application."}},{"@type":"Question","name":"Can AI assist with writing and debugging PHP code in NetBeans?","acceptedAnswer":{"@type":"Answer","text":"Yes. AI can explain error messages from the NetBeans output window, suggest fixes for syntax and logic bugs, and generate boilerplate PHP classes that you paste into your project and refine."}}]}],"@id":"https://www.guru99.com/xampp-netbeans.html#schema-30791","isPartOf":{"@id":"https://www.guru99.com/xampp-netbeans.html#webpage"},"publisher":{"@id":"https://www.guru99.com/#organization"},"inLanguage":"en-US","mainEntityOfPage":{"@id":"https://www.guru99.com/xampp-netbeans.html#webpage"}}]}
```
