以centos为例
安装准备
nginx
mysql
php
git
1 建立一个文件夹
mkdir Phabricator && cd Phabricator
2 拉源码
git clone https://github.com/facebook/libphutil.gitgit clone https://github.com/facebook/arcanist.git git clone
https://github.com/facebook/phabricator.git
3 配置nginx
server {
listen 80;
server_name home.pha.com;
root /data/Phabricator/phabricator/webroot/;
location / {
index index.php index.html;
rewrite ^/(.*)$ /index.php?__path__=/$1 last;
}
listen 80;
server_name home.pha.com;
root /data/Phabricator/phabricator/webroot/;
location / {
index index.php index.html;
rewrite ^/(.*)$ /index.php?__path__=/$1 last;
}
location ~ \.php$ {
try_files $uri =404;
include fastcgi_params;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
}
try_files $uri =404;
include fastcgi_params;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
}
4 配置mysql
cd phabricator/
./bin/config set mysql.host value
./bin/config set mysql.post value./bin/config set mysql.user value
./bin/config set mysql.pass value
配置完成后更新下
./bin/storage upgrade
现在正常跳转到注册页面,注册管理员用户。
后期更新汉化以及其他使用