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管理员设置页面了。