xampp 搭建 web mac上

 

1、安装 

2、修改数据库密码,删除phpmyadmin  ,用navicat 控制数据库

3、修改/Applications/XAMPP/xamppfiles/etc/extra/httpd-vhosts.conf  修改需要部署的网站属性

 

<VirtualHost *:80>
ServerAdmin webmaster@dummy-host.example.com
DocumentRoot /Users/ali/PhpstormProjects/jjr
ServerName t.xx.com
ServerAlias t.xx.com
ErrorLog logs/t.xx.com-error_log
CustomLog logs/t.xx.com-access_log common
</VirtualHost>

 

4、修改/Applications/XAMPP/xamppfiles/etc/httpd.conf 

a..打开Include etc/extra/httpd-vhosts.conf

b..设置允许访问路径


<Directory />
AllowOverride none
Require all granted
</Directory>

5、重启服务器!OK
posted @ 2016-06-11 01:10  Ali.Blacken  阅读(339)  评论(0编辑  收藏  举报