Update Nextcloud-Server (PHP und Ubuntu) PHP-Update - hier: von Version 8.1 auf 8.2 ## check PHP Modules ## dpkg -l | grep php | tee packages.txt ## add repository ## apt install software-properties-common add-apt-repository ppa:ondrej/php apt-get update ## install PHP 8.2 ## apt install php8.2-common php8.2-cli ## install modules ## apt install php8.2 libapache2-mod-php8.2 php8.2-zip php-dompdf php8.2-xml php8.2-mbstring php8.2-gd php8.2-curl php8.2-imagick libmagickcore-6.q16-6-extra php8.2-intl php8.2-bcmath php8.2-gmp php8.2-cli php8.2-mysql php8.2-zip php8.2-gd  php8.2-mbstring php8.2-curl php8.2-xml php-pear unzip nano php8.2-apcu redis-server ufw php8.2-redis ## apache switch versions ## a2dismod php8.1 a2enmod php8.2 ## check installation ## php -v php -m ## adjust php.ini ## nano /etc/php/8.0/apache2/php.ini memory_limit = 4048M upload_max_filesize = 25G post_max_size = 25G date.timezone = Europe/Berlin output_buffering = Off opcache.enable=1 opcache.enable_cli=1 opcache.interned_strings_buffer=8 opcache.max_accelerated_files=10000 opcache.memory_consumption=128 opcache.save_comments=1 opcache.revalidate_freq=1 apc.enable_cli = 1 ## uninstall old version ## apt purge '^php8.1.*' Ubuntu-Update - hier: von Version 20.04.3 auf 22.04.2 ## view current version ## lsb_release -a ## install new version ##    apt update  apt upgrade apt dist-upgrade apt autoremove apt install update-manager-core do-release-upgrade Update von 8.0 auf 8.1 = ohne Probleme Update von 8.1 auf 8.2 = Nextcloud war zunächst nicht kompatibel. Update von NC 25 auf NC 26 = Probleme mit maintenance mode gelöst durch: nano /etc/php/8.2/mods-available/apcu.ini extension=apcu.so apc.enable_cli=1 nano /etc/php/8.2/apache2/php.ini apc.enable_cli = 1