Can't access the interface => proxy_fcgi error

Nextcloud version (eg, 20.0.5): 23
Operating system and version (eg, Ubuntu 20.04): Debian 11
Apache or nginx version (eg, Apache 2.4.25): 2.4.52
PHP version (eg, 7.4): 8.1

The issue you are facing:

Hello,

i’ve just (re)installed nextcloud and i can’t access the UI.

Here is my .conf file in apache sites-enabled folder :slight_smile:

Alias /nextcloud "/var/www/nextcloud/"

<Directory /var/www/nextcloud/>
  Require all granted
  AllowOverride All
  Options FollowSymLinks MultiViews

  <IfModule mod_dav.c>
    Dav off
  </IfModule>

  <IfModule mpm_itk_module>
    AssignUserID nextcloud nextcloud
  </IfModule>

</Directory>

when trying to access the interface and the login page, i’ve got this :

and in the apache error.log i’ve got this :

[Mon Mar 21 21:33:57.773446 2022] [proxy_fcgi:error] [pid 494032] [client 192.168.1.4:51484] AH01071: Got error 'PHP message: {"reqId":"Zuxa4OS1bpnvJGYozKXc","level":3,"time":"2022-03-21T20:33:57+00:00","remoteAddr":"192.168.1.4","user"
:"--","app":"PHP","method":"GET","url":"/nextcloud/","message":"Return type of OC\\\\Memcache\\\\Cache::offsetUnset($offset) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\\\\ReturnTypeWillChan
ge] attribute should be used to temporarily suppress the notice at /var/www/nextcloud/lib/private/Memcache/Cache.php#93","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Firefox/91.0","version":"23.0.2.1"}'

Is this the first time you’ve seen this error? (Y/N): Y

Thanks in advance for helping a noob :slight_smile:

looks like a right access to me… www-data www-data i think …

Not using mpm_itk but pretty sure is an uid/gid error

thanks for your answer.
For security concern i’d like to use mpm_itk. Is nextcloud not compatible with mpm_itk ?

it is, but your conf if wrong…

actually the point of using mpm_itk is to use another user than www-data.
mpm_itk allow to use the user that own the website folder.
if i would use www-data, i would’nt need mpm_itk

in that case, check rights for /var/www/nextcloud … you definitely have a uid/gid error…

ls -la for each nextcloud directories … and correct them if needed

thanks for your answer.
the entire folder and it’s content is owned by nextcloud:nextcloud.
Regarding the permission, i didnt change anything after the installation

ben la mon coco, je sais pas …

ouai je me casse les dents depuis 15 jours sur ce sujet. j’ai plusieurs application sur mon serveur et je ne veux pas qu’elles aient toutes le même user (a savoir www-data) pour des raisons de sécurité. Si tu as une autre méthode je suis preneur :slight_smile:

nop !! desolé