phabricatorのインストール、設定する方法
1.phabricatorのインストール
1.1 git clone https://github.com/phacility/phabricator.git
git clone https://github.com/facebook/libphutil.git
git clone https://github.com/facebook/arcanist.git
1.2 cd phabricator/
1.3 git pull
2.apacheサーバの設定
vim http.conf
<Directory “/www/phabricator/webroot">
Order Deny,Allow
Allow from all
vim httpd-vhost.conf
バーチャルホストの設定
ServerName phabricator.henosteven.com
DocumentRoot /www/phabricator/webroot
RewriteEngine on
RewriteRule ^/rsrc/(.*) – [L,QSA]
RewriteRule ^/favicon.ico – [L,QSA]
RewriteRule ^(.*)$ /index.php?__path__=$1 [B,L,QSA]
PATHにphp変数を追加
vim /etc/profile
export PATH=$PATH:/usr/local/php/bin
3.phabricatorのMySQLを設定
権限の設定
grant all on *.* to root@’db.host’ identified by 'startnews24’
cd /www/phabricator
./bin/config set mysql.host value
./bin/config set mysql.port value
./bin/config set mysql.user value
./bin/config set mysql.pass value
アップデート
./bin/storage upgrade
4.管理アカウントの設定
メールの設定
./bin/config set phpmailer.smtp-host smtp.arkgame.com
./bin/config set phpmailer.smtp-user pha@hotkeypower.com
./bin/config set phpmailer.smtp-password startnews24
検証
./bin/mail –help
./bin/mail send-test –to heno –subject hi 再起動
./bin/phd restart
エラーメッセージ:
This Phabricator install is not configured with any enabled authentication providers which can be used to log in. If you have accidentally locked yourself out by disabling all providers, you can use `phabricator/bin/auth recover ` to recover access to an administrative account.
実行:
./bin/auth recover henosteven
操作:
Use this link to recover access to the “steven" account from the web interface:
/login/once/recover/1/nstgjvga2knauxzeemah5jfmfa44iy5a/
After logging in, you can use the “Auth" application to add or restore authentication providers and allow normal logins to succeed.
5.arcanistのインストール
PATHに環境変数を追加
vim /etc/profile
export PATH=$PATH:/home/steven/soft/arcanist/bin/
コード下記:
vim .arcconfig
{
“project.name" : “henosteven-pro",
“phabricator.uri" : “http://phabricator.henosteven.com/"
}
実行:
arc install-certificate
arc diff
メッセージ:
Please set EDITOR environment variable
PATHにエディタを追加:
export EDITOR=$(which vim)