Moodle 5.1 (Build: 20251006) is already on GitHub. Noticed that it doesn't tell https://moodle.org/plugins its version (or https://moodle.org/plugins doesn't yet know 5.1). The /admin/tool/installaddon/ shows * under Version. And every retry adds a new line the table My sites.
Visvanath Ratnaweera
Visvanath Ratnaweera tarafından yapılan gönderiler
Noticed the double negation only now. It must have been in the air. 
Probably the line is
DocumentRoot /path/to/moodle/public <- notice the new /public
Purge caches on both sides and restart Apache.
See https://moodle.org/mod/forum/discuss.php?d=469996#p1886988
Note that this assumes your Moodle is on a FQDN http(s)://sub.example.com. It you want is on a path, http(s)://example.com/a/path it is more complicated.
See https://moodle.org/mod/forum/discuss.php?d=469996#p1886755
P.S. Moodle logged me out in between! Could save the text though.
DocumentRoot /path/to/moodle/public <- notice the new /public
Purge caches on both sides and restart Apache.
See https://moodle.org/mod/forum/discuss.php?d=469996#p1886988
Note that this assumes your Moodle is on a FQDN http(s)://sub.example.com. It you want is on a path, http(s)://example.com/a/path it is more complicated.
See https://moodle.org/mod/forum/discuss.php?d=469996#p1886755
P.S. Moodle logged me out in between! Could save the text though.
Installing Moodle 5.1 on a sub-directory, https://example.com/a/path/, could be your problem. Then the web server conf needs tweaking. See $CFG->wwwroot with /public or without?
Haven't tried myself, went straight to a sub-domain, i.e. https://sub-domain.example.com/.
Haven't tried myself, went straight to a sub-domain, i.e. https://sub-domain.example.com/.
P.S. I don't think the idea of Upgrading to 5.1? Read this first was not to collect every case of Moodle 5.1 failing to collect here. The Mod has the final word. 
P.P.S. I'm signing out of this discussion, these discussions rather. Now I saw how the Code restructure works, I'm getting assured at every roadblock that the temple is getting safer and safer. 
> hit another snafu on registering site. Any way to disable that?
The Skip link is tiny, four letters, and hidden at bottom left on the registration page.
The Skip link is tiny, four letters, and hidden at bottom left on the registration page.
If you missed that,
// Force result of checks used to determine whether a site is considered "public" or not (such as for site registration).
// $CFG->site_is_public = false;