How to install XAMPP on any Ubuntu flavor


If you want to do a fresh installation, follow this

Note : LAMPP is the Linux specific version of XAMPP.

  1. Download LAMPP-Server using this command

    $sudo apt-get install lamp-server^

  2. Goto and download the version of LAMPP software that you want for Linux (Ubuntu).
  3. Open your Terminal and locate the file (by default it downloads into the Downloads folder)

    cd Downloads

  4. Execute this command

    sudo chmod +x

    Note : The version of XAMPP you’ll download might be different, so change the version in this command accordingly.

    You’ll be asked for your system’s password

  5. Now go into SuperUser mode

    sudo su

  6. Run the installer, but don’t close the Terminal.


    Note: Again change the version for executing this command.

    A dialog box will open, if you get an error, ignore it. In the dialog box, click next(for each step) and move through the process of installation. Once XAMPP is installed, click finish.

  7. Go back to your Terminal and change the directory

    cd /opt/lampp

  8. To set a password, type

    ./lampp security

    Press y(Enter) and enter a new password and re-enter this password again to confirm

  9. Start XAMPP

    ./xampp start

  10. Type exit(Enter) to exit the SuperUser
  11. To start LAMPP, execute this command

    sudo /opt/lampp/lampp start

  12. To stop LAMPP, execute this command

    sudo /opt/lampp/lampp stop

Leave a Reply

Your email address will not be published. Required fields are marked *

one × 3 =