Project

General

Profile

Adjust ownership and permissions » History » Version 2

Gareth Eaton, 10/03/2023 11:36 AM

1 1 Gareth Eaton
h1. Adjust ownership and permissions
2
3
To fix the "Login Page Redirect Loop" issue for your NextCloud website running on Apache with PHP 8, you need to adjust ownership and permissions for certain directories. Why it works:
4
5
Web Server Access: NextCloud is a web application that runs on a web server, such as Apache or Nginx. These web servers often run under a specific user and group (e.g., www-data for Apache on many Linux distributions). When the ownership of the NextCloud files and directories is not correctly set to match the web server's user and group, it can lead to access issues. By setting the ownership to match the web server user and group (e.g., www-data:www-data), you ensure that the web server can access and serve the NextCloud files properly.
6
7
Change Ownership for NextCloud Directory:
8
9
<pre>
10 2 Gareth Eaton
sudo chown www-data:www-data /var/www/html/nextcloud/ -R
11 1 Gareth Eaton
</pre>
12
13
Restart Apache:
14
15
<pre>
16
sudo systemctl restart apache2
17
</pre>