operation system:ubuntu-18.04.1php
step1:download XAMPP
#sudo wget https://www.apachefriends.org/xampp-files/7.2.9/xampp-linux-x64-7.2.9-0-installer.runhtml
step2:install XAMPP
#sudo chmod 755 xampp-linux-*-installer.run
#sudo ./xampp-linux-*-installer.runlinux
step3:start|stop
安裝完成後會彈出一個以下圖控制檯
經過下面控制檯啓動或關閉apache
訪問效果,能夠在虛擬機的瀏覽器訪問http://localhost,不能經過ip訪問在其餘機器訪問,這裏是由於ubuntu
apache默認作了限制ip訪問vim
【other things】瀏覽器
1.日誌位置:/opt/lampp/logs/error_logui
2.調整支持ip訪問,修改配置文件3d
#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