1. Go to the official website to download the installation package https://www.apachefriends.org/zh_cn/download.html
2. Find the storage location of your package and put it in the main folder (home/)
then run the command
sudo ./xampp-linux-x64-7.2.3-0-installer.run
If unsuccessful, first set the file-property as follows
3. Open and close operation
Enter the command to open xampp:
sudo /opt/lampp/lampp start
Close xampp:
sudo /opt/lampp/lampp stop
4. Uninstall and set boot up
To uninstall XAMPP, just enter the following command:
rm -rf /opt/lampp
Uninstallation is complete. :)
Set XAMPP to run every boot.
vi /etc/rc.d/rc.local
Add a line at the end:
/opt/lampp/lampp start
5. Root directory modification
Modify the httpd.conf file under /opt/lampp/etc
sudo vi httpd.conf
Find inside DocumentRoot "E:/abc" and change the following path to our root directory
Then find <Directory "E:/abc"> and change this path to be exactly the same as above
As shown below, I changed the path to "/home/zxj/webserver/"