Solved nginx ownCloud redirect loop problem

Unfortunately, there’s currently a bug, which results in the /var/lib/php/session/ directory not being created when you install only nginx and the PHP FastCGI Process Manager.

This will create a redirection loop when you try to log into your owncloud web UI. You can install php or create the directory manually:

mkdir -p /var/lib/php/session
chown nginx.nginx /var/lib/php/session


Read also:

* Instaling ownCloud with nginx and php-fpm