This wikiHow teaches you how to install and run XAMPP on a Linux computer.
Step
Part 1 of 2: Installing XAMPP
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.
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.
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.
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
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.
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
Step 7. Enter the install command
Type in sudo./xampp-linux-x64-7.2.9-0-installer.run and press Enter.
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
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.
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
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
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
Step 2. Switch to the XAMPP installation directory
Type in cd /opt/lampp and press Enter.
Step 3. Enter the "Open" command
Type in sudo./manager-linux-x64.run and press Enter.
Step 4. Enter the password when prompted
Type in the password you use to log into your computer, then press Enter.
Step 5. Click the Manage Servers tab
It's at the top of the window.
Step 6. Click Start All
It's at the bottom of the window. After that, the XAMPP components will be executed immediately.
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.