ubuntu command


First of all xampp folder is /opt/lampp so if you want to create some php files you put them in /opt/lampp/htdocs, you don’t go to var/www or var/www/html

Now to start the graphical interface

cd /opt/lampp
sudo ./manager-linux.run (or manager-linux-x64.run)

If you don’t care about the graphical interface and you just want to run xampp then you do

sudo /opt/lampp/lampp start

To make a shortcut, open a terminal and type

alias xampp='sudo /opt/lampp/manager-linux-x64.run'

and now every time you type xampp in terminal, the graphical interface will start