- install_ubuntu.sh
- apt-get installの行からphpとapache2を削除
- a2enmodの行を削除
- Install dependenciesの行からapacheを削除 ;)
- ガイドに乗っているnginxの設定ファイルを/etc/nginx/sites-available/phabricatorに設置
- 変更:
fastcgi_pass unix:/var/run/php5-fpm.sock
- 追加:
fastcgi_param PHABRICATOR_ENV local/myconfig
sudo ln -s /etc/nginx/sites-available/phabricator /etc/nginx/sites-enabled/phabricator
- 変更:
-
設定ファイルを新規作成
conf/local/myconfig.conf.php<?php return array( 'phabricator.base-uri' => 'http://' . $_SERVER['HTTP_HOST'], // not good // mysql 'mysql.host' => 'localhost', 'mysql.user' => 'root', 'mysql.pass' => 'your_password', // email 'metamta.default-address' => 'noreply@localhost', 'metamta.domain' => 'localhost', 'metamta.mail-adapter' => 'PhabricatorMailImplementationTestAdapter', // do not send any mail // storage 'storage.local-disk.path' => '/path/to/writable/dir', // PATH 'environment.append-paths' => ['/usr/local/bin', '/usr/bin'], ) + phabricator_read_config_file('production'); // default ?>
-
ドメインがlocalhostの場合
-
とりあえずsrc/aphront/AphrontRequest.phpを下記のように変更すれば、ログインできる
setcookie( $name, $value, $expire, $path = '/') /*, $base_domain, $is_secure, $http_only = true) */;
-
ちなみに癖が強そうだったので、インストール後触らないままになってしまいました・・・;