1.不小心把虚拟机的环境删了,需要重新安装xmapp
安装很简单,但是重启:/opt/lampp/lampp restart
发现
XAMPP:"Another web server daemon with SSL is already running"
XAMPP:"Another ftp daemon with SSL is already running"
果断把他kill了,重启成功
ps -aux|grep ftp
kill -9 [端口号]
2.远程机器访问ip报403
网上通过注释掉Deny from all的方法对于新版本的Xampp来说并不奏效
解决办法依然是打开httpd-xampp.conf文件,文件目录:/opt/lampp/etc/extra/
找到
- #
- <LocationMatch "^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))">
- Require localhost
- ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
- </LocationMatch>
将其中的"Require localhost"改为"Require all granted"
保存,重启Xampp即可~
时间: 2024-10-26 11:18:05