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 in the file. (The command  locates the configuration file.)

Edit default config file
Create  with the following content:

Define host
Add to /etc/hosts:

127.0.1.1 phabricator.lan

= Load custom extensions =

For antivandalism, misc and translations:

Then config is under http://phabricator.lan/config/group/, for example 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: