CentOS5.9にPhabricatorをインストール
まずは必要なものを入れます
# yum install httpd httpd-devel # yum install php53 php53-devel php53-mysql php53-mbstring # yum install mysql mysql-server
Phabricatorを入れます。Gitから落としてきます
# mkdir /var/www/phabricator # mv /var/www/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
# mkdir -p phabricator/conf/custom # cd phabricator/conf/custom # vim myconfig.conf.php
<?php return array( 'phabricator.base-uri' => 'http://phabricator.example.com', 'mysql.host' => 'localhost', 'mysql.user' => 'phabricator', 'mysql.pass' => 'pass', 'metamta.default-address' => 'phabricator@example.com', 'metamta.domain' => 'example.com', 'metamta.mail-adapter' => 'PhabricatorMailImplementationPHPMailerLiteAdapter' ) + phabricator_read_config_file('production'); ?>
# vi ~/.bashrc export PHABRICATOR_ENV=custom/myconfig # . ~/.bashrc
# cd /opt/phabricator/phabricator # ./bin/storage upgrade
php.iniの設定
date.timezone = Asia/Tokyo
httpd.confの設定を変更します
<VirtualHost 192.168.xxx.xxx:80> ServerAdmin admin DocumentRoot /var/www/phabricator/phabricator/webroot ServerName phabricator.local ErrorLog /etc/httpd/logs/phab.error.log CustomLog /etc/httpd/logs/phab.access_log common RewriteEngine on RewriteRule ^/rsrc/(.*) - [L,QSA] RewriteRule ^/favicon.ico - [L,QSA] RewriteRule ^(.*)$ /index.php?__path__=$1 [L,QSA] SetEnv PHABRICATOR_ENV custom/myconfig <Directory "/var/www/phabricator/phabricator/webroot"> Options Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny allow from all </Directory> </VirtualHost>
アクセスする環境(windowsならhosts)に追記して
http://phabricator.localにアクセスできたらOK