mac的虚拟机上安装wampserver,mac访问虚拟机服务器

其中遇到很多问题:

1,You don't have permission to access /index.php on this server(这个不是防火墙问题,好像是修改deny from all 为 allow from all 就可以解决)

2,the requested URL / was not found on this server(未解决)

以下未进行测试,自己也不急着使用,暂停留待以后需要用到再说偷笑

解决方法:检查Apache下的httpd.conf 的DocumentRoot 和Directory 的路径是的正确,

若路径正确;则查看httpd:conf 下的Include conf/extra/httpd-vhosts.conf 

将Include conf/extra/httpd-vhosts.conf改为#Include conf/extra/httpd-vhosts.conf ;重启服务访问即可;


猜你喜欢

转载自blog.csdn.net/weixin_40704661/article/details/79815445