歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> facebook代碼review工具-phabricator安裝步驟

facebook代碼review工具-phabricator安裝步驟

日期:2017/2/27 16:01:29   编辑:Linux教程

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 "***"

Copyright © Linux教程網 All Rights Reserved