To install XAMPP on Ubuntu, you can follow these steps:

  1. Download XAMPP: Visit the official XAMPP website and download the Linux version of XAMPP. Choose the version that suits your needs.

  2. Open a Terminal: You can open a terminal by pressing Ctrl + Alt + T or searching for “Terminal” in the Ubuntu Dash.

  3. Navigate to the Downloads directory: Use the cd command to navigate to the directory where the downloaded file is located. For example:
    cd ~/Downloads
    
  4. Give execute permission to the installer: Run the following command to give execute permission to the downloaded installer:
    chmod +x filename.run
    

    Replace filename.run with the actual name of the downloaded file.

  5. Run the installer: Execute the XAMPP installer using the following command:
    ./filename.run
    

    Again, replace filename.run with the actual name of the downloaded file.

  6. Follow the installation wizard: The XAMPP installation wizard will guide you through the installation process. You’ll be prompted to choose the components you want to install. You can select Apache, MySQL, PHP, and other components based on your requirements.

  7. Choose installation directory: Specify the directory where you want to install XAMPP. The default directory is often /opt/lampp.

  8. Complete the installation: Follow the on-screen instructions to complete the installation. The installer will set up the selected components and create shortcuts.

  9. Start XAMPP: After the installation is complete, you can start XAMPP by running the following command in the terminal:
    sudo /opt/lampp/lampp start
    

    This will start the Apache web server and MySQL database.

  10. Access the XAMPP Control Panel: Open your web browser and go to http://localhost or http://127.0.0.1. You should see the XAMPP welcome page.

  11. Access phpMyAdmin: To access phpMyAdmin, go to http://localhost/phpmyadmin in your web browser. Here, you can manage your MySQL databases.

You should now have XAMPP installed and running on your Ubuntu system. You can use the instructions here to run XAMPP on Ubuntu.