在ubuntu下安装配置phabricator

在ubuntu下安装配置phabricator

Phabricator 是一个LAMP应用套件, 因此最基本的要求就是LAMP环境:
• Linux:Linux的不同发行版及变种是必需的。Mac OS X是一个可接受的Linux变种,Windows不是。Phabricator不能安装在Windows系统上。在Mac OS X,Amazon Linux,Ubuntu,RHEL和CentOS上运行的 Phabricator 有活跃的贡献者。此处为ubuntu16
• Apache(或nginx,或lighttpd):需要Apache 2.2.7以上版本。
• MySQL:MySQL必需
• PHP:需要PHP5.2以上版本

apt-get update                                  #升级apt-get
Sudo add-apt-repository ppa:ondrej/php          #ubuntu16下没有php5的包,需要先导入php源
apt-get install git                             #下载git

将install_ubuntu放在/opt/project下,并给予执行权限

Chmod a+x ./install_ubuntu.sh
./install_ubuntu.sh

下载完成后在/opt/project文件夹下生成三个子文件夹
文件夹目录

  • 3、配置apache
    修改/etc/apache2/site-enabled下的000-default.conf
<VirtualHost *:80>
# Change this to the domain which points to your host.
ServerName phabricator.my.com

# Change this to the path where you put 'phabricator' when you checked it
# out from GitHub when following the Installation Guide.
#
# Make sure you include "/webroot" at the end!
DocumentRoot /opt/project/phabricator/webroot   
#your project dir

RewriteEngine on
RewriteRule ^(.*)$          /index.php?__path__=$1  [B,L,QSA]
RewriteRule ^/rsrc/(.*)     -                       [L,QSA]
RewriteRule ^/favicon.ico   -                       [L,QSA]

# If Apache isn't currently configured to serve documents out of the
# directory where you put Phabricator, you may also need to add
# <Directory /> section. 
<Directory /opt/project/phabricator/webroot>    #your project dir
             Options Indexes FollowSymLinks Includes ExecCGI
             AllowOverride None
             Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>

启动apache2.7

a2enmod rewrite                     #开放rewrite
/etc/inii.d/apache2 start           #启动apache2

访问http://127.0.0.1
这里写图片描述

按提示,切到Phabricator的安装目录,设置数据库配置

./bin/config set mysql.host localhost
./bin/config set my.port 3306
./bin/comfig set my.user root
./bin/config ser my.pass passwd

如果嫌弃这样太麻烦,也可以直接编辑phabricator/conf/local/local.json

{
  "mysql.host": "192.168.106.133",
  "mysql.pass": "bbkb_dev",
  "mysql.user": "root",
  "mysql.port": "3306"
 }

配置完成后执行

./bin/storage upgrade

生成数据库后刷新http://127.0.0.1便能进入首页

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值