From b9c982fbccda349081cba9ba198b2a9c170aa40b Mon Sep 17 00:00:00 2001 From: luvarqpp <48614551+luvarqpp@users.noreply.github.com> Date: Sat, 16 Mar 2019 08:19:48 +0100 Subject: [PATCH] Add another common problem After following two different tutorials on Internet, I have encountered login loop after fresh install. It had taken me some time to fix this problem, so I am proposing this troubleshooting part here. --- admin_manual/installation/nginx.rst | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/admin_manual/installation/nginx.rst b/admin_manual/installation/nginx.rst index f66b40133..d1295e6fa 100644 --- a/admin_manual/installation/nginx.rst +++ b/admin_manual/installation/nginx.rst @@ -381,3 +381,22 @@ or CSS (.css) files via gzip could also cause such issues. Another cause of this issue could be not properly including mimetypes in the http block, as shown `here. `_ + +Login loop without any clue in access.log, error.log, nor nextcloud.log +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +If you after fresh installation (Centos 7 with nginx) have problem with first login, you should as first check these files: + +.. code-block:: bash + + tail /var/www/nextcloud/data/nextcloud.log + tail /var/log/nginx/access.log + tail /var/log/nginx/error.log + +If you just see some correct requests in access log, but no login happens, you check access rights for php session and wsdlcache directory. Try to check permissions and execute change if needed: + +.. code-block:: bash + + chown nginx:nginx /var/lib/php/session/ + chown root:nginx /var/lib/php/wsdlcache/ + chown root:nginx /var/lib/php/opcache/