edoceo

How To: Installing Phabricator on Gentoo Linux

Install Dependencies

emerge -av git subversion mercurial
emerge -av apache
emerge -nvignx

USE="apache2 cli curl gd json mysql pcntl" emerge -av mysql

[ebuild     U  ] dev-lang/php-5.5.18:5.5 [5.5.16:5.5] USE="apache2 bcmath berkdb bzip2 -calendar cdb cgi -cjk cli crypt ctype curl -debug -embed enchant -exif fileinfo filter (-firebird) -flatfile -fpm (-frontbase) ftp gd gdbm gmp hash iconv imap inifile -intl -iodbc ipv6 json -kerberos ldap -ldap-sasl -libedit -libmysqlclient mhash -mssql mysql -mysqli nls -oci8-instant-client -odbc opcache pcntl pdo phar posix postgres -qdbm readline -recode (-selinux) session sharedmem simplexml snmp soap sockets spell sqlite ssl (-sybase-ct) -systemd sysvipc -threads -tidy tokenizer truetype unicode -vpx -wddx xml xmlreader xmlrpc xmlwriter -xpm -xslt zip zlib"

Install Phabricator

APP_ROOT="/opt/edoceo/app/phabricator"
mkdir -p $APP_ROOT
cd $APP_ROOT

git clone https://github.com/phacility/libphutil.git
git clone https://github.com/phacility/arcanist.git
git clone https://github.com/phacility/phabricator.git

Configure Web Server

The documentation in phabricator.com/book/phabricator/article/configuration_guide is awesome.

Replace $APP_ROOT as necessary.

Configuring Apache

#
# api.edoceo.com
# @todo move to edoceo.io/
<VirtualHost 10.0.0.1:80>

    ServerName dev.edoceo.com
    DocumentRoot $APP_ROOT/phabricator/webroot

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

    <Directory $APP_ROOT/phabricator/webroot>

		Order allow,deny
		Allow from all

		php_value max_execution_time 120
        php_value memory_limit 256M

    </Directory>

</VirtualHost>

Configure Database

Add a user and DB in MySQL

CREATE USER 'phabric'@'10.0.0.2' IDENTIFIED BY 'mega-secret';

Configure Phabric

cd $APP_ROOT/phabricator/phabricator
./bin/config set mysql.host db.lan
./bin/config set mysql.user phabric
./bin/config set mysql.pass mega-secret
./bin/storage upgrade --user root --password root-secret
for t in $(echo "show databases;" | mysql -uroot |grep phabric); do echo "GRANT ALL PRIVILEGES ON $t.* TO 'phabric'@'1.1.1.1' " | mysql -uroot; done

Loading Comments from Disqus...