facebook代码review工具-phabricator安装步骤

鉴客 发布于 2013/03/11 22:31
阅读 3K+
收藏 2

1. Installing Required Components
wget http://phabricator.com/rsrc/install/install_rhel-derivs.sh

2. Configuring MySQL
mysql -uroot < /home/qianya/phabricator/resources/sql/init/initialize.sql

3. Upgrading Schema
cd /home/qianya/phabricator/conf
sudo PHABRICATOR_ENV=production.conf.php /home/qianya/phabricator/scripts/sql/upgrade_schema.php

4. Configuring Phabricator
创建 /home/qianya/phabricator/conf/custom/myconfig.conf.php
内容参考 http://www.phabricator.com/docs/phabricator/article/Configuration_Guide.html

5. Configuring Apache

第一个问题:
<<< *** FAILURE! *** >>>
Setup failure! Install PHP extension 'mbstring'.

解决方法:
安装 php53-mbstring 解决

第二个问题:
<<< *** FAILURE! *** >>>
Setup failure! Your configuration fails to specify a server timezone. Either set 'date.timezone' in your php.ini or 'phabricator.timezone' in your Phabricator configuration. See the PHP documentation for a list of supported timezones:

http://us.php.net/manual/en/timezones.php

解决方法:
sudo vi /etc/php.ini
去掉date.timezone前的分号
date.timezone = Asia/Shanghai

第三个问题
<<< *** FAILURE! *** >>>
Setup failure! MySQL exception: Attempt to connect to root@localhost failed with error #2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2).
Edit Phabricator configuration keys 'mysql.user', 'mysql.host' and 'mysql.pass' to enable Phabricator to connect.

解决方法:
启动mysql : sudo /etc/init.d/mysqld restart
sudo ./mysqladmin -u root password "***"
sudo vi /home/qianya/phabricator/conf/custom/myconfig.conf.php 修改mysql的用户名密码

sudo mysqladmin -u root password ''
创建admin帐号
export PHABRICATOR_ENV=production
sudo ./accountadmin
sudo ./mysqladmin -u root password "***"

http://blog.sina.com.cn/s/blog_4ab84c990101f0jn.html

 

加载中
0
YANGL
YANGL
还不reviewboard好用感觉
0
mj4738
mj4738
这个东西很难安装
0
多多de棉花糖
多多de棉花糖

折腾好两天,终于装好了


0
johnson1018
johnson1018
你们有用到lint和uint功能?怎么配置啊,求解???
返回顶部
顶部