I have a server with some webs, so I do not want to have FreePBX installed in /var/www/html. I tried it first with a subdirectory in /var/www, e.g. /var/www/freepbx. This works in principle, but FreePBX sets the permissions (asterisk: asterisk) from /var/www downwards and not just from /var/www/freepbx, so all my webs have the wrong permissions. Furthermore, files or directories like .npm .pm2 etc. are created in /var/www instead in /var/www/freepbx.
So I tried to install FreePBX in a completely different place: /var/htdocs/freepbx. But that also results in the same problem. Although after installation under /var/htdocs/freepbx the subfolder admin contains all necessary subfolders and files, the permissions are not changed under /var/htdocs/freepbx, but under /var/www and the above mentioned files and folders still generated there.
I can not do more than give the path for the web in the installation routine. I assume the code will probably fix refer to /var/www.
How can I solve that?