# XAMPP

XAMPP is a bundle of tools and applications that enable you to develop websites and web applications.

XAMPP stands for

* X: works on any operating system (Windows, Linux and OSX)
* A: **Apache** HTTP server
* M: **MariaDB** Database Management System (\~ MySQL)
* P: **PHP** programming language
* P: **Perl** programming language

## Setup

### Downloading XAMPP

XAMPP can be download for free on the website of Apachefriends: [https://www.apachefriends.org](https://www.apachefriends.org/)

![XAMPP Website](https://981283853-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LEK-j-hxx7zCDNXfjra%2F-LL4EVa4libM96oMBXqa%2F-LL4EWp-DoyOmZh_S83U%2Fwebsite.png?generation=1535538783985047\&alt=media)

Click on `XAMPP for Windows` to download it.

![XAMPP Website](https://981283853-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LEK-j-hxx7zCDNXfjra%2F-LL4EVa4libM96oMBXqa%2F-LL4EWp1hcj1VpHj_sfB%2Fwebsite-download.png?generation=1535538776351006\&alt=media)

### Installation Wizard

When starting the installation wizard, a warning concerning the UAC will be displayed. This warning can be ignored.

![](https://981283853-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LEK-j-hxx7zCDNXfjra%2F-LL4EVa4libM96oMBXqa%2F-LL4EWp39zLm3NvNcIZe%2FUAC-warning.png?generation=1535538776474620\&alt=media)

Follow the wizard steps. Leave all options default.

![](https://981283853-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LEK-j-hxx7zCDNXfjra%2F-LL4EVa4libM96oMBXqa%2F-LL4EWp5lpW9_kqZg6ts%2Fstep01.png?generation=1535538784071729\&alt=media)

![](https://981283853-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LEK-j-hxx7zCDNXfjra%2F-LL4EVa4libM96oMBXqa%2F-LL4EWp7hwYrVhznPoRP%2Fstep02.png?generation=1535538785454318\&alt=media)

![](https://981283853-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LEK-j-hxx7zCDNXfjra%2F-LL4EVa4libM96oMBXqa%2F-LL4EWp9xrpZW56_c50u%2Fstep03.png?generation=1535538766340209\&alt=media)

![](https://981283853-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LEK-j-hxx7zCDNXfjra%2F-LL4EVa4libM96oMBXqa%2F-LL4EWpBiXEGROGfXhEY%2Fstep04.png?generation=1535538783932790\&alt=media)

![](https://981283853-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LEK-j-hxx7zCDNXfjra%2F-LL4EVa4libM96oMBXqa%2F-LL4EWpDaUb8p4nUbwQN%2Fstep05.png?generation=1535538784643729\&alt=media)

![](https://981283853-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LEK-j-hxx7zCDNXfjra%2F-LL4EVa4libM96oMBXqa%2F-LL4EWpFYdUA7E2cKKup%2Fstep06.png?generation=1535538784605448\&alt=media)

![](https://981283853-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LEK-j-hxx7zCDNXfjra%2F-LL4EVa4libM96oMBXqa%2F-LL4EWpHuEzLUlq5pa9j%2Fstep07.png?generation=1535538766375752\&alt=media)

It could be possible that you get a firewall message. Just click 'Toegang toestaan'

![](https://981283853-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LEK-j-hxx7zCDNXfjra%2F-LL4EVa4libM96oMBXqa%2F-LL4EWpJ6drjmhPbVSnQ%2Ffirewall-message.png?generation=1535538785372302\&alt=media)

When everything went well, you should be able to open up the `XAMPP Control Panel`

![](https://981283853-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LEK-j-hxx7zCDNXfjra%2F-LL4EVa4libM96oMBXqa%2F-LL4EWpLw8FHbqbhTLbI%2Fcontrol-panel.png?generation=1535538787349190\&alt=media)

When the control panel shows up, you can close it again. We won't need it or use it this time.

## PATH Configuration

To be able to use PHP and the MySQL client in any location on your computer, you need to add it to the `PATH`. This can be done using the `omgevingsvariabelen` or `environment variables` configuration menus.

Make sure to take the `omgevingsvariabelen van het **systeem** bewerken` application and not the `omgevingsvariabelen voor uw account bewerken`.

![](https://981283853-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LEK-j-hxx7zCDNXfjra%2F-LL4EVa4libM96oMBXqa%2F-LL4EWpNnOVwkEXiO34m%2Fpath01.png?generation=1535538786131014\&alt=media)

At the bottom, press on the `Omgevingsvariabelen...` button.

![](https://981283853-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LEK-j-hxx7zCDNXfjra%2F-LL4EVa4libM96oMBXqa%2F-LL4EWpPPodYNeEyyOfN%2Fpath02.png?generation=1535538786743165\&alt=media)

You should now see the environment variables for your computer. On the top are the variables for the user, at the bottom the variables for the system.

Search for the `Path` variable at the bottom in the `Systeemvariabelen` part of the window, and select it. Then press on `Bewerken...` button.

![](https://981283853-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LEK-j-hxx7zCDNXfjra%2F-LL4EVa4libM96oMBXqa%2F-LL4EWpRlgWhB5tmmWBE%2Fpath03.png?generation=1535538784618602\&alt=media)

Then click on the `Nieuw` button to add a new variable to the path. Add the following values:

```
C:\xampp\php
```

```
C:\xampp\mysql\bin
```

![](https://981283853-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LEK-j-hxx7zCDNXfjra%2F-LL4EVa4libM96oMBXqa%2F-LL4EWpT5orlZ-HtHMoU%2Fpath04.png?generation=1535538785484445\&alt=media)

When ready, close all windows again. Everything should be set to go now.

![](https://981283853-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LEK-j-hxx7zCDNXfjra%2F-LL4EVa4libM96oMBXqa%2F-LL4EWpViCSFE8zkzMZ1%2Fpath05.png?generation=1535538786264139\&alt=media)

### Testing the PATH configuration

To test if the PATH configuration is correct, two powershell commands should be executed.

To begin, starup `Powershell`

![](https://981283853-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LEK-j-hxx7zCDNXfjra%2F-LL4EVa4libM96oMBXqa%2F-LL4EWpXAbbPb5KG8jAf%2Fpath-powershell.png?generation=1535538786802796\&alt=media)

Now type the commands:

```
php --version
```

and

```
mysql --version
```

Both commands will check if the `php` and `mysql` applications are available in the `PATH`. If any problem occure, an error message will be shown instead of the version information of the application.

![](https://981283853-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LEK-j-hxx7zCDNXfjra%2F-LL4EVa4libM96oMBXqa%2F-LL4EWpZCshLocIm0Kz6%2Fpath-test.png?generation=1535538787152845\&alt=media)
