1

Topic: Upgrade PHP from 7.2.24

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.6.1
- Deployed with iRedMail Easy or the downloadable installer? Downloadable installer
- Linux/BSD distribution name and version: Ubuntu 18.04.17
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): PGSQL
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? YES
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

Good day,

At this time I am running PHP 7.2.24 on my Ubuntu 18.04 server and cannot upgrade Roundcubemail to v1.6.1 because I need to run PHP 7.3 or higher. Is there a preferred version to which I should upgrade? Is there a preferred method?

Thanks

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Upgrade PHP from 7.2.24

I should have worded things a little better. My apologies.

I'm running iRedMail v1.6.1 and am working on upgrading the system to v1.6.3. One of the upgrades involved is upgrading from RoundCubeMail v1.5.3 to v1.6.1. This is when I get the error that my PHP is not at the correct version.

I found some instructions on upgrading my PHP from the 7.2 version I use now to 7.4 at https://community.librenms.org/t/upgrad … lts/13869. The steps I think I need are:

Add php7.4 libraries
sudo apt update
sudo apt -y install software-properties-common
sudo add-apt-repository ppa:ondrej/php
sudo add-apt-repository ppa:ondrej/apache2
sudo apt update

Remove php7.2
apt purge libapache2-mod-php7.2 php7.2-cli php7.2-curl php7.2-gd php7.2-json php7.2-mbstring php7.2-mysql php7.2-snmp php7.2-xml php7.2-zip

Install php7.4
apt install composer php7.4 php7.4-cli php7.4-curl php7.4-fpm php7.4-gd php7.4-json php7.4-mbstring php7.4-mysql php7.4-snmp php7.4-xml php7.4-zip

Change Timezone
vi /etc/php/7.4/fpm/php.ini
vi /etc/php/7.4/cli/php.ini

Configure PHP-FPM
cp /etc/php/7.4/fpm/pool.d/www.conf /etc/php/7.4/fpm/pool.d/librenms.conf
vi /etc/php/7.4/fpm/pool.d/librenms.conf
[www] to [librenms]
user = librenms
group = librenms
listen = /run/php-fpm-librenms.sock

Will this work or is there another, better way? Should I stop at PHP 7.4 or go to a v8 version?

Thanks for any advice!

3

Re: Upgrade PHP from 7.2.24

I suggest stick to PHP 7.2 and upgrade to Roundcube 1.5.3. Or, upgrade OS to ubunu 20.04 (or even 22.04) then upgrade Roundcube to latest.