Issue would appear to be with the Gentoo package. Therefore you need to seek help from the package maintainer, Anthony Basile - https://packages.gentoo.org/packages/www-apps/moodle
This is not a generic Moodle issue as Moodle is regularly installed on many operating systems using the package downloaded from Moodle.org as suggested by Howard above (I currently have Moodle 3.2.2 on a Mint laptop - localhost, a CentOS
virtual machine and multiple Ubuntu web servers, all using the standard
MOODLE provided download, it works perfectly every time). The issue would therefore appear to be with the way it has been packaged specifically for Gentoo and you therefore need to seek support from whoever has done that as it is not, as far as I can tell, a package directly supported by MoodleHQ and can only be supported by community users who may have installed it through the Gentoo package - which is NOT recommended by Moodle or anyone in the community.
I have also just installed it as a test on a Gentoo virtual machine, using the standard MOODLE download and instructions, not the Gentoo package, and again, it works fine. This, to me anyway, confirms my suspicion that the issue is with the Gentoo package or your way of working with that package, not with Moodle itself.
You also state that your MoodleData folder is in /home/user (an uncommon practice in Linux powered webservers in my experience, except where it is on shared hosting and controlled by the hosting company) and yet the script that is part of the package has this line
local MOODLEDATA="${MY_HOSTROOTDIR}"/moodle
So unless your webroot is your home directory - again, uncommon unless on shared hosting, controlled by .htaccess and certainly not anything I have ever seen recommended - then your moodledata location would appear to be in conflict with the script.
However, your comment to Howard that the package manager downloads, unzips, compiles, and installs is incorrect in this instance (though it might be for other packages). Moodle is not provided in a form that requires compiling, it is provided as a compressed file that simply needs unpacking int he correct location. Additionally, this package runs various scripts that purport to carry out some of the configuration of Moodle outside the normal flow of a standard Moodle installation, tweaking configurations and file locations and permissions as part of the package script that would normally be done as part of an installation by either moodle itself, or by the administrator setting it up.. So, again, I would point you back to seeking support or reporting a bug with the GENTOO package maintainers as this would appear to be an issue with their package and associated scripts and not one that the Moodle community is able to rectify or provide answers for.
On top of that, you state in another thread that you have followed the steps from the https://wiki.gentoo.org/wiki/Moodle and yet that, as well as the code in the package refer directly to using Apache as the webhost, which you also say you are not doing. Either you have followed the wiki and instructions, or your haven't - if not and you are not using Apache as recommended in the Gentoo docs, then they probably wont be able to help you either.
So, from a collection of your posts, it appears you are not following Moodle standard installation instructions, but neither are you accurately following the Gentoo ones, yet you come across as being angry with and rude to the Moodle community for not being able to sort your problems out... hmmm.
Now I am not a Gentoo user, although I am a Linux user, and I have just found all that information in the last half hour looking at this issue for you, so your statement that you do not need to read any documentation is patently inaccurate. There is documentation, and code, there (both on Moodle.org and on the Gentoo package pages) to be looked at, which will direct you at the conclusion that the issue is around the Gentoo package provided by the GENTOO community, not the Moodle one.
Members of the community have done their best to provide support, but your unwillingness to look at any documentation or follow standard, recommended MOODLE installation instructions means we will struggle to provide further support.
Your options:
1. Follow the Moodle and community advice for installing based on a download (or git) from here and get whatever support we can give for that.
2. Continue with the Gentoo package (following their recommendations including using Apache) and seek support from the package maintainer, rather than from the Moodle community - this will probably involve posting some kind of bug report about the package which would appear to be faulty, but as it is provided independently by the Gentoo community not the Moodle one, that is impossible for me to confirm.
3. Go your own way, with a mixture of whatever webserver system you are using (you siad its not Apache, you didn't say what it was), Gentoo packages and whatever other combination of non-recommended methods you see fit and see if you can resolve the issue independently.
Richard Oelmann