By using this website, you agree to the use of cookies as described in our Privacy Policy.

Install XAMPP on Linux

First of all, needless to say, download xampp from the official website:

https://www.apachefriends.org/download.html

Make sure that the file you just downloaded has execute permissions. Open the terminal making sure you are in the same directory as the .run file, run this command:

chmod + x [package-name]

You could starting to type 'xampp-' and press -> tab to autocomplete.
If the terminal does not respond after the above command, it is a good signal, it means that Linux has done its homework.

Now run the package with administrator permissions (required)

sudo ./xamp-linux-x64-v-Example-installer.run

Once the command has been executed, the XAMPP Wizard Setup will appear to make everything easier.

Click on Next. You will be able to select the components to be installed, it is recommended to keep the default settings.

The installation wizard will show you where it will install XAMPP

/opt/lamp

After setting everything up xampp, starts the actual installation process and may take a while.

Once the process is finished, a graphical Manager will open where you can start, restart and stop the servers.

This is possible by going to the Manage Servers tab at the top.

Click on Start All if you want to start MySQL Database, ProFTPD, and Apache Web Server.

Once the status will be in Running you can check on your browser:

localhost

you will also have phpmyadmin already available

localhost/phpmyadmin

Remember that in order to view your project in Apache, you need to move it to the folder

/var/www/html/

Now everything is ready, enjoy!