Ubuntu/Debian下安装Phabricator

Installation:
(出于简单考虑,这里不包含配置apache的环节,因此直接把phabricator安装到apache的/var/www,可参考phabricator docs进行更多配置)
1. 如果sudo不能使用,则先su切换到root,然后安装sudo,apt-get install sudo
2. wget http://www.phabricator.com/rsrc/install/install_ubuntu.sh
cp install_ubuntu.sh /var/www
cd /var/www
chmod +x install_ubuntu.sh
./install_ubuntu.sh
3. vim /etc/apache2/sites-enabled/000-default
把两处:/var/www 改为 /var/www/phabricator/webroot
DocumentRoot /var/www/phabricator/webroot
RewriteEngine on
RewriteRule ^/rsrc/(.*) - [L,QSA]
RewriteRule ^/favicon.ico - [L,QSA]
RewriteRule ^(.*)$ /index.php?__path__=$1 [B,L,QSA]
4. /etc/init.d/apache2 restart
5. cd phabricator
./bin/storage upgrade

完成,可web登录,并开始configuration:

1. ./bin/accountadmin 设置用户
2. ./bin/config set phabricator.base-uri 'http://192.168.15.129/' 设置base uri
3. vim /etc/php5/apache2/php.ini
/timezone找到date.timezone并设置为:date.timezone = Asia/Shanghai
/etc/init.d/apache2 restart
4. 运行daemon:./bin/phd start
5. 配置mail:通过web访问phabricator并在页面上进行配置:(这里使用的是外部SMTP server的方式,更多方式参见phabricator docs)
用administrator账号登录后,在administration栏选择Config进入
1)选择mail,设置:
metamta.default-address -- xxxx@163.com // 注意:这里必须要用与smtp服务器对应的邮箱地址,不然邮件发不出去
metamta.domain -- phabricator.myproject.com // 随意
metamta.mail-adapter: set to "PhabricatorMailImplementationPHPMailerAdapter"
metamta.send-immediately: Send Via Daemons
2)选择PHPMailer,设置:(以163.com的SMTP server为例)
phpmailer.mailer: set to "smtp".
phpmailer.smtp-host: smtp.163.com
phpmailer.smtp-port: 25
phpmailer.smtp-user: xxxx
phpmailer.smtp-password: xxxx
配置完毕后,可以在Administration-MetaMTA下进行发送邮件的测试,注意需要添加一个User组用户,无法直接向System Agent组用户发送邮件
6. 添加代码库:Administration内选择Repositories,点击Create New Repository,可选择Git或SubVersion类型的代码库,Name是库名称,Callsign用于作为所有revision commit的前缀使用,一般用短小的全大写。
创建完毕后,在tracking内配置跟踪参数,填写remote url(代码库地址),配置代码库在服务器上保存的路径local path:比如/home/username/git,然后再根据情况填写用户名,密码一般就可以了。保存后,phabricator后台会自动tracking代码库的更改情况。

至此,phabricator可以基本使用了,其他工具如arcnist等使用及配置可参照phabricator文档,大部分配置都可以直接使用administrator账号在web网页上进行。
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值