How to Install Xampp in Linux - GeeksforGeeks (2024)

Last Updated : 16 Jan, 2024

Improve

Xampp is a free and open-source platform that is highly used for PHP development but also comprises a suite of tools like Apache Web Server, MysqlDB, Perl, Filezilla, and much more. This package made it easier to install and set up the Xampp software. It is also available for every major platform like Windows, Linux, and MacOS.

In this article, we will discuss about the step-by-step procedure to install Xampp in Linux-based Operating Systems.

Note: In Linux, xampp is named as lampp denoting “linux” in the starting character so it will be used interchangeably down the article.

Table of Content

  • Steps for Installing Xampp in Linux
  • Using Command Line tool
  • Using GUI Xampp Manager
  • Checking Xampp Server
  • Uninstalling Xampp in Linux

Steps for Installing Xampp in Linux

Step 1: Download the Installer for Linux.

Open a new browser window and go to the Official Apache downloads webpage.

  • Move to the Linux download links sections and download the latest installer package.
  • Xampp uses “.run” shell script files to make it easy to automatically install the package without much manual intervention.
  • It also supports every major distribution like Debian, Arch, Redhat, Ubuntu, and Manjaro.

Step 2: Make the installer executable

  • Once the installed is downloaded, we need to run the installer, by default no file will be given the executable permission.
  • Open a new Terminal and go to the location of the installer file, most likely it is Downloads.
  • Use the chmod command with x flag to give the executable permission for the installer using the below command.
sudo chmod +x xampp-linux-x64-8.2.12-0-installer.run
  • +x is the flag used to make the file executable for everyone, if you need to restrict the permission use “u+x” so that only the current user can execute it.

How to Install Xampp in Linux - GeeksforGeeks (2)

make the installed executable

Step 3: Run the Installer

  • After providing the executable permission, run the installer to install the software in the system.
  • Run the installer from the same terminal with Sudo permission using the below command.
  • Sudo permission is required as by xampp uses the “/opt” directory to write down the files.
sudo ./xampp-linux-x64-8.2.12-0-installer.run
  • A new Graphical window will be popped front, we can continue the installation process from there.
  • In the below image we can see that it is requesting for further process, to proceed with the installation click on the Forward button in the bottom of the window.

How to Install Xampp in Linux - GeeksforGeeks (3)

  • Here we need to select the components needs to be installed along with Xampp. There are different components like,
    • Core files
    • Developer files
  • If its your development machine check the developer files also, I am going with the default options that is checked both the files.
  • Click on the Forward button to proceed with the installation.

How to Install Xampp in Linux - GeeksforGeeks (4)

  • Xampp alerting us it will install the modules and files under the “/opt/lampp” directory. It is the intended folder for software that is not part of the core linux system.
  • We can’t change the installation folder, so click on Forward button to accept the installation directory for Xampp.

How to Install Xampp in Linux - GeeksforGeeks (5)

  • Now we have configured the installation and we can write the changes, so it prompts us for final question whether it can install Xampp on the System for the configuration.
  • Click on Forward to accept the changes, in case you need to change anything cancel it and start from the beginning.

How to Install Xampp in Linux - GeeksforGeeks (6)Now the installer is writing the files of the Software to our system. It may take a couple of minutes based on your Hardware configuration, sit back and relax until the installation is complete.

How to Install Xampp in Linux - GeeksforGeeks (7)

  • Feel free to uncheck the Launch Xampp checkbox, we will see how we can start Xampp in the next step.
  • Finally Click on Finish to complete the Setup process.

How to Install Xampp in Linux - GeeksforGeeks (8)

Step 4: Start Xampp Program

  • To start Xampp, either use the command line tool or the GUI manager.
  • First of all move into the xampp installation folder using cd command.
cd /opt/lampp

Use the below command to start Xampp. This will start entire Xampp program including Apache, MysqlDB and others.

sudo ./lampp start

How to Install Xampp in Linux - GeeksforGeeks (9)

starting lampp with terminal

  • To just start the required services refer to the help page of Xampp. It includes options like
    • startapache -> starts only apache server
    • startmysql -> starts mysql
./lampp help

How to Install Xampp in Linux - GeeksforGeeks (10)

Using GUI Xampp Manager

To start the GUI Xampp manager, run the following command.

sudo ./manager-linux-x64.run

How to Install Xampp in Linux - GeeksforGeeks (11)

running gui manager

Checking Xampp Server

  • Once Xampp is started, open your browser and go to the `http://localhost/` url.
  • A welcome page of Apache server will be displayed.

How to Install Xampp in Linux - GeeksforGeeks (12)

final output after installation

Uninstalling Xampp in Linux

  • To Uninstall Xampp, open a new terminal window and move into the installation folder, here the “/opt/lampp” folder.
  • Xampp tool ships with beginner friendly uninstaller executable, so that you don’t have to mess with manual deletion of files and folders.
  • Run the uninstall executable with sudo privilege to initiate the uninstallation process.
  • Use the below command to uninstall the program, make sure you are in the intended directory.
sudo ./uninstall

Provide your super user password to start the process, double check you have backed up important data before proceeding with the uninstallation.

How to Install Xampp in Linux - GeeksforGeeks (13)

running uninstall xampp

Click on “Yes” in the Question dialog box to proceed wit uninstallation. This will remove entire modules of the Xampp like Apache Server, Maria DB, etc. So, think before you act.

How to Install Xampp in Linux - GeeksforGeeks (14)

uninstalling xampp

In the above image, you can refer that its being uninstalled. Once the progress is over, you can close the terminal window.

Conclusion

In this article we have seen step by step procedure of installing Xampp, a easy to install suite of software that comes as a single package for Apache server, Maria DB, PHP. We have also seen how to uninstall it incase we need to completely remove the software from the System.



Like Article

Suggest improvement

Next

How to install Virtualmin in Linux

Share your thoughts in the comments

Please Login to comment...

How to Install Xampp in Linux - GeeksforGeeks (2024)

FAQs

How to install XAMPP in Linux step by step? ›

Steps for Installing Xampp in Linux
  1. Step 1: Download the Installer for Linux.
  2. Step 2: Make the installer executable.
  3. Step 3: Run the Installer.
  4. Step 4: Start Xampp Program.
Jan 16, 2024

How to properly install XAMPP? ›

Installing XAMPP
  1. Step 1: Download. ...
  2. Step 2: Run .exe file. ...
  3. Step 3: Deactivate any antivirus software. ...
  4. Step 4: Deactivate UAC. ...
  5. Step 5: Start the setup wizard. ...
  6. Step 6: Choose software components. ...
  7. Step 7: Choose the installation directory. ...
  8. Step 8: Start the installation process.
Jan 3, 2023

How to install XAMPP Linux Shout? ›

Then install it through the terminal by following the steps below:
  1. Step 1: Download XAMPP for the Linux system.
  2. Step 2: Run XAMPP Installer.
  3. Step 3: Launch the Installer.
  4. Step 4: Complete the installation.
  5. Some More helpful commands.

How to start XAMPP in Linux command line? ›

  1. Operate XAMPP using command line.
  2. sudo /opt/lampp/lampp start.
  3. sudo /opt/lampp/lampp stop.
  4. Following list shows command list.
  5. XAMPP Stop Commands.

Where is XAMPP file in Linux? ›

Where are the main XAMPP configuration files? The main XAMPP configuration files are located as follows: Apache configuration file: /opt/lampp/etc/httpd. conf, /opt/lampp/etc/extra/httpd-xampp.

How to auto start XAMPP in Linux? ›

Auto-Start XAMPP
  1. Copy the /opt/lampp/lampp script to the /etc/init. d directory. ...
  2. Add or modify the following lines at the beginning of the /etc/init. d/lampp script. ...
  3. Add the script to the default runlevels and enable it. ...
  4. Reboot your system and XAMPP should start automatically.

How to install XAMPP using command line? ›

Follow the steps below:
  1. Run the installer using the syntax below: sudo ./[package_name] ...
  2. Click Forward, and in the Select Components dialogue. ...
  3. In the next step, the setup wizard shows the location for installing the software. ...
  4. The wizard is now ready to install XAMPP on your system.
Feb 22, 2024

How to install XAMPP - wikiHow? ›

About This Article
  1. Download the XAMPP installer from https://www.apachefriends.org/index.html.
  2. Click Start next to "Apache" and "MySQL" to start the local servers.
  3. Click Admin next to "Apache" to open the Apache Dashboard.
  4. Click Admin next to "MySQL" to open the myPHPAdmin dashboard.

How do I start XAMPP after installation? ›

After the installation is complete, you will find XAMPP under Start | Programs | XAMPP. You can use the XAMPP Control Panel to start/stop all server and also install/uninstall services. The XAMPP control panel for start/stop Apache, MySQL, FileZilla & Mercury or install these server as services.

How to reinstall XAMPP linux? ›

Now, to install Xampp on Linux, follow the steps given below.
  1. Step 1: Download Xampp for Linux. ...
  2. Step 2: install Xampp in Linux. ...
  3. Step 3: Select the Xampp components you want. ...
  4. Step 4: Installation directory in Xampp. ...
  5. Step 5: Ready to install Xampp in Linux. ...
  6. Step 6: Run Xampp in Linux. ...
  7. Step 7: Make xampp more secure.

How to check XAMPP version in Linux? ›

  1. Try to go to /opt/lampp.
  2. If you can, it means Xampp for Linux it's installed, but if you want to know the version, in the same path of step 1, put in your command line ./xampp status You will know XAMPP for Linux version and Apache, MySQL and ProFTPD status (running or not).
Nov 2, 2020

How to install XAMPP on Linux Mint? ›

Visit the official XAMPP website https://www.apachefriends.org/download.html to download the appropriate installer for your Linux distribution. Change file permissions: Open the terminal and navigate to the directory containing the downloaded package. Execute the command sudo chmod +x xampp-linux-*-installer.

How to install XAMPP server steps? ›

To install XAMPP on your PC go to: https://apachefriends.org and click on the XAMPP for Windows link. The download will start automatically. Once the download has completed, go to your Downloads folder and double-click on the installer to start the installation. Follow the instructions to install XAMPP.

How to run PHP in XAMPP Linux? ›

How to Start a New PHP Project in XAMPP?
  1. Before you run or start writing any program in PHP, you should start Apache and MYSQL.
  2. After starting both servers, you have to write a program in Notepad.
  3. After writing it, save that file as "program. php".
  4. Then copy that file program. ...
  5. Now run your code in that browser.
Oct 11, 2023

How to run XAMPP on localhost? ›

  1. Step 1: Download XAMPP. Start off by downloading the latest version of XAMPP from Apache Friends website. ...
  2. Step 2: Install XAMPP. Once downloaded, run the XAMPP installer file. ...
  3. Step 3: Open the XAMPP Control Panel. ...
  4. Step 4: Start Apache and MySQL Modules.
Mar 2, 2022

How to install XAMPP and WordPress on Linux? ›

XAMPP is a free, open-source cross-platform web server solution stack that includes Apache, MySQL, and PHP.
  1. Step 1: Download and Install XAMPP. ...
  2. Step 2: Start Apache and MySQL. ...
  3. Step 3: Download WordPress. ...
  4. Step 4: Extract WordPress Files. ...
  5. Step 5: Create a Database. ...
  6. Step 6: WordPress Installation.

References

Top Articles
Latest Posts
Article information

Author: Edmund Hettinger DC

Last Updated:

Views: 5883

Rating: 4.8 / 5 (58 voted)

Reviews: 89% of readers found this page helpful

Author information

Name: Edmund Hettinger DC

Birthday: 1994-08-17

Address: 2033 Gerhold Pine, Port Jocelyn, VA 12101-5654

Phone: +8524399971620

Job: Central Manufacturing Supervisor

Hobby: Jogging, Metalworking, Tai chi, Shopping, Puzzles, Rock climbing, Crocheting

Introduction: My name is Edmund Hettinger DC, I am a adventurous, colorful, gifted, determined, precious, open, colorful person who loves writing and wants to share my knowledge and understanding with you.