See https://discourse.phabricator-community.org/t/3536/:
When running in the PHP's devloper webserver on php 7.4.3, the first POST (create admin user) fails with "undefined index __path__".
From what I understand of the flow:
- PhabricatorStartup::rebuildRequest() happens, where we re-write $_REQUEST.
- At some point later, PhabricatorStartup::verifyRewriteRules() updates $_REQUEST with the __path__. (there's still no phlog at this point).
- At some point after that, in AphrontApplicationConfiguration::runHTTPRequest() (line 179), $_REQUEST doesn't have __path__ value.
If I take the special case from verifyRewriteRules() and dump it at the end of rebuildRequest(), everything is happy at (3) and the request continues.
In D20903, @Firehed describes a different solution, to set _$GET at the end of verifyRewriteRules(), and he claims that fixed this for him, but that was a while ago.
Also when reports of this showed up, I still had php 5.5, and appears that it worked for me then with that config.