Bug 252806 (Infinite, loop, redirect)

Summary: www/nextcloud Infinite loop redirect on fresh install LAMP + Nextcloud 20.0.5
Product: Ports & Packages Reporter: Michal Vrba <michal.vrba>
Component: Individual Port(s)Assignee: Bernard Spil <brnrd>
Status: Closed Not Enough Information    
Severity: Affects Only Me Flags: bugzilla: maintainer-feedback? (brnrd)
Priority: ---    
Version: Latest   
Hardware: amd64   
OS: Any   

Description Michal Vrba 2021-01-18 15:03:42 UTC
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.
Comment 1 Michal Vrba 2021-02-03 19:18:20 UTC
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.