Upgrade php 8.3

Hi,

today I upgrade my server Ubuntu 20.04 to 22.04 (there is Hestiacp 1.9.3 installed) following hestiacp OS upgrades, now all work fine.
My problems is php and Mariadb, my installation has php 8.0.30 and Mariadb 10.6.22, there is way (guide) upgrade to php 8.3 and Mariadb 11?
I hope little help
Best regards

G.

Hi @delfo2000

You should be able to install several PHP versions.

v-add-web-php 8.3

Regarding MariaDB, you should have this repo /etc/apt/sources.list.d/mariadb.list and for Ubuntu 22.04 (jammy) and MariaDB 11.4, the content should be like this:

deb [arch=amd64] https://dlm.mariadb.com/repo/mariadb-server/11.4/repo/ubuntu jammy main

Hi,

no, v-add-web-php 8.3 give me error, Mariabd are comment out( hestiacp guide OS upgrades)

Which one? Are you executing it as root?

Sorry, I don’t understand what you mean.

yes I’m root when run v-add-web-php 8.3

Mariadb in /etc/apt/sources.list.d/mariadb.list is comment out because in hestiacp documentation before upgrade to 22.04 there is tip comment out line in /etc/apt/sources.list.d/mariadb.list

#deb [arch=amd64 signed-by=/usr/share/keyrings/mariadb-keyring.gpg] https://dlm.mariadb.com/repo/mariadb-server/10.6/repo/ubuntu focal main

And what error do you get?

Now you have upgraded to jammy, so uncomment the line and replace focal with jammy (I would use the same version 10.6) and if all is ok after the upgrade, I would modify the repo to use version 11.4

ok, your steps work for Mariadb , but php give me error:

root@dns1:~# v-add-web-php 8.3
Installing PHP-8.3, please wait… /
ERROR: Installation failed, please run the following command manually for debugging:
apt-get install php8.3-common php8.3-mbstring php8.3-bcmath php8.3-cli php8.3-curl
php8.3-fpm php8.3-gd php8.3-intl php8.3-mysql
php8.3-soap php8.3-xml php8.3-zip php8.3-bz2
php8.3-pspell php8.3-imagick php8.3-imap php8.3-ldap php8.3-apcu
cp: cannot create regular file ‘/etc/php/8.3/fpm/pool.d/’: No such file or directory
sed: can’t read /etc/php/8.3/fpm/pool.d/dummy.conf: No such file or directory
cp: cannot create regular file ‘/etc/php/8.3/fpm/’: No such file or directory
sed: can’t read /etc/php/8.3/fpm/php-fpm.conf: No such file or directory
sed: can’t read /etc/php/8.3/fpm/php.ini: No such file or directory
sed: can’t read /etc/php/8.3/fpm/php.ini: No such file or directory
sed: can’t read /etc/php/8.3/fpm/php.ini: No such file or directory
sed: can’t read /etc/php/8.3/fpm/php.ini: No such file or directory
sed: can’t read /etc/php/8.3/fpm/php.ini: No such file or directory
sed: can’t read /etc/php/8.3/cli/php.ini: No such file or directory
sed: can’t read /etc/php/8.3/fpm/php.ini: No such file or directory
sed: can’t read /etc/php/8.3/fpm/php.ini: No such file or directory
sed: can’t read /etc/php/8.3/fpm/php.ini: No such file or directory

Ok, show the entire output of these commands:

apt update
apt install php8.3-common php8.3-mbstring php8.3-bcmath php8.3-cli php8.3-curl php8.3-fpm php8.3-gd php8.3-intl php8.3-mysql php8.3-soap php8.3-xml php8.3-zip php8.3-bz2 php8.3-pspell php8.3-imagick php8.3-imap php8.3-ldap php8.3-apcu

root@dns1:~# apt install php8.3-common php8.3-mbstring php8.3-bcmath php8.3-cli php8.3-curl php8.3-fpm php8.3-gd php8.3-intl php8.3-mysql php8.3-soap php8.3-xml php8.3-zip php8.3-bz2 php8.3-pspell php8.3-imagick php8.3-imap php8.3-ldap php8.3-apcu
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
E: Unable to locate package php8.3-common
E: Couldn’t find any package by glob ‘php8.3-common’
E: Unable to locate package php8.3-mbstring
E: Couldn’t find any package by glob ‘php8.3-mbstring’
E: Unable to locate package php8.3-bcmath
E: Couldn’t find any package by glob ‘php8.3-bcmath’
E: Unable to locate package php8.3-cli
E: Couldn’t find any package by glob ‘php8.3-cli’
E: Unable to locate package php8.3-curl
E: Couldn’t find any package by glob ‘php8.3-curl’
E: Unable to locate package php8.3-fpm
E: Couldn’t find any package by glob ‘php8.3-fpm’
E: Unable to locate package php8.3-gd
E: Couldn’t find any package by glob ‘php8.3-gd’
E: Unable to locate package php8.3-intl
E: Couldn’t find any package by glob ‘php8.3-intl’
E: Unable to locate package php8.3-mysql
E: Couldn’t find any package by glob ‘php8.3-mysql’
E: Unable to locate package php8.3-soap
E: Couldn’t find any package by glob ‘php8.3-soap’
E: Unable to locate package php8.3-xml
E: Couldn’t find any package by glob ‘php8.3-xml’
E: Unable to locate package php8.3-zip
E: Couldn’t find any package by glob ‘php8.3-zip’
E: Unable to locate package php8.3-bz2
E: Couldn’t find any package by glob ‘php8.3-bz2’
E: Unable to locate package php8.3-pspell
E: Couldn’t find any package by glob ‘php8.3-pspell’
E: Unable to locate package php8.3-imagick
E: Couldn’t find any package by glob ‘php8.3-imagick’
E: Unable to locate package php8.3-imap
E: Couldn’t find any package by glob ‘php8.3-imap’
E: Unable to locate package php8.3-ldap
E: Couldn’t find any package by glob ‘php8.3-ldap’
E: Unable to locate package php8.3-apcu
E: Couldn’t find any package by glob ‘php8.3-apcu’

root@dns1:~# php --version
PHP 8.0.30 (cli) (built: Mar 13 2025 18:33:55) ( NTS )
Copyright (c) The PHP Group
Zend Engine v4.0.30, Copyright (c) Zend Technologies
with Zend OPcache v8.0.30, Copyright (c), by Zend Technologies

I’m not sure, but this step works.

add-apt-repository ppa:ondrej/php (because ubuntu 22.04 has not 8.3 default)

v-add-web-php 8.3

root@dns1:~# update-alternatives --list php
/usr/bin/php8.0
/usr/bin/php8.3