Bug 252806 (Infinite, loop, redirect) - www/nextcloud Infinite loop redirect on fresh install LAMP + Nextcloud 20.0.5
Summary: www/nextcloud Infinite loop redirect on fresh install LAMP + Nextcloud 20.0.5
Status: Closed Not Enough Information
Alias: Infinite, loop, redirect
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: Bernard Spil
Depends on:
Reported: 2021-01-18 15:03 UTC by Michal Vrba
Modified: 2021-02-03 19:19 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (brnrd)


Note You need to log in before you can comment on or make changes to this bug.
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.