matebooke安装mysql_phabricator安装配置

安装phabricator

git clone https://github.com/facebook/libphutil.git

注意他们第三个放在同一级目录如  /www

2、cd phabricator/

3、git pull

注:项目使用Apache服务器,如果阁下为nginx服务器,请自行参考官方文档配置。

vim http.conf

添加

Order Deny,Allow

Allow from all

vim httpd-vhost.conf

添加虚拟机

ServerName phabricator.henosteven.com

DocumentRoot /www/phabricator/webroot

RewriteEngine on

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

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

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

将php添加到PATH中,方便phabricator的脚本需要自行

vim /etc/profile

export PATH=$PATH:/usr/local/php/bin

为phabricator配置数据库

注意此处使用的mysql用户需要具有创建数据库权限,一般使用

(grant all on *.* to  user@'db.host'  identified by 'password')

cd /www/phabricator

./bin/config set mysql.host value

./bin/config set mysql.port value

./bin/config set mysql.user value

./bin/config set mysql.pass value

配置完毕运行

./bin/storage upgrade

此时数据库就配置并且创建完毕了。

接下来登录页面创建管理员账户(上面配置的phabricator.henosteven.com, 没有域名请自行配置host)

配置邮件

./bin/config set phpmailer.smtp-host smtp.ym.163.com

./bin/config set phpmailer.smtp-user pha@hotkeypower.com

./bin/config set phpmailer.smtp-password 123123

测试邮件是否好用

./bin/mail --help

看看里面的命令就知道使用了, 比较简单。

./bin/mail send-test --to heno --subject hi

查收邮件。

注意如果没有收到邮件,你需要登录页面

config>mail>matemta.default-address 配置需要跟上面的phpmailer.smtp-user 保持一致

如果你使用 ./bin/mail send-test 可是收到邮件,但是页面发送收不到, 你应该重启服务

./bin/phd restart

注意: 这个需要需要安装php pcntl 扩展

允许用户登录注册

如果你的管理员用户退出来了,提示下面的信息了

This Phabricator install is not configured with any enabled authentication providers which can be used to log in. If you have accidentally locked yourself out by disabling all providers, you can use `phabricator/bin/auth recover ` to recover access to an administrative account.

你应该运行命令

./bin/auth recover henosteven(管理员账号)

根据提示进行操作

Use this link to recover access to the "steven" account from the web interface:

/login/once/recover/1/nstgjvga2knauxzeemah5jfmfa44iy5a/

After logging in, you can use the "Auth" application to add or restore authentication providers and allow normal logins to succeed.

允许用户登录注册

管理员登录页面 进入 Auth  进行配置就好。

到此为止,phabricator就安装完毕了,下面需要安装就是 配置arcanist了。

----------------------------------------------------------------------------

配置arcanist

将命令添加到 PATH中

vim /etc/profile

export PATH=$PATH:/home/steven/soft/arcanist/bin/

进入代码创库

vim .arcconfig

{

"project.name" : "henosteven-pro",

"phabricator.uri" : "http://phabricator.henosteven.com/"

}

运行 arc install-certificate, 按要求访问地址, 将地址中的字符串粘贴回来即可

然后就是

运行 arc diff

如果提示

Please set EDITOR environment variable

那么你还需要将编辑器添加到PATH(如果你有vim的话,你可以向下面这样)

export EDITOR=$(which vim)

然后就行了~~~~

------------------------------------------------------------------------------------

一个项目管理神器就这样开始了~~~~

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值