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/

= phab installation =

See Phabricator installation guide or Phorge installation guide for basics.

dependency packages

 * On Debian bullseye:
 * On Fedora:

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

database
MySQL privs:

Configuring from shell:

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

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

base URL
Add to /etc/hosts:

127.0.1.1 phabricator.lan

= extension installation =

For antivandalism:

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

= admin, 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: