1

Topic: Roundcube Upgrade

======== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.5-1
- Linux/BSD distribution name and version: centos-release-7-2.1511.el7.centos.2.10.x86_64
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx):Apache
- Manage mail accounts with iRedAdmin-Pro?No
- Related log if you're reporting an issue:

Hi All,
After following the instruction on upgrading of roundcube using the commandline - https://github.com/roundcube/roundcubemail/wiki/Upgrade

[root@mailserver bin]# ./installto.sh /var/www/roundcubemail-1.2.0/
Upgrading from 1.2.0. Do you want to continue? (y/N)
y
Copying files to target location...done.

But when i check about of roundcube it show its previous version 1.2.0 instead of 1.2.3,

Is there a next step?

I've tried to...
[root@mailserver bin]# ./update.sh
What version are you upgrading from? Type '?' if you don't know.
1.2.0
This instance of Roundcube is not yet configured!
Open http://url-to-roundcube/installer/ in your browser and follow the instructions.

But when i go to - https://ourdomain/roundcube/installer/

It shows..
The installer is disabled!
To enable it again, set $config['enable_installer'] = true; in RCUBE_CONFIG_DIR/config.inc.php

Can't seem to find $config['enable_installer'] = true; in config.inc.php file.
Had control+w using nano to find $config['enable_installer'] = true; but can't find it.

My webmail is still working but still want to upgrade roundcube.

What did i miss?

Thanks in Advanced!

----

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

2

Re: Roundcube Upgrade

It requires package "rsync". Please install it first, then run the "installto.sh" again.

3

Re: Roundcube Upgrade

ZhangHuangbin wrote:

It requires package "rsync". Please install it first, then run the "installto.sh" again.

Hi Zhang,

I've already installed but same thing happenend.

[root@mail2 bin]# yum install rsync
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.rise.ph
* epel: mirror.rise.ph
* extras: mirror.rise.ph
* updates: mirror.rise.ph
Package rsync-3.0.9-17.el7.x86_64 already installed and latest version
Nothing to do
[root@mail2 bin]# systemctl start rsyncd
[root@mail2 bin]# systemctl status rsyncd
● rsyncd.service - fast remote file copy program daemon
   Loaded: loaded (/usr/lib/systemd/system/rsyncd.service; disabled; vendor preset: disabled)
   Active: active (running) since Fri 2016-12-16 09:05:35 PHT; 1min 42s ago
Main PID: 21958 (rsync)
   CGroup: /system.slice/rsyncd.service
           └─21958 /usr/bin/rsync --daemon --no-detach

Dec 16 09:05:35 our.hostname systemd[1]: Started fast remote file copy program daemon.
Dec 16 09:05:35 our.hostname systemd[1]: Starting fast remote file copy program daemon...
Dec 16 09:05:36 our.hostname rsyncd[21958]: rsyncd version 3.0.9 starting, listening on port 873
Dec 16 09:07:09 our.hostname systemd[1]: Started fast remote file copy program daemon.
[root@mail2 bin]# pwd
/root/dl/roundcubemail-1.2.3/bin
[root@mail2 bin]# ls
cleandb.sh    decrypt.sh  dumpschema.sh  indexcontacts.sh  installto.sh  makedoc.sh       msgexport.sh  updatecss.sh  update.sh
cssshrink.sh  deluser.sh  gc.sh          initdb.sh         jsshrink.sh   moduserprefs.sh  msgimport.sh  updatedb.sh
[root@mail2 bin]# ./installto.sh /var/www/roundcubemail-1.2.0/
Upgrading from 1.1.2. Do you want to continue? (y/N)
y
Copying files to target location...done.

[root@mail2 bin]#

4

Re: Roundcube Upgrade

Has any mode debug that script? like -v or something.

Maybe you can check logs or debug to check where its copying that files. If you use a different location between script and your iredmail, you will never get RoundCube upgraded.

5

Re: Roundcube Upgrade

You don't need to run 'rsyncd' service, it uses 'rsync' command to sync new files to current installation directory.

Usually i just run "./bin/installto.sh /path/to/old/roundcube". Did you get any error/warning in Postfix log file (Roundcube is configured to log to same log file)?

6

Re: Roundcube Upgrade

Oh, i forgot to mention that it requires php function `system` which is disabled in php.ini. please remove it from `disable_functions =` setting in php.ini, then re-run './bin/installto.sh' script.

7 (edited by devedames 2016-12-19 08:36:47)

Re: Roundcube Upgrade

ZhangHuangbin wrote:

Oh, i forgot to mention that it requires php function `system` which is disabled in php.ini. please remove it from `disable_functions =` setting in php.ini, then re-run './bin/installto.sh' script.

Hi Zhang,

Thanks it did the trick, now i have an updated roundcube.

Best Regards,

Post's attachments

roundcube update shell.png
roundcube update shell.png 10.04 kb, 2 downloads since 2016-12-19 

roundcube update.png
roundcube update.png 22.46 kb, file has never been downloaded. 

You don't have the permssions to download the attachments of this post.