mac环境下安装xampp

首先下载XAMPP,然后配置虚拟域名hosts,再配置Apache服务,

配置Apache服务

  1、打开/Applications/XAMPP/xamppfiles/etc/httpd.conf文件,确定开启了rewrite功能

  2、再搜索/etc/extra/httpd-vhosts.conf文件,去掉前面的#号

  3、接着配置httpd-vhosts.conf文件,目录路径为/Applications/XAMPP/xamppfiles/htdocs/接你的项目名的入口文件,就可以了

就OK了

原文地址:https://www.cnblogs.com/chenhaoyu/p/6600480.html