So installing XAMPP server in Ubuntu is straight forward.All we need to do is to follow few steps.
first of all download xampp from https://www.apachefriends.org/index.html
it will be downloaded to your ubuntu in to the Downloads folder.
Now go to the desktop and right click with mouse.And select option “Open in terminal”
type “ls” and hit Enter key, You should see list of folders in terminal as given below
Desktop Documents Downloads Music Pictures Public Templates Videos
Now change directory to Downloads by
This command will take you in Downloads directory where we have our XAMPP installer downloaded.
So here we can run command to run XAMPP installer.
Run below given command in terminal
In below command installer name is : xampp-linux-x64-7.3.5-1-installer.run ,When you run this command make sure installer name and version matches with your command
chmod 755 installer name chmod 755 xampp-linux-x64-7.3.5-1-installer.run //this command will correct the permissions of installer
ls -l xampp-linux-x64-7.3.5-1-installer.run
-rwxr output shows that the file can be executed.
SO finally we can run installer using this command
sudo ./installer name //In this example installer name is "xampp-linux-x64-7.3.5-1-installer.run" sudo ./xampp-linux-x64-7.3.5-1-installer.run
It will ask the password if you have any. And then the installer will launch.From here just install xampp installer normally.
Click on next button
Install required dependencies
xampp will install to “/opt/lampp”
click next to continue installation
Once installation finishes you can use xampp local server