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).
- Apache:
sudo a2dismod php* sudo a2enmod php8.2 sudo systemctl restart apache2
- Command line interface:
sudo update-alternatives --set php /usr/bin/php8.2 sudo update-alternatives --set phar /usr/bin/phar8.2 sudo update-alternatives --set phar.phar /usr/bin/phar.phar8.2 sudo update-alternatives --set phpize /usr/bin/phpize8.2 sudo update-alternatives --set php-config /usr/bin/php-config8.2
No Comments