I have Nextcloud 25 installed and have installed PHP 8.1
nextcloud still shows it is using 7.4
I have tracked that down to this code in
/etc/apache2/sites-available/site.com.conf
<FilesMatch “.php$”>
SetHandler “proxy:unix:/run/php/php7.4-fpm.nextcloud.sock|fcgi://localhost”
If I remove the above code then I can test the site PHP and it shows it is using 8.1.16 and with the code it shows 7.4.6
when the code is removed the nextcloud site does not work, I get
Internal Server Error
The server encountered an internal error and was unable to complete your request.
Please contact the server administrator if this error reappears multiple times, please include the technical details below in your report.
More details can be found in the server log.
some php-moduled had to be installed. which where missing was told me bei the occ upgrade command (in its errormessages, that inevitably come) specificially, I had to add php8.1-redis and php8.1-raphf
change php socket information in the webserver config. I’m using nginx and I did the following: server unix:/run/php/php7.4-fpm.sock;
changed to server unix:/run/php/php8.1-fpm.sock;
restart the webserver and I still encounter errors when trying to load nextcloud in browser. narf.
restarted redis-server.service and everything started working again like a charm.