How to Install XAMPP on Linux

This wikiHow teaches you how to install and run XAMPP on a Linux computer. Open the XAMPP download page. Go to https://www.apachefriends.org/index.html in your computer's web browser. This is the official download site for XAMPP.

Part 1 of 2:

Installing XAMPP

  1. Picture 1 of How to Install XAMPP on Linux
    Open the XAMPP download page. Go to https://www.apachefriends.org/index.html in your computer's web browser. This is the official download site for XAMPP.
  2. Picture 2 of How to Install XAMPP on Linux
    Click XAMPP for Linux. It's in the middle of the page. This will prompt the XAMPP setup file to begin downloading onto your computer.
    1. You may have to click Save File or select the "Downloads" folder as your save location before proceeding.
  3. Picture 3 of How to Install XAMPP on Linux
    Allow the download to complete. Once XAMPP's installation file finishes downloading onto your computer, you can proceed.
  4. Picture 4 of How to Install XAMPP on Linux
    Open Terminal. Click the Terminal app icon, which resembles a black box with a white ">_" inside of it.
    1. You can also just press Alt+Ctrl+T to open a new Terminal window.
  5. Picture 5 of How to Install XAMPP on Linux
    Change over to the "Downloads" directory. Type in cd Downloads and press Enter.
    1. Make sure you capitalize "Downloads".
    2. If your default downloads location is in a different folder, you'll have to change the directory to that folder.
  6. Picture 6 of How to Install XAMPP on Linux
    Make the downloaded file executable. Type in chmod +x xampp-linux-x64-7.2.9-0-installer.run and press Enter.[1]
    1. If you download a different version of XAMPP (e.g., version 5.9.3), you'll replace "7.2.9" with your XAMPP version's number.
  7. Picture 7 of How to Install XAMPP on Linux
    Enter the installation command. Type in sudo ./xampp-linux-x64-7.2.9-0-installer.run and press Enter.
  8. Picture 8 of How to Install XAMPP on Linux
    Enter your password when prompted. Type in the password you use to log into your computer, then press Enter. The installation window will pop up.
    1. You won't see the characters appear in Terminal when you type.
  9. Picture 9 of How to Install XAMPP on Linux
    Follow the installation prompts. Once the installation window appears, do the following:
    1. Click Next three times.
    2. Uncheck the "Learn more about Bitnami for XAMPP" box.
    3. Click Next, then click Next again to begin installing XAMPP.
  10. Picture 10 of How to Install XAMPP on Linux
    Uncheck the "Launch XAMPP" box. It's in the middle of the final installation window.
    1. Since XAMPP needs a few extra steps to actually run on Linux, you'll need to finish the installation without automatically running XAMPP.
  11. Picture 11 of How to Install XAMPP on Linux
    Click Finish. This option is at the bottom of the window. Doing so will close the installation window. At this point, you're ready to run XAMPP.
Part 2 of 2:

Running XAMPP

  1. Picture 12 of How to Install XAMPP on Linux
    Re-open Terminal if necessary. If you closed the Terminal window that you used to install XAMPP, re-open Terminal.
    1. XAMPP doesn't have any desktop files, so you'll need to launch it from within its installation directory via Terminal each time you want to run it.
  2. Picture 13 of How to Install XAMPP on Linux
    Switch to the XAMPP installation directory. Type in cd /opt/lampp and press Enter.[2]
  3. Picture 14 of How to Install XAMPP on Linux
    Enter the "Open" command. Type in sudo ./manager-linux-x64.run and press Enter.
  4. Picture 15 of How to Install XAMPP on Linux
    Enter your password when prompted. Type in the password you usually use to log into your computer, then press Enter.
  5. Picture 16 of How to Install XAMPP on Linux
    Click the Manage Servers tab. This option is at the top of the window.
  6. Picture 17 of How to Install XAMPP on Linux
    Click Start All. It's at the bottom of the window. Doing so prompts any active components of XAMPP to begin running.
  7. Picture 18 of How to Install XAMPP on Linux
    Open your computer's localhost page. Go to 127.0.0.1 in your computer's web browser. You should see the XAMPP dashboard here; at this point, you're able to begin using XAMPP as you please.
« PREV POST
READ NEXT »