FASTPANEL - как обновиться с Ubuntu 20.04 до Ubuntu 22.04
Материал из Wiki - Iphoster - the best ever hosting and support. 2005 - 2024
FASTPANEL - как обновиться с Ubuntu 20.04 до Ubuntu 22.04
Прямое обновление с Ubuntu 20.04 до 22.04: # apt update && apt upgrade -y # apt install update-manager-core # reboot
Меняем репозитории на noble и запускаем обновление до 22.04:
# sed -i "s/focal/jammy/g" /etc/apt/sources.list # apt update && apt upgrade -y # apt dist-upgrade # reboot
Проверяем что отвалилось:
# systemctl --failed UNIT LOAD ACTIVE SUB DESCRIPTION ● apache2.service loaded failed failed The Apache HTTP Server ● proftpd.service loaded failed failed ProFTPD FTP Server
Решение проблемы с proftpd:
# sed -e 's/^IdentLookups/#IdentLookups/' -i /etc/proftpd/proftpd.conf # systemctl restart proftpd.service
Решение проблемы с apache2:
# a2dismod php7.4 # apt install -f php php-fpm libapache2-mod-php libapache2-mod-php8.1 php-common php8.1-cgi php8.1-cli php8.1-common php8.1-curl php8.1-gd php8.1-mbstring php8.1-mysql php8.1-opcache php8.1-readline php8.1-xml php8.1-xmlrpc php-imagick php-memcached php8.1-intl # phpenmod calendar ctype curl dom exif fileinfo ftp gd gettext iconv mbstring mysqli mysqlnd pdo pdo_mysql phar posix readline shmop simplexml sockets sysvmsg sysvsem sysvshm tokenizer xml xmlreader xmlrpc xmlwriter xsl opcache imagick memcached intl # mv /opt/php81/etc/php-fpm.d/* /etc/php/8.1/fpm/pool.d/ # rm /etc/php/7.4/fpm/pool.d/www.conf # mv /etc/php/7.4/fpm/pool.d/* /opt/php74/etc/php-fpm.d/ # apt purge php7.4* # a2enmod php8.1 # sqlite3 /usr/local/fastpanel2/app/db/fastpanel2.db "update site set php_version = 81 where mode = 'mpm_itk';" # mogwai services configure -f # reboot
Обновление завершено успешно:
# systemctl --failed UNIT LOAD ACTIVE SUB DESCRIPTION 0 loaded units listed.
Поменять репозиторий для FastPanel/MySQL/docker на jammy:
# sed -i "s/focal/jammy/g" /etc/apt/sources.list.d/* # cp -r /etc/apt/trusted.gpg /etc/apt/trusted.gpg.d # apt update # apt upgrade -y