Xampp Linux
index
installation
first, you need to downlod xampp for linux
Now, make a downloded file exicutable:
chmod +x xampp-linux-x64-8.0.7-0-installer.run
launch the installation file as root user:
sudo ./xampp-linux-x64-8.0.7-0-installer.run
Creating Shortcut for command line
we using linking default xampp file to local fin
sudo ln -s /opt/lampp/xampp /usr/local/bin
- after applying ubove cammand you can use
xamppinsted of/opt/lamp/xampp
How to use
- It quit simple commands after created shortcut for command
- for starting all services:
sudo xampp start - for stoping all services:
sudo xampp stop - for starting apache only:
sudo xampp startapache - for stopping apache only:
sudo xampp soptapache
Changing htdocs directory
for changing directory we also use linking method.
- move all `/opt/lampp/htdocs' files to your new directory
- Use below command.
sudo rm -r /opt/lampp/htdocs
sudo ln -s ~/Documents/Learn/WEB/localhost/htdocs/ /opt/lampp/
- it linking all htdocs files into
/opt/lampp/htdocsfile