# NextCloud Endless Redirect on login

**URL:** <https://help.nextcloud.com/t/nextcloud-endless-redirect-on-login/15104>\
**Category:** ℹ️ Support\
**Created:** [July 8, 2017, 8:34pm UTC](https://help.nextcloud.com/t/nextcloud-endless-redirect-on-login/15104 "2017-07-08T20:34:05Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![jonw](https://help.nextcloud.com/letter_avatar/jonw/32/6_22734026db12803ebb3e059622ac3534.png) [@jonw](https://help.nextcloud.com/u/jonw)\
**Post date:** [July 10, 2017, 7:10pm UTC](https://help.nextcloud.com/t/nextcloud-endless-redirect-on-login/15104/2 "2017-07-10T19:10:05Z")

</div>

Hi Adam,

I had the same problem. Also running with CentOS 7, nginx, but php 5.6. (Does php-fpm have a separate version from php?) The odd thing was that everything was working fine five days ago. There was a big system update 7/7 which among other things included php 5.6.30 to 5.6.31 IIRC. My guess is that this screwed something up, but rolling back the update did not fix it.

So I was hoping someone would have answered because I was in the me-too camp. Anyway, eventually I read how to configure logging in config/config.php and an error in this log indicated there was a problem with the php session data:

> Failed to write session data (files). Please verify that the current setting of session.save\_path is correct

An easy fix for this was to “chmod -R 777 /var/lib/php/session”. Mind you, there are probably reasons why this is not the BEST fix. But maybe it will help you get a little further.

A few other points:

- there were some php updates today and maybe this contributed to it working.
- I thought nextcloud does not work with php 7 (or am i conflating php with php-fpm?)
- the occ command has an integrity check which may highlight some problems.
- if you don’t get any further, try adding logfile in the config.php.

I wish I knew how something can just break like this. I am not blaming anyone, I am just curious.

I hope this was helpful. Please write back if you figure out anything.

---

_[View the full topic](https://help.nextcloud.com/t/nextcloud-endless-redirect-on-login/15104)._
