I had a Nextcloud instance up and running great… since I updated from PHP 7.1.15 to PHP 7.1.16 on my FreeBSD system this afternoon.
Since that update, when I use valid credentials, I get a “Too many redirect” error in my WebServer (apache).
In the data/nextcloud.log, nothing happens.
In the apache logfile, multiple lines repeated only 10 times : 86.247.XX.XX - - [17/Apr/2018:15:52:58 +0200] "GET /index.php/apps/files/ HTTP/1.1" 302 -
I tried to tweak the VirtualHost, and even disabled them to access Nextcloud directly, but the same error triggers…
So it seems to me that PHP 7.1.16 could raise a bug somewhere, but I don’t know how to trace the events to find the bug precisely.
Other informations : I installed OwnCloud in the same environment.
Switched the VirtualHost paths to owncloud instead of nextcloud directory.
Same configuration files, except database informations (built a new one for owncloud).
It’s working…
Seems to be a NextCloud issue with PHP, but logs aren’t very helpful.
And last edit, to close the request for assistance.
Everyone should pay attention to post-install messages.
/!\ NEXTCLOUD 13.0.1 UPDATE /!
The nextcloud 13.0.1 package changes the location of the bundled apps.
After updating to 13.0.1 you MUST adapt your configuration. You MUST
add an additional entry to the “apps-paths” array in config/config.php
1 =>
array (
‘path’ => ‘/usr/local/www/nextcloud/apps-pkg’,
‘url’ => ‘/apps-pkg’,
‘writable’ => false,
),
For the default installation, the fix can be applied with:
cd /usr/local/www/nextcloud
su -m www -c “php ./occ config:import < /usr/local/share/nextcloud/fix-apps_paths.json”
It can save you several hours of digging/tweaking/messing around…
Could you please let me know, where your quoted text is coming from? I can’t find it in the admin guide.
And I’m not sure if I fully understand how exactly I have to change the config.php.