Phabricator/Local Dev Environment

This page started life as User:BBearnes (WMF)'s notes from setting up a local dev environment for Phabricator, with some additions by MModell.

The hostname used here is: http://phabricator.lan/

= Phabricator / Phorge installation =

See Phabricator installation guide or Phorge installation guide for basics.

Install dependency packages

 * On Debian bullseye:
 * On Fedora:

General note: for max. stability, avoid distributions with PHP 8.1+, at least in 2023.

Set up database
MySQL/MariaDB privileges:

Configure PHP
Per http://phabricator.lan/config/issue/extension.opcache.devmode/ shown in the installed instance, make the following changes on Debian:

Edit default config file
Create phab/phabricator/conf/local/local.json with the following content:

Define host
Add to /etc/hosts:

127.0.1.1 phabricator.lan

= Install extensions =

For antivandalism:

Then config is here: http://phabricator.lan/config/group/antivandalism/

= Administration, etc. =

Creating test data
This requires developer mode, but there's a `lipsum` command:

Auth lock
Disallows configuring authentication methods in the user interface

Recover access to a local account
See https://secure.phabricator.com/book/phabricator/article/configuring_accounts_and_registration/, basically: