Fresh install LAMP from ports
- FreeBSD 12.2
- Apache 24
- Mariadb 10.3 or 10.4 or 10.5
- PHP 7.3 or 7.4 (with required extensions)
- Nextcloud 20.0.5
After initial setup the browser result in infinite loop redirect. No login page is shown.
Similar to bug #236693
There are errors in nextcloud.log: "Could not detect any host in http:///data/htaccesstest.txt"
Then any access of nextcloud result in infinite loop.
In config/config.php there is missing the whole setup of array 'apps-path'.
I added apps-path setup and the browser after login page result in showing "Internal error ..."
Errors in nextcloud.log: "Doctrine\\DBAL\\EXCEPTION\\TableNotFoundException"
The login page of nextcloud is not accessible anymore.
Finaly I made this workaround, after many attempts:
Same installation of LAMP, but with PHP 7.2. It works without problem.
Than it is possible to upgrade PHP to 7.4 and it also works.
I didn´t found why it made loop redirects.