Nextcloud PHP configuration

Bei Problemen mit PHP kann es sein, dass man auf eine andere Version umstellen muss. 


run php -v
es wird die aktuelle Version von PHP angezeigt. 

run
sudo update-alternatives --config php

hier kann man die Version auswählen, die installiert sind 

run php -v nochmal und schau ob die neue Version übernommen ist. 

cron.php sollte danach wieder funktionieren. 

Switch to PHP 8.2

Genau so kann zu PHP8.1 oder anderen Versionen gewechselt werden. Dazu die entsprechende Version angeben. 

Before switching to PHP 8.2, you have to deactivate the previously activated Apache module. The following commands will deactivate the already activated Apache module and then activate PHP 8.2 Apache module. Then the next commands will set PHP 8.2 as the default version for the command line interface (CLI).


Revision #1
Created 21 March 2023 10:15:11 by Hermann
Updated 21 March 2023 10:15:29 by Hermann