Install XAMPP on Linux Mint / Ubuntu

1. Download XAMPP:

  • Visit the official XAMPP website (https://www.apachefriends.org/download.html) and download the appropriate installer for your Linux distribution (e.g., xampp-linux-x64-8.1.0-0-installer.run for 64-bit Ubuntu 22.04).

2. Make the Installer Executable:

  • Open a terminal and navigate to the directory where you saved the downloaded installer.

  • Use the following command to make the installer executable:

    Bash
    sudo chmod +x xampp-linux-x64-8.1.0-0-installer.run

3. Run the Installer:

  • Execute the installer:

    Bash
    sudo ./xampp-linux-x64-8.1.0-0-installer.run
  • Follow the on-screen instructions to complete the installation.

4. Start XAMPP:

  • Open a terminal and navigate to the XAMPP installation directory (usually /opt/lampp).

  • Start XAMPP using the following command:

    Bash
    sudo /opt/lampp/lampp start
  • This will start Apache and MySQL, the core components of XAMPP.

5. Access the XAMPP Control Panel (Optional):

  • If you prefer a graphical interface, you can start the XAMPP Control Panel:

    Bash
    sudo /opt/lampp/manager-linux-x64.run
    

Additional Tips:

  • To stop XAMPP, use the following command:

    Bash
    sudo /opt/lampp/lampp stop
  • Open XAMPP manager with the commands below.

    • If you use a 32-bit system:

      sudo /opt/lampp/manager-linux.run
      
    • If you use a 64-bit system:

      sudo /opt/lampp/manager-linux-x64.run
  • You can create a desktop shortcut for starting XAMPP to make it easier to access.

  • For more advanced configuration options, refer to the XAMPP documentation.

By following these steps, you should be able to successfully start XAMPP on your Linux system and begin developing web applications.

Komentar