Koozali.org formerly Contribs.org

Aggiornare Roundcube

Aggiornare Roundcube
« on: April 08, 2020, 11:17:57 AM »
Buongiorno a tutti.
Ho una macchina virtuale di test con SME 9.2 aggiornato ad oggi. Ho installato Roundcube seguendo le indicazioni dell'apposito articolo. Tutto funziona bene. C'è però il fatto che il contrib installa la versione 1.1.3 di Roundcube, mentre lo sviluppo del pacchetto è arrivato alla 1.4.3. Sto provando ad aggiornarlo, ma niente da fare.
Per l'aggiornamento ho seguito le indicazioni del contrib, che prevede il comando:

yum upgrade --enablerepo=smecontribs,remi-roundcube

ma ottengo una serie di errori relativi alla versione dei pacchetti, ad esempio:

Errore: Pacchetto: roundcubemail-1.4.3-1.el6.remi.noarch (remi-roundcube)
            Richiede: php-composer(endroid/qrcode) < 2
Errore: Pacchetto: roundcubemail-1.4.3-1.el6.remi.noarch (remi-roundcube)
            Richiede: php-composer(endroid/qrcode) >= 1.6.5
Errore: Pacchetto: php-pear-Net-LDAP2-2.2.0-1.el6.remi.noarch (remi-roundcube)
            Richiede: php-pear(PEAR) >= 1.10.1
            Installato: 1:php-pear-1.9.4-5.el6.noarch (@anaconda-base-2017042722 47.x86_64/9.2)
                php-pear(PEAR) = 1.9.4
Errore: Pacchetto: php-pear-Net-IDNA2-0.2.0-1.el6.remi.noarch (remi-roundcube)
            Richiede: php-pear(PEAR) >= 1.10.1
            Installato: 1:php-pear-1.9.4-5.el6.noarch (@anaconda-base-2017042722 47.x86_64/9.2)
                php-pear(PEAR) = 1.9.4
Errore: Pacchetto: roundcubemail-1.4.3-1.el6.remi.noarch (remi-roundcube)
            Richiede: php-pear(Net_SMTP) >= 1.8.1
            Installato: php-pear-Net-SMTP-1.6.1-1.el6.noarch (@anaconda-base-201 704272247.x86_64/9.2)

Ho installato il pacchetto smeserver-php-scl per modificare la versione php utilizzata dal sistema, impostandola prima alla 5.6 poi alla 7.3 ma ottengo sempre gli stessi errori.

Come posso fare?

Grazie in anticipo.

Offline ReetP

  • *
  • 2,872
Re: Aggiornare Roundcube
« Reply #1 on: April 08, 2020, 06:23:23 PM »
Read the errors - they tell you why...

Richiede: php-composer(endroid/qrcode) < 2
Richiede: php-composer(endroid/qrcode) >= 1.6.5

Not sure if you need php-comoposer + endroid/qcode or if you can install a package eg

Richiede: php-pear(PEAR) >= 1.10.1
(Installato: 1:php-pear-1.9.4-5.el6.noarch >>> version not high enough)

Richiede: php-pear(Net_SMTP) >= 1.8.1
(Installato: php-pear-Net-SMTP-1.6.1-1.el6.noarch >>> version not high enough)

So, the working versions are in contribs:


The latest version isn't in contribs so you are on your own here. You are using the remi-roundcube repo which we cannot be sure will work. It may well break your system.

Basically you have not got the right packages or versions to install this. They MAY be available but you will have to search to find them.

If you can get it to work then let us know and we can look a the Wiki.
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Re: Aggiornare Roundcube
« Reply #2 on: April 08, 2020, 06:44:33 PM »
Thank you very much for your answer.
Since it is an experimental vm, I'll try to upgrade those packages manually.

Offline mmccarn

  • *
  • 2,563
Re: Aggiornare Roundcube
« Reply #3 on: April 09, 2020, 04:15:42 PM »
I got the latest roundcube installed - at least to the point where I can login and see my email.

* SME 9.2
* PHP-SCL installed
* PHP-MOD (in server-manager) set to make the default server PHP v7.3

* Install Roundcube Contrib
(Note: I did not get this working, but thought the problem might be with the PHP versions, so I forged ahead...)
* Download and install the latest version

* the install wants ioncube
* the installer wants php newer than 5.3...
* we need to point the new version to the existing roundcube config
* the new version requires a valid ssl certificate if you use SSL for IMAP or SMTP
* Some of the default plugins were not in the plugins folder after the upgrade

Code: [Select]
# install roundcube as per contrib page
# note: there are errors during install - I think due to CLI php version=5.3
yum --enablerepo=smecontribs install smeserver-roundcube
signal-event roundcube-update

# install ioncube for php73     https://forums.contribs.org/index.php?topic=54013.0
yum --enablerepo=remi-safe install php73-php-ioncube-loader
signal-event php-update

# download installer
mkdir -p ~/addons/roundcube
cd ~/addons/roundcube
wget https://github.com/roundcube/roundcubemail/releases/download/1.4.3/roundcubemail-1.4.3-complete.tar.gz
tar zxvf roundcubemail-1.4.3-complete.tar.gz
cd roundcubemail-1.4.3

# link the existing contrib config folder from /etc/roundcubemail to the new config location
cd /usr/share/roundcubemail
ln -s /etc/roundcubemail config

# Make IMAP and SMTP use the full hostname of my server, matching the hostname in my letsencrypt certificate
mkdir -p /etc/e-smith/templates-custom/etc/roundcubemail/config.inc.php
cd /etc/e-smith/templates-custom/etc/roundcubemail/config.inc.php

# 30IMAP: replace 'ssl://$DomainName' with 'ssl://$SystemName.$DomainName'
sed 's|ssl://$DomainName|ssl://$SystemName.$DomainName|' /etc/e-smith/templates/etc/roundcubemail/config.inc.php/30IMAP > 30IMAP

# 40SMTP: replace 'ssl://localhost' with 'ssl://$SystemName.$DomainName'
sed 's|ssl://localhost|ssl://$SystemName.$DomainName|' /etc/e-smith/templates/etc/roundcubemail/config.inc.php/40SMTP >40SMTP

# apply the new configurations
signal-event roundcube-update

# run the installer using php73
cd ~/addons/roundcube/roundcubemail-1.4.3
scl enable php73 'bin/installto.sh /usr/share/roundcubemail'
  # Note: answer 'Yes' when asked if you want to fix the local config...

# Many of the contrib plugins get removed during the upgrade
# Reset the roundcube plugins string to match the available plugins
config setprop roundcube PluginsList 'vcard_attachments,newmail_notifier,emoticons'

# apply the new configurations
signal-event roundcube-update

Roundcube 1.4.3 is now accessible on my server at /roundcube, and seems to work...