Download ArticleDownload Article

This How.com.vn teaches you how to install and run XAMPP on a Linux computer.

Part 1
Part 1 of 2:

Installing XAMPP

Download Article
  1. How.com.vn English: Step 1 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. How.com.vn English: Step 2 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.
    • You may have to click Save File or select the "Downloads" folder as your save location before proceeding.
    Advertisement
  3. How.com.vn English: Step 3 Allow the download to complete.
    Once XAMPP's installation file finishes downloading onto your computer, you can proceed.
  4. How.com.vn English: Step 4 Open Terminal.
    Click the Terminal app icon, which resembles a black box with a white ">_" inside of it.
    • You can also just press Alt+Ctrl+T to open a new Terminal window.
  5. Step 5 Change over to the "Downloads" directory.
    Type in cd Downloads and press Enter.
    • Make sure you capitalize "Downloads".
    • If your default downloads location is in a different folder, you'll have to change the directory to that folder.
  6. How.com.vn English: Step 6 Make the downloaded file executable.
    Type in chmod +x xampp-linux-x64-7.2.9-0-installer.run and press Enter.[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. How.com.vn English: Step 7 Enter the installation command.
    Type in sudo ./xampp-linux-x64-7.2.9-0-installer.run and press Enter.
  8. How.com.vn English: Step 8 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.
    • You won't see the characters appear in Terminal when you type.
  9. How.com.vn English: Step 9 Follow the installation prompts.
    Once the installation window appears, do the following:
    • Click Next three times.
    • Uncheck the "Learn more about Bitnami for XAMPP" box.
    • Click Next, then click Next again to begin installing XAMPP.
  10. Step 10 Uncheck the "Launch XAMPP" box.
    It's in the middle of the final installation window.
    • Since XAMPP needs a few extra steps to actually run on Linux, you'll need to finish the installation without automatically running XAMPP.
  11. How.com.vn English: Step 11 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.
  12. Advertisement
Part 2
Part 2 of 2:

Running XAMPP

Download Article
  1. How.com.vn English: Step 1 Re-open Terminal if necessary.
    If you closed the Terminal window that you used to install XAMPP, re-open Terminal.
    • 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. How.com.vn English: Step 2 Switch to the XAMPP installation directory.
    Type in cd /opt/lampp and press Enter.[2]
  3. Step 3 Enter the "Open" command.
    Type in sudo ./manager-linux-x64.run and press Enter.
  4. How.com.vn English: Step 4 Enter your password when prompted.
    Type in the password you usually use to log into your computer, then press Enter.
  5. How.com.vn English: Step 5 Click the Manage Servers tab.
    This option is at the top of the window.
  6. How.com.vn English: Step 6 Click Start All.
    It's at the bottom of the window. Doing so prompts any active components of XAMPP to begin running.
  7. How.com.vn English: Step 7 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.
  8. Advertisement

Community Q&A

Search
Add New Question
  • Question
    After I install XAMPP on Linux OS, where should I put all PHP script files to execute them?
    How.com.vn English: Community Answer
    Community Answer
    By default you should put it on /opt/lampp/htdocs/. You can create a folder inside it and execute php files via localhost/{folder_name}/{file_name}
  • Question
    What do I do if I installed XAMPP but I can't access phpmyadmin?
    How.com.vn English: HaXng Buddha
    HaXng Buddha
    Community Answer
    Make sure Apache is running first in the dashboard, then you should be able to access phpmyadmin.
  • Question
    After I install this according to the given instructions, how can I access it from another computer in my local area network?
    How.com.vn English: Community Answer
    Community Answer
    You can access it by changing the "localhost" part of "localhost/foldername/" to your computer IP (ex: 192.xxx.x.xxx/foldername) at your local network.
See more answers
Ask a Question
200 characters left
Include your email address to get a message when this question is answered.
Submit
      Advertisement

      Video

      Tips

      • XAMPP is typically used to simulate a live web server for the purpose of testing apps, website content, and so on.
      Submit a Tip
      All tip submissions are carefully reviewed before being published
      Thanks for submitting a tip for review!
      Advertisement

      Warnings

      • Make sure you check your XAMPP installation file's version number before entering it into Terminal. Entering the wrong number will result in an error.
      Advertisement

      About This Article

      How.com.vn English: Jack Lloyd
      Written by:
      How.com.vn Technology Writer
      This article was co-authored by How.com.vn staff writer, Jack Lloyd. Jack Lloyd is a Technology Writer and Editor for How.com.vn. He has over two years of experience writing and editing technology-related articles. He is technology enthusiast and an English teacher. This article has been viewed 730,785 times.
      How helpful is this?
      Co-authors: 24
      Updated: February 10, 2024
      Views: 730,785
      Categories: Linux
      Article SummaryX

      1.Go to https://www.apachefriends.org/index.html.
      2.Click XAMPP for Linux to download.
      3.Open a terminal window.
      4.Use "chmod +x" to make the downloaded file executable.
      5.Use "sudo ./(filename)" to run the installer.
      6.Follow the on-screen instructions to install.

      Did this summary help you?

      Thanks to all authors for creating a page that has been read 730,785 times.

      Is this article up to date?

      ⚠️ Disclaimer:

      Content from Wiki How English language website. Text is available under the Creative Commons Attribution-Share Alike License; additional terms may apply.
      Wiki How does not encourage the violation of any laws, and cannot be responsible for any violations of such laws, should you link to this domain, or use, reproduce, or republish the information contained herein.

      Notices:
      • - A few of these subjects are frequently censored by educational, governmental, corporate, parental and other filtering schemes.
      • - Some articles may contain names, images, artworks or descriptions of events that some cultures restrict access to
      • - Please note: Wiki How does not give you opinion about the law, or advice about medical. If you need specific advice (for example, medical, legal, financial or risk management), please seek a professional who is licensed or knowledgeable in that area.
      • - Readers should not judge the importance of topics based on their coverage on Wiki How, nor think a topic is important just because it is the subject of a Wiki article.

      Advertisement