{"id":182,"date":"2018-06-03T16:25:00","date_gmt":"2018-06-03T14:25:00","guid":{"rendered":"http:\/\/www.ncodenicer.com\/?p=182"},"modified":"2026-05-13T20:33:38","modified_gmt":"2026-05-13T18:33:38","slug":"installing-multiple-instances-of-phabricator-on-the-same-server","status":"publish","type":"post","link":"https:\/\/www.codenicer.com\/?p=182","title":{"rendered":"Installing multiple instances of Phabricator on the same server"},"content":{"rendered":"\n<p>Just non-obvious steps listed (with things to replace in uppercase), follow their installation instructions for general setup:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Change default database name prefix<br>Phabricator for some reason is not using schemas to group tables but rather creates gazillion of different databases, all by default have their names prefixed by <code>phabricator_<\/code>. This can be changed using (note that trailing underscore will be automatically appended):<br><code>bin\/config set storage.default-namespace YOURPREFIX<\/code><\/li>\n\n\n\n<li>Change directory for PID files<br>Have each instance keep its PID files in separate dir, default is <code>\/var\/tmp\/phd\/pid<\/code>. This can be changed using<br><code>bin\/config set phd.pid-directory \/var\/tmp\/OTHERDIR\/pid<\/code><\/li>\n\n\n\n<li>Change directory for log files<br>Have each instance keep its log files in separate directory (default being <code>\/var\/tmp\/phd\/log<\/code>):<br><code>bin\/config set phd.log-directory \/var\/tmp\/OTHERDIR\/log<\/code><\/li>\n\n\n\n<li>Set cache namespace<br>Default cache namespace is phabricator, this can be changed using<br><code>bin\/config set phabricator.cache-namespace NAMESPACE<\/code><\/li>\n<\/ul>\n\n\n\n<p>Don&#8217;t forget to add line<br><code>export PATH=\"\/usr\/local\/bin:$PATH\"<\/code><br>to ssh-hook file, since FreeBSD is installing php in <code>\/usr\/local\/bin<\/code> (otherwise you might receive error &#8220;<code>error: AuthorizedKeysCommand \/usr\/local\/libexec\/XXXX failed, status 127<\/code>&#8220;)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Just non-obvious steps listed (with things to replace in uppercase), follow their installation instructions for general setup: Don&#8217;t forget to add lineexport PATH=&#8221;\/usr\/local\/bin:$PATH&#8221;to ssh-hook file, since FreeBSD is installing php in \/usr\/local\/bin (otherwise you might receive error &#8220;error: AuthorizedKeysCommand \/usr\/local\/libexec\/XXXX failed, status 127&#8220;)<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[6,121],"class_list":["post-182","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-freebsd","tag-phabricator"],"_links":{"self":[{"href":"https:\/\/www.codenicer.com\/index.php?rest_route=\/wp\/v2\/posts\/182","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.codenicer.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.codenicer.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.codenicer.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.codenicer.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=182"}],"version-history":[{"count":1,"href":"https:\/\/www.codenicer.com\/index.php?rest_route=\/wp\/v2\/posts\/182\/revisions"}],"predecessor-version":[{"id":183,"href":"https:\/\/www.codenicer.com\/index.php?rest_route=\/wp\/v2\/posts\/182\/revisions\/183"}],"wp:attachment":[{"href":"https:\/\/www.codenicer.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=182"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.codenicer.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=182"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.codenicer.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=182"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}