Flash Sale:75% Off Hosting + Free DomainEnds in13h47m14sView Plans
Hostvento logoHostvento

Install XAMPP on Windows

Install XAMPP, start Apache and MySQL, make a test page and remove XAMPP if needed.

Windows Hosting2 min read13 steps17 screenshots

What is XAMPP

XAMPP is a free package with Apache, MariaDB (MySQL), PHP and Perl. It lets you run a web server on your own PC for testing websites.

Benefits:

  • One installer for the whole stack.
  • Works on Windows, Linux and macOS.
  • Good for testing PHP sites such as WordPress.

Install XAMPP

  1. Download the installer from the Apache Friends website.
    Downloading XAMPP
  2. Run the installer and click Next.
    Running the XAMPP installer
  3. Select the components. Apache, MySQL and PHP are the main ones. phpMyAdmin is useful too.
    Selecting the components
  4. Choose the install folder, normally C:\xampp.
    The installation folder
  5. Choose the language.
    Selecting the language
  6. Click Next until it is ready to install.
    Ready to install
  7. Click Finish.
    Completing the XAMPP setup

Start the services

In the XAMPP Control Panel click Start next to Apache and MySQL.

Starting the services

Open http://localhost in a browser. The XAMPP welcome page shows that it works.

Verifying the installation

If Apache does not start

Another program may use port 80 or 443, such as Skype or IIS. Stop that program or change the port in the Apache settings, then start again.

Create a test page

  1. Open C:\xampp\htdocs and create a folder named testsite.
    Creating the test site folder
  2. Create a file index.php in it with this content:
<?php echo "Hello from XAMPP"; ?>
The index.php file
  1. Open http://localhost/testsite.
    The page in the browser

Uninstall XAMPP

Stop the services first. Then:

  1. Open Control Panel.
    Opening the control panel
    The Control Panel
  2. Go to Uninstall a program, select XAMPP and click Uninstall.
    Uninstall a program
  3. Confirm the question.
    Confirming the uninstall
    Uninstalling XAMPP

Delete the C:\xampp folder afterwards if files remain. Back up any databases first.

Quick recap

  • Install, start Apache and MySQL, open http://localhost.
  • Put your sites in C:\xampp\htdocs.