纯mac环境
1、安装homebrew ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
2、home-brew安装mysql 命令 brew search mysql 搜索mysql
3、brew install mysql 安装mysql
4、初始化测试进入 mysql 启动mysql 命令mysql.server start 其他相关命令(stop)
初始化进入 命令 mysql -u root -p 然后输入密码,默认为空
5、安装nginx 命令 brew install nginx
修改nginx.conf文件创建虚拟主机 配置如下:
将工程文件放到指定目录,并修改目录路径,将index.php添加到location index中,
6、安装php-fpm mac环境已安装好,只需在private/etc下面的php-fpm.conf 修改error_log输出路径即可,使用sudo php-fpm命令执行运行
7、用映射的地址访问,提示连接不到数据库,在phabricator目录执行页面提示的命令即可
2 3 4 5 6 7 | ./bin/config set mysql.host server-name (127.0.0.1)./bin/config set mysql.port 3306./bin/config set mysql.user root./bin/config set mysql.pass ""(换成你的密码,数据库未设密码用如此设置即可) |
需要注意的点:
-
如果没有配置rewrite,则会显示错误:
Request parameter '__path__' is not set. Your rewrite rules are not configured correctly.
提示数据库无法连接,可能是未进入初始化