How to Install XAMPP on Linux (with Pictures)

Table of contents:

How to Install XAMPP on Linux (with Pictures)
How to Install XAMPP on Linux (with Pictures)

Video: How to Install XAMPP on Linux (with Pictures)

Video: How to Install XAMPP on Linux (with Pictures)
Video: Remove Junk Files to Cleanup Your Windows 10 Computer 2024, May
Anonim

This wikiHow teaches you how to install and run XAMPP on a Linux computer.

Step

Part 1 of 2: Installing XAMPP

Install XAMPP on Linux Step 1
Install XAMPP on Linux Step 1

Step 1. Go to the XAMPP download page

Visit https://www.apachefriends.org/index.html through your computer's web browser. This site is the official XAMPP download site.

Install XAMPP on Linux Step 2
Install XAMPP on Linux Step 2

Step 2. Click XAMPP for Linux

It's in the middle of the page. The XAMPP installation file will be downloaded to your computer.

You may need to click “ Save File ” or select the “Downloads” folder as the location to save the downloads before proceeding.

Install XAMPP on Linux Step 3
Install XAMPP on Linux Step 3

Step 3. Wait for the file to finish downloading

Once the XAMPP installation file has finished downloading to your computer, you can move on to the next step.

Install XAMPP on Linux Step 4
Install XAMPP on Linux Step 4

Step 4. Open Terminal

Click the Terminal app icon which looks like a black box with a white ">_" symbol inside.

You can also press the Alt+Ctrl+T key combination to open a new Terminal window

Install XAMPP on Linux Step 5
Install XAMPP on Linux Step 5

Step 5. Change the "Downloads" directory

Type in cd Downloads and press Enter.

  • Make sure you capitalize the "Downloads" entry.
  • If your computer's main download location is a different folder, you will need to change the directory to that folder.
Install XAMPP on Linux Step 6
Install XAMPP on Linux Step 6

Step 6. Make the downloaded file an executable file

Type chmod +x xampp-linux-x64-7.2.9-0-installer.run and press Enter.

If you downloaded a different version of XAMPP (eg version 5.9.3), replace the entry "7.2.9" with the XAMPP version number you want to use

Install XAMPP on Linux Step 7
Install XAMPP on Linux Step 7

Step 7. Enter the install command

Type in sudo./xampp-linux-x64-7.2.9-0-installer.run and press Enter.

Install XAMPP on Linux Step 8
Install XAMPP on Linux Step 8

Step 8. Enter the account password when prompted

Type in the password you use to log into your computer, then press Enter. The installation window will be displayed after that.

You will not see the characters in the Terminal window when you type your password

Install XAMPP on Linux Step 9
Install XAMPP on Linux Step 9

Step 9. Follow the installation prompts

Once the installation window is displayed, follow these steps:

  • Click " Next " three times.
  • Uncheck the "Learn more about Bitnami for XAMPP" box.
  • Click " Next, then click the button again Next ” to start the XAMPP installation process.
Install XAMPP on Linux Step 10
Install XAMPP on Linux Step 10

Step 10. Uncheck the "Launch XAMPP" box

This box is in the middle of the final installation window.

Since XAMPP requires a few additional steps to run on Linux, you need to end the installation without running XAMPP automatically

Install XAMPP on Linux Step 11
Install XAMPP on Linux Step 11

Step 11. Click Finish

It's at the bottom of the window. After that, the installation window will close. At this point, you are ready to run XAMPP.

Part 2 of 2: Running XAMPP

Install XAMPP on Linux Step 12
Install XAMPP on Linux Step 12

Step 1. Reopen the Terminal window if necessary

If you previously closed the Terminal window used to install XAMPP, reopen the program window.

XAMPP doesn't have any desktop files so you'll need to run it from its installation directory via Terminal every time you need to use it

Install XAMPP on Linux Step 13
Install XAMPP on Linux Step 13

Step 2. Switch to the XAMPP installation directory

Type in cd /opt/lampp and press Enter.

Install XAMPP on Linux Step 14
Install XAMPP on Linux Step 14

Step 3. Enter the "Open" command

Type in sudo./manager-linux-x64.run and press Enter.

Install XAMPP on Linux Step 15
Install XAMPP on Linux Step 15

Step 4. Enter the password when prompted

Type in the password you use to log into your computer, then press Enter.

Install XAMPP on Linux Step 16
Install XAMPP on Linux Step 16

Step 5. Click the Manage Servers tab

It's at the top of the window.

Install XAMPP on Linux Step 17
Install XAMPP on Linux Step 17

Step 6. Click Start All

It's at the bottom of the window. After that, the XAMPP components will be executed immediately.

Install XAMPP on Linux Step 18
Install XAMPP on Linux Step 18

Step 7. Open the computer's localhost page

Visit 127.0.0.1 via a web browser. You can see the XAMPP dashboard on this page. After that, you can use XAMPP as you wish.

Tips

XAMPP is generally used to simulate an active web server (live web server) for the purposes of testing applications, website content, and others

Recommended: