I installed FreePBX 17 on Debian (version 13 - yeah I know, supported is the 12 but did a correct workaround with signatures and downgraded php to 8.2). The issue is: when the install script asked for a path to install, instead of the standard directory: /var/www/html I typed /var/www/html/pbx. Basically I wanted to kind of hide it from automated exploits.
Afterwards, I was unable to log in to the admin web dashboard, popup with user/password would appear but the “Continue” button would do nothing. I spent numerous hours confirming apache, php and FreePBX settings, rights and what not only to confirm everything is OK - modrewrite, other settings, chown etc. fwconsole setting AMPWEBROOT → showed correct directory of /var/www/html**/pbx**. Only thing that worked, was fwconsole unlock - unlocking the php session. One more thing worked - accessing the console from the localhost terminal links browser. Using the browser’s developer console, I confirmed no actual request was being sent, so that’s why no error logs or any other traces available on the server side.
Out of desperation I copied the admin/pbx subdirectory contents to /admin, then changed AMPWEBROOT to /var/www/html (default). All of sudden everything works.
However, I can’t delete the pbx subdirectory, still it seems to be referenced somewhere and it won’t work without it, so I’m left with two instances of the same files now.
My question is, was installing in a different sub directory tested? What is the correct procedure of moving it, is just AMPWEBROOT change and regeneration of singnatures (fwconsole ma refreshsignatures) enough? Or should I run the installation script again?
I appreciate any help.