Upgrade to PHP 8.1 issue on nextcloud 25

, ,

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.

Any ideas?
Thanks
Kirk

Which installation is this? The config looks like the Nextcoloud VM

yes it is a vmware vm with ubuntu

You can get support upgrading PHP with this, just to make sure it’s done the proper way:

Internal server errors, it is good to check the log files. For php updates, usually some php modules are missing and need to be installed.

If you remove this, you probably need to add something similar for php8.1.

You are not the first one here to update php, so you probably will find some similar topics here once you look with your detailed error.

I know it’s been a few months, but I’m curious about if/how you solved the issue. Was it an extension?