This tutorial will take you through updating a server managed by ISPConfig from Ubuntu 22.04 (Jammy Jellyfish) to Ubuntu 24.04 (Noble Numbat). This guide works for both single- and multiserver setups. Just repeat the same steps on every server.

Be aware that the update process may cause some downtime.

Prerequisites

  • Make sure you’re logged in as root user

1. Updating the system from Ubuntu 22.04 to Ubuntu 24.04

Please go through the guide on updating Ubuntu itself: https://www.howtoforge.com/ubuntu-22-04-to-24-04-upgrade/

2. Install missing PHP packages

Ubuntu 24.04 ships with PHP 8.3 as default PHP version, so we have to install it (along with later needed curl):

apt -y install php8.3 php8.3-cli php8.3-cgi php8.3-fpm php8.3-gd php8.3-mysql php8.3-imap php8.3-curl php8.3-intl php8.3-pspell php8.3-sqlite3 php8.3-tidy php8.3-xsl php8.3-zip php8.3-mbstring php8.3-soap php8.3-opcache php8.3-common php8.3-readline php8.3-xml curl

Don’t forget to adjust the PHP config files if necessary.

4. Run a force update of ISPConfig

To reconfigure the services so they are correctly configured for Ubuntu 24.04, we need to run the ISPConfig update script and let it reconfigure services. Run the script from the command line with

ispconfig_update.sh --force

Go through the update steps. When asked whether you want to reconfigure services or not, hit enter. If you skip this step by answering “no”, ISPConfig won’t configure your services for Ubuntu 24.04 and some services might be broken.

5. Update paths to use PHP 8.3 as default PHP version

As PHP 8.3 is the default PHP version shipped with Ubuntu 24.04, we need to update the PHP paths in ISPConfig.

Log in to the panel as admin user and then go to System -> Server Config -> server1.example.com (the hostname of your server) -> Web -> PHP Settings

Replace the references to use PHP 8.3, so it looks like this:

Apache php.ini path: /etc/php/8.3/apache2/php.ini

CGI php.ini path: /etc/php/8.3/cgi/php.ini

PHP-FPM init script: php8.3-fpm

PHP-FPM php.ini path: /etc/php/8.3/fpm/php.ini

PHP-FPM pool directory: /etc/php/8.3/fpm/pool.d

PHP-FPM socket directory: /var/lib/php8.3-fpm

Be aware that all websites on this server that use the PHP version “Default” will now use PHP 8.3 instead of the old version. If you want to use a different PHP version for some websites, install it as an additional version by following https://www.howtoforge.com/ispconfig-php-ubuntu/.

We also have to let the system use PHP 8.3 as the default PHP handler for non-ISPConfig actions. To do this, run:

update-alternatives --config php

If you need to select a PHP version, select PHP 8.3. Then, run

update-alternatives --config php-cgi

If you need to select a PHP version, select PHP 8.3 as well. Lastly, run

update-alternatives --config php-fpm.sock

If you need to select a PHP version, select PHP 8.3 again.

For servers with Apache2 installed, we have to disable PHP-FPM 7.4 as the default PHP handler and enable PHP-FPM 8.3 by running these commands:

a2disconf php8.1-fpm

a2enconf php8.3-fpm

systemctl restart apache2

6. Update phpMyAdmin (optional)

If you have phpMyAdmin installed, we recommend updating your install as many users have an outdated version installed.

Run this command to run our phpMyAdmin update script:

curl https://git.ispconfig.org/ispconfig/tools/-/raw/master/auto_update_phpmyadmin.sh -sL | bash

You can keep phpMyAdmin updated automatically from now on by using this same script. See this forum post for more information: https://www.howtoforge.com/community/threads/keep-your-phpmyadmin-installation-up-to-date-automatically.88495/

We’re done! If you have any problems, open a thread on the forum.