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