Ubuntu/Debian下安装Phabricator

89367519 2013-04-05

Installation:

(出于简单考虑,这里不包含配置apache的环节,因此直接把phabricator安装到apache的/var/www,可参考phabricatordocs进行更多配置)

1.如果sudo不能使用,则先su切换到root,然后安装sudo,apt-getinstallsudo

2.wgethttp://www.phabricator.com/rsrc/install/install_ubuntu.sh

cpinstall_ubuntu.sh/var/www

cd/var/www

chmod+xinstall_ubuntu.sh

./install_ubuntu.sh

3.vim/etc/apache2/sites-enabled/000-default

把两处:/var/www改为/var/www/phabricator/webroot

DocumentRoot/var/www/phabricator/webroot

RewriteEngineon

RewriteRule^/rsrc/(.*)-[L,QSA]

RewriteRule^/favicon.ico-[L,QSA]

RewriteRule^(.*)$/index.php?__path__=$1[B,L,QSA]

4./etc/init.d/apache2restart

5.cdphabricator

./bin/storageupgrade

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

1../bin/accountadmin设置用户

2../bin/configsetphabricator.base-uri'http://192.168.15.129/'设置baseuri

3.vim/etc/php5/apache2/php.ini

/timezone找到date.timezone并设置为:date.timezone=Asia/Shanghai

/etc/init.d/apache2restart

4.运行daemon:./bin/phdstart

5.配置mail:通过web访问phabricator并在页面上进行配置:(这里使用的是外部SMTPserver的方式,更多方式参见phabricatordocs)

用administrator账号登录后,在administration栏选择Config进入

1)选择mail,设置:

metamta.default-address--xxxx@163.com//注意:这里必须要用与smtp服务器对应的邮箱地址,不然邮件发不出去

metamta.domain--phabricator.myproject.com//随意

metamta.mail-adapter:setto"PhabricatorMailImplementationPHPMailerAdapter"

metamta.send-immediately:SendViaDaemons

2)选择PHPMailer,设置:(以163.com的SMTPserver为例)

phpmailer.mailer:setto"smtp".

phpmailer.smtp-host:smtp.163.com

phpmailer.smtp-port:25

phpmailer.smtp-user:xxxx

phpmailer.smtp-password:xxxx

配置完毕后,可以在Administration-MetaMTA下进行发送邮件的测试,注意需要添加一个User组用户,无法直接向SystemAgent组用户发送邮件

6.添加代码库:Administration内选择Repositories,点击CreateNewRepository,可选择Git或SubVersion类型的代码库,Name是库名称,Callsign用于作为所有revisioncommit的前缀使用,一般用短小的全大写。

创建完毕后,在tracking内配置跟踪参数,填写remoteurl(代码库地址),配置代码库在服务器上保存的路径localpath:比如/home/username/git,然后再根据情况填写用户名,密码一般就可以了。保存后,phabricator后台会自动tracking代码库的更改情况。

至此,phabricator可以基本使用了,其他工具如arcnist等使用及配置可参照phabricator文档,大部分配置都可以直接使用administrator账号在web网页上进行。

相关推荐

86216135 / 0评论 2020-07-05