I’m running on a simple machine without any virtualization two Nextcloud instances.
(One for personal use, and one for a small assembly where I’m involved.)
Both instances run by now 26.0.1. They get both accessed via NGINX, and they share the same MariaDB-Server. So far so good. Lateley I upgraded both instances (to 26.0.1) and got some new PHP (7 → 8).
Now, when i’m using the same PHP interpreter (and fpm service) for both instances, i get the following error for one of the instances:
2023/05/25 14:54:03 [error] 3932691#3932691: *10093477 FastCGI sent in stderr: “PHP message: PHP Fatal error: Cannot declare class ComposerAutoloaderInit749edc17b96de01b94b93500429fcbbc, because the name is already in use in /path/to/the/other/nextcloud/apps/maps/vendor/composer/autoload_real.php on line 5” while reading response header from upstream, client: 192.168.0.1, server: cloud.rhizomatic.at, request: “GET / HTTP/2.0”, upstream: “fastcgi://unix:/var/run/php/php8.1-fpm.sock:”, host: “cloud.domain.bla”
My hack is right now, that I use php8.1 for the one, and php8.2 for the second instance. Then both are working.
But this doesn’t seem like the right long term solution
Is this a bug, or are there any config parameters to make a shared-hosting possible again?
The setup worked well before, when I used php7.3 and older nextcloud versions.