首先安装 nginx 和 mysql, 安装nginx的时候需要注意网站根目录的设置,安装mysql注意mysql.sock文件的位置.
然后安装php, 我用yum安装: yum install php php-fpm php-mysql php-devel php-mbstring
还要安装安装svn : yum install subervion
安装以后mysql可以正常启动, php可以正常解析.准备工作就完成了!!
说明:
我的nginx的网站根目录是/web/www 目录
下载Phabricator的安装脚本!!
wget http://www.phabricator.com/rsrc/install/install_ubuntu.sh
#把install_ubuntu.sh 文件放到nginx的网站根目录!
chmod +x install_ubuntu.sh
./install_ubuntu.sh #执行的时候货报错,没有apt-get命令!因为他是ubuntu的命令!所以用命令替换!
sed -i '/apt-get/yum install/' #替换之后在执行就ok了!
执行以后nginx的网站根目录里会多了几个目录,修改nginx的网站根目录为:
root /web/www/phabricator/webroot
然后在nginx的配置文件中添加rewrite.
location / {
#root html;
index index.html index.htm index.php;
rewrite ^(.*)$ /index.php?__path__=$1; # location 里面添加rewrite.
}
测试: http://ip地址 就可以看到登陆界面了! (但是到此还没有用户密码)
我们到/web/www/phabricator目录 用命令 ./bin/accountadmin 创建administrator用户和密码.
然后到/web/www/phabricator目录执行 ./bin/storage upgrade 就可以登陆了!
登陆成功后出现下面的界面!! 图实例
下面说一些需要执行的命令和一些关键点.
1: mysql php centos系统 三者的时区最好统一一下 (+0800)!
2: 到/web/www/phabricator目录执行 ./bin/phd start # 运行 daemon
3:svn提交的时候"信息"栏里加上 Auditors: username1, username2 #username1/2 是指定的审查人员.
4:如果还有别的问题 多看看phabricator 里面的提示!! 提示很重要能帮你解决问题
解决完必须解决的问题以后就要添加用户/svn关联库/配置邮件 等一些功能性问题了!
1.添加用户!
2.配置svn的关联库 (参考http://wenku.baidu.com/view/6844d854312b3169a451a49b.html)
点击ADMINISTRATOR面板上的Repositories 点击 Create New Repository 如图1
点击 Create Repository 如图2
点击 save 保存设置! 然后点击 Tracking 如图3
下面列出修改过的选项
Remote URI --> Username 填写对svn 中admin库有权限的用户
Remote URI -->Password 填写用户的密码
配置邮件 (参考http://pianoape.blog.163.com/blog/static/218008228201322033040477/)
配置mail:通过web访问phabricator并在页面上进行配置:
用administrator账号登录后,在administration栏选择Config进入
1)选择mail,设置:
metamta.default-address -- [email protected] // 注意:这里必须要用与smtp服务器对应的邮箱地址,不然邮件发不出去
metamta.domain -- phabricator.myproject.com //改不改无所谓,我用的是默认的
metamta.mail-adapter: set to "PhabricatorMailImplementationPHPMailerAdapter" //修要修改
metamta.send-immediately: Send Via Daemons //需要修改
2)选择PHPMailer,设置:
phpmailer.mailer: set to "smtp". //需要修改
phpmailer.smtp-host: smtp.163.com //填写你的163邮箱的smtp地址!
phpmailer.smtp-port: 25 //修要修改
phpmailer.smtp-user: fucking //你邮箱的用户名
phpmailer.smtp-password: fuck //你邮箱的密码
配置完毕后,可以在Administration-MetaMTA下进行发送邮件的测试,注意需要添加一个User组用户,无法直接向System Agent组用户发送邮件 (我没有检测因为没找到地方!)
phabricator 的 使用参考 (http://www.cnblogs.com/TechZi/archive/2013/02/23/2923873.html)