以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
現在正常跳轉到註冊頁面,註冊管理員用戶。
後期更新漢化以及其他使用