phabricator安装

本文详细介绍了在Ubuntu 10.04系统中安装Phabricator的过程,包括安装必要的软件包、获取Phabricator代码、配置Apache2虚拟主机、设置web端口、启动rewrite模块及配置MySQL。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

ubuntu 10.04下安装phabricator步骤:

1. 安装apache2、mysql、php5

apt-get install mysql-server apache2 php5 php5-mysql php5-gd php5-dev php5-curl php-apc php5-cli dpkg-dev

2. 获取phabricator代码

git clone git://github.com/facebook/libphutil.git
git clone git://github.com/facebook/arcanist.git
git clone git://github.com/facebook/phabricator.git

3.  apache2虚拟主机配置

    vi /etc/apache2/sites-available/default

    <VirtualHost *:80>

    …..

    </VirtualHost>

    #添加以下配置

    <VirtualHost *:8080>

    # Change this to the domain which points to your host.

    # ServerName phabricator.example.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 /var/www/codereview/phabricator/webroot

    RewriteEngine on

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

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

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

    <Directory “/var/www/codereview/phabricator/webroot”>

    Order allow,deny

    Allow from all

    </Directory>

    </VirtualHost>

4. 配置web端口

    vi /etc/apache2/ports.conf

    #添加以下配置

    NameVirtualHost *:8080

    Listen 8080

5. 启动rewrite模块

a2enmod rewrite
/etc/init.d/apache2 restart

6. phabricator配置mysql

./bin/config set mysql.user root
./bin/config set mysql.pass <password>
./bin/config set mysql.port <port>
./bin/storage upgrade

 

至此安装完毕,打开http://localhost:8080 应该能看到phabricator管理员设置页面了。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值