Hmmm,
There are 3 choices for the alternative php (providing /usr/bin/php).
Selection Path Priority Status
0 /usr/bin/php8.2 82 auto mode
1 /usr/bin/php7.3 73 manual mode
- 2 /usr/bin/php8.0 80 manual mode
3 /usr/bin/php8.2 82 manual mode
php -v
PHP 8.0.26 (cli) (built: Dec 3 2022 19:20:51) ( NTS )
Next, I did:
sudo apt install libapache2-mod-php8.0 php8.0-mbstring php8.0-cli php8.0-mysql php8.0-cgi php8.0-fpm php8.0-gd php8.0-imap php8.0-xml php8.0-intl -y
sudo systemctl restart apache2
and the system shows:
Prerequisites:
These items are necessary in order to run the latest version of osTicket.
PHP v8.0 or later - (7.3.33-8+ubuntu20.04.1+deb.sury.org+1)
MySQLi extension for PHP - (module loaded)
MySQL v5.0 or later - (10.3.37)
Should I remove other php versions?