operation system:ubuntu-18.04.1
step1:download XAMPP
#sudo wget https://www.apachefriends.org/xampp-files/7.2.9/xampp-linux-x64-7.2.9-0-installer.run
step2:install XAMPP
#sudo chmod 755 xampp-linux-*-installer.run
#sudo ./xampp-linux-*-installer.run
step3:start|stop
安裝完成後會彈出一個如下圖控制檯
通過下面控制檯啓動或關閉
訪問效果,可以在虛擬機的瀏覽器訪問http://localhost,不能通過ip訪問在其他機器訪問,這裏是因爲
apache默認做了限制ip訪問
【other things】
1.日誌位置:/opt/lampp/logs/error_log
2.調整支持ip訪問,修改配置文件
#vim /opt/lampp/etc/extra/httpd-xampp.conf
找到/opt/lampp/phpmyadmin這行,
在下增加如下配置:
Require all granted
重啓apache就可以在同一網段內的其他pc上通過ip訪問了
【官網】
https://www.apachefriends.org/index.html
https://www.apachefriends.org/zh_cn/download.html
https://www.apachefriends.org/faq_linux.html