Nextcloud version: 25.0.4
Operating system and version: Ubuntu 22.04.2
Apache version: 2.4.52-1
PHP version: 8.1
The issue you are facing: I have installed PHP 8.1 and disabled PHP 7.4 by doing
a2dismod php7.4
a2enmod php8.1
Nextcloud still complains about the old PHP version used.
When I look at the processes, I see, that two php-fpm are running:
root 98103 1 0 13:16 ? 00:00:00 php-fpm: master process (/etc/php/8.1/fpm/php-fpm.conf)
root 102166 1 0 14:11 ? 00:00:00 php-fpm: master process (/etc/php/7.4/fpm/php-fpm.conf)
If I terminate the second one (7.4), Nextcloud is no longer accessible.
Is there any reference to check? I want to get rid of PHP 7.4
Is PHP8.1-FPM installed and is the service running?
Maybe more PHP8.1 packages are missing?
How exactly did you install and configure PHP the first time you installed Nextcloud? Did you use a specific tutorial and / or did you document your steps. Basically you should be able to install and configure PHP8.1 by taking the same steps, and just replacing the version number in your commandsβ¦
Unfortunately, I canβt think of anything specific from the top of my head. If you have access to one of the other servers, you can try to systematically compare all the relevant packages and configs. There has to be a difference somewhereβ¦
Now you can go manually through all alternatives and look if are set to the new (8.1) versions: (phar, phar.phar, php, php-config, phpdbg, php-fpm.sock, phpize):
php8.1-apcu is already the newest version (5.1.22+4.0.11-2+ubuntu22.04.1+deb.sury.org+1).
php8.1-bcmath is already the newest version (8.1.16+repack-1+ubuntu22.04.1+deb.sury.org+1).
php8.1-bz2 is already the newest version (8.1.16+repack-1+ubuntu22.04.1+deb.sury.org+1).
php8.1-cli is already the newest version (8.1.16+repack-1+ubuntu22.04.1+deb.sury.org+1).
php8.1-common is already the newest version (8.1.16+repack-1+ubuntu22.04.1+deb.sury.org+1).
php8.1-curl is already the newest version (8.1.16+repack-1+ubuntu22.04.1+deb.sury.org+1).
php8.1-dev is already the newest version (8.1.16+repack-1+ubuntu22.04.1+deb.sury.org+1).
php8.1-fpm is already the newest version (8.1.16+repack-1+ubuntu22.04.1+deb.sury.org+1).
php8.1-gd is already the newest version (8.1.16+repack-1+ubuntu22.04.1+deb.sury.org+1).
php8.1-gmp is already the newest version (8.1.16+repack-1+ubuntu22.04.1+deb.sury.org+1).
php8.1-igbinary is already the newest version (3.2.13-1+ubuntu22.04.1+deb.sury.org+1).
php8.1-imagick is already the newest version (3.7.0-3+ubuntu22.04.1+deb.sury.org+1).
php8.1-intl is already the newest version (8.1.16+repack-1+ubuntu22.04.1+deb.sury.org+1).
php8.1-mbstring is already the newest version (8.1.16+repack-1+ubuntu22.04.1+deb.sury.org+1).
php8.1-mysql is already the newest version (8.1.16+repack-1+ubuntu22.04.1+deb.sury.org+1).
php8.1-opcache is already the newest version (8.1.16+repack-1+ubuntu22.04.1+deb.sury.org+1).
php8.1-phpdbg is already the newest version (8.1.16+repack-1+ubuntu22.04.1+deb.sury.org+1).
php8.1-readline is already the newest version (8.1.16+repack-1+ubuntu22.04.1+deb.sury.org+1).
php8.1-redis is already the newest version (5.3.7+4.3.0-2+ubuntu22.04.1+deb.sury.org+1).
php8.1-xml is already the newest version (8.1.16+repack-1+ubuntu22.04.1+deb.sury.org+1).
php8.1-zip is already the newest version (8.1.16+repack-1+ubuntu22.04.1+deb.sury.org+1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Mar 15 15:47:35 nc-server1 systemd[1]: Starting The PHP 8.1 FastCGI Process Managerβ¦
Mar 15 15:47:35 nc-server1 systemd[1]: Started The PHP 8.1 FastCGI Process Manager.