Home > Tutorials and Resources > Getting Started Guide for Local Test Server Setup > Installing XAMPP

Installing XAMPP

By B Lingafelter          testserver, workflow

This quide is written for XAMPP 7.1.7 with PHP 7.1.7 (the current version today). First, head over to Apache Friends and download the xampp-win32-7.1.7-0-VC14-installer.exe file (Windows).

Mac users should download the xampp-osx-7.1.7-0-installer.dmg disk image file (avoid the XAMPP-VM version for now). Skip down to Install XAMPP for Mac for installation instructions.

Notes on Windows installation:

  • If you have an older version of XAMPP already installed in the C:\XAMPP default location, run the uninstaller to completely remove it before installing the newer version.
  • Skype uses port 80 as alternate port. If you have Skype installed, check the following before installing XAMPP. In Skype choose Actions -> Options -> Connection. Clear the check box for "use port 80 for an alternate port" and restart Skype to verify it still functions normally. 
  • The first time you start Apache and MySQL you may get a Windows Security alert - be sure to click Allow Access (Unblock) for each alert.
  • On Windows 10, disable IIS from running on port 80 by default:
    • Open the Services panel in Computer Management
    • Search for and select the World Wide Web Publishing Service
    • Click Stop the service link
    • Double-click the service name
    • In the Startup type field, select Disabled (or Manual)
    • Click OK to save your changes
  • When you are finished with local testing, remember to stop Apache and MySQL (XAMPP Control Panel).

Install XAMPP Version 7.1.7 for Windows

Install using the defaults.

  1. Close all open applications and double-click the xampp-win32-7.1.7-0-VC14-installer.exe file to run the installer.
  2. If you see the Windows UAC warning message shown below, click OK. You will not be installing XAMPP in Program Files folder, so this will not affect you.
    XAMPP Install UAC Warning Message
  3. When the Setup Setup Wizard appears, click Next to start the installation.
    XAMPP Install Setup Wizard
  4. With all components selected by default, click Next.
    XAMPP Install Components
  5. Accept default location of c:\xampp and click Next.
    XAMPP Install Location
  6. Clear the Learn more about BitNami for XAMPP checkbox and click Next.
    Bitnami for XAMPP
  7. Click Next to begin installing XAMPP.
    Install XAMPP
  8. The install will take a few minutes.
    Installing XAMPP
  9. When the installer is finished, click Finish to start the XAMPP Control Panel.
    Xampp Install Complete
  10. You can choose not to open the XAMPP Control Panel at this point. To open the XAMPP Control Panel later, double-click the XAMPP Control Panel shortcut on your desktop, or go to Start > All Programs > XAMPP > XAMPP Control Panel.
    XAMPP Control Panel
  11. In the XAMPP Control Panel, click Start button next to both Apache and MySQL.
    Note: The first time you start Apache and MySQL you may get a Windows Security alert - be sure to click Allow Access (Unblock) on local network for both Apache and MySQL.
  12. In a few moments, you should see PID/Port information next to the module that's now running, and the Action button will now be labeled as Stop button. (Start/Stop is a toggle)
    XAMPP Control Panel with Modules Running
  13. VERY IMPORTANT! Unless you have a valid reason to do so, DO NOT mark the checkboxes on the far left of the Control Panel which would allow components to run as a service (Apache, MySQL). This does mean you'll have to open the XAMPP control panel and manually start Apache and MySQL servers when you need to use them, but you are also much less likely to have conflicts with other applications or servers that use one or more of the same ports.
  14. To test the install, click the Admin button next to Apache to open the XAMPP for Windows page in your default browser.
    Alternative: You can also type http://localhost in address bar of a browser to open the XAMPP Administration page.
  15. Choose English if prompted for language.
  16. If the XAMPP for Windows page (shown below) is displayed, the install was successful and you're ready to move on.
    XAMPP Start Page
  17. Stop both Apache and MySQL servers in XAMPP Control Panel.
  18. To hide the XAMPP Control Panel, leaving it in Notifications area, click the Close "X" button (upper right).
  19. Click Quit button to close XAMPP Control Panel and remove it from Notification area.
  20. You are ready to Configure PHP.
  21. If you receive any error messages when starting the servers, review the XAMPP Windows FAQs page for help.

Install XAMPP Version 7.1.7 for MacOS X

Install using the defaults.

  1. Use FInder to locate the downloaded disk image and double-click the xampp-osx-7.1.7-0-installer.dmg file to open the installer window.
  2. Drag the XAMPP folder onto the Applications folder. You will be prompted to enter your system password.
  3. When the Setup Wizard appears, click Next to start the installation.
  4. When prompted, choose to install all components and accept the default location, XAMPP folder in Applications.
  5. When prompted, clear the Learn more about BitNami for XAMPP checkbox and click Next.
  6. When the installer is finished, click Finish to start the XAMPP Control Panel (/Applications/XAMPP/manager-osx.app).
    XAMPP Control Panel OSX
  7. On the Manage Servers tab, select Apache Web Server and click Start button.
  8. Select MySQL Database and click Start button.
  9. To test the install, open a browser and type http://localhost in Address bar. If the install is successful, you will see the XAMPP Start page, similar to one shown above for Windows.
  10. Stop both Apache Web Server and MySQL Database servers in XAMPP Control Panel.
  11. Optional: You may want to add manager-osx.app (XAMPP Control Panel) to dock for future convenience.
  12. You are ready to Configure PHP.
  13. If you receive any error messages when starting the servers, review the XAMPP OSX FAQs page for help.