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
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.