git (usually called "git" in package management systems)
Apache (usually "httpd" or "apache2") (or nginx)
MySQL Server (usually "mysqld" or "mysql-server")
PHP (usually "php")
Required PHP extensions: mbstring, iconv, mysql (or mysqli), curl, pcntl (these might be something like "php-mysql" or "php5-mysql")
Optional PHP extensions: gd, apc (special instructions for APC are available below if you have difficulty installing it), xhprof (instructions below, you only need this if you are developing Phabricator)
我的東西大部份都是部屬在 Apache 上這個也不例外。所以我加上 sub domain 相關的參數。
vim /etc/httpd/conf.d/httpd-vhosts.conf
<virtualhost>
# Change this to the domain which points to your host.
ServerName phabricator.example.com.tw
# Change this to the path where you put 'phabricator' when you checked it
# out from GitHub when following the Installation Guide.
#
# Make sure you include "/webroot" at the end!
DocumentRoot /path/to/phabricator/webroot
RewriteEngine on
RewriteRule ^/rsrc/(.*) - [L,QSA]
RewriteRule ^/favicon.ico - [L,QSA]
RewriteRule ^(.*)$ /index.php?__path__=$1 [B,L,QSA]
<directory>
Order allow,deny
Allow from all
</directory>
</virtualhost>
設定完 domain 訪問設定的網址,依照指示要先設定 Mysql。
設定 Mysql
$ cd /somewhere/phabricator/
$ ./bin/config set mysql.host mysql主機
Set 'mysql.host' in local configuration.
$ ./bin/config set mysql.user mysql帳號
Set 'mysql.user' in local configuration.
$ ./bin/config set mysql.pass mysql密碼
Set 'mysql.pass' in local configuration.
Phabricator upgrade
更新到最新的版本會有下列訊息。
./bin/storage upgrade
Before running storage upgrades, you should take down the Phabricator web
interface and stop any running Phabricator daemons (you can disable this
warning with --force).
Are you ready to continue? [y/N] y
Loading quickstart template...
Applying patch 'phabricator:db.conpherence'...
Applying patch 'phabricator:db.token'...
Applying patch 'phabricator:db.releeph'...
Applying patch 'phabricator:db.phlux'...
Applying patch 'phabricator:db.phortune'...
Applying patch 'phabricator:db.phrequent'...
Applying patch 'phabricator:db.diviner'...
...
...
Done.
Storage is up to date. Use 'storage status' for details.
更新完畢後再回去網頁,會看到登入畫面。
設定 Admin 帳號
./bin/accountadmin
Enter a username to create a new account or edit an existing account.
Enter a username: admin
There is no existing user account 'admin'.
Do you want to create a new 'admin' account? [Y/n] Y
Enter user real name: admin
Enter user email address: xxx@xxxx
Enter a password for this user [blank to leave unchanged]:
Should this user be a system agent? [y/N] y
Should this user be an administrator? [y/N] y
ACCOUNT SUMMARY
OLD VALUE NEW VALUE
Username admin
Real Name admin
Email xxx@xxxx
Password Updated
System Agent N Y
Admin N Y
Save these changes? [Y/n] y
Saved changes.
最後就是需要開啟背景執行。
./bin/config set phabricator.base-uri 'http://phabricator.example.com.tw/'
Set 'phabricator.base-uri' in local configuration.
It is followed by the repository callsign, and then a VCS-specific commit identifier (for SVN, the commit number; for Git and Mercurial, the commit hash)。