Phabricator搭建
centos环境
首先下载三个依赖包:
Phabricator wget https://github.com/phacility/phabricator/archive/master.zip
Libphutil wget https://github.com/phacility/libphutil/archive/master.zip
Arcanist wget https://github.com/phacility/arcanist/archive/master.zip
下载安装成功之后依次挤压三个压缩文件:
然后输入网址:
https://secure.phabricator.com/book/phabricator/article/configuration_guide/
复制nginx.conf
然复制nginx里面的vhost/phpwind.conf配置文件 更名为project.conf
然后粘贴一下内容:
nginx.conf
server {
server_name phabricator.example.com;
root /path/to/phabricator/webroot;
location / {
index index.php;
rewrite ^/(.*)$ /index.php?__path__=/$1 last;
}
location /index.php {
fastcgi_pass localhost:9000;
fastcgi_index index.php;
#required if PHP was built with --enable-force-cgi-redirect
fastcgi_param REDIRECT_STATUS 200;
#variables to make the $_SERVER populate in PHP
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param QUERY_STRING $query_string;
fastcgi_param REQUEST_METHOD $request_method;
fastcgi_param CONTENT_TYPE $content_type;
fastcgi_param CONTENT_LENGTH $content_length;
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
fastcgi_param GATEWAY_INTERFACE CGI/1.1;
fastcgi_param SERVER_SOFTWARE nginx/$nginx_version;
fastcgi_param REMOTE_ADDR $remote_addr;
}
}
将nginx.conf里面的server_name 127.0.0.1;
root /path/to/phabricator/webroot; 将root目录修改为Phabricator 下面 的webroot目录即可
然后去phabricator执行以下命令:
./bin/config set mysql.host 127.0.0.1
./bin/config set mysql.user root
./bin/config set mysql.pass 数据库密码
./bin/storage upgrade
cd ext/pcntl/ (位置在sh-1.5/php-5.5.7/etx/pcntl下面)
phpize && ./configure && make install
echo "extension=pcntl.so" >> /alidata/server/php/etc/php.ini
然后查看是否安装成功:
php -m | grep pcntl
启动:
./bin/phd start
设置服务可访问地址:
A huyang9862@
apt-get install subversion
storage.local-disk.path

浙公网安备 33010602011771号