Roundcube shows blank page after upgrade

Created:

2016-11-16 13:01:16 UTC

Modified:

2017-08-16 18:28:58 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Roundcube shows blank page after upgrade

Applicable to:

  • Plesk 12.5 for Linux
  • Plesk 11.x for Linux
  • Plesk 12.0 for Linux

Symptoms

Roundcube was installed on the server, but blank page appears while accessing mail server via webmail.Server has PHP 5.2 installed. PHP upgrade is not acceptable.

Cause

PHP version on server is less than as required by current Roundcube version.Roundcube required PHP 5.3:

[root@server ]# tailf /var/log/plesk-roundcube/errors
[18-Nov-2013 15:35:14 +0200]: DB Error: MySQL driver requires PHP >= 5.3, current version is 5.2.17 in /usr/share/psa-roundcube/program/lib/Roundcube/rcube_db_mysql.php on line 39 (GET /)
[18-Nov-2013 15:35:17 +0200]: DB Error: MySQL driver requires PHP >= 5.3, current version is 5.2.17 in /usr/share/psa-roundcube/program/lib/Roundcube/rcube_db_mysql.php on line 39 (GET /)
[18-Nov-2013 15:40:44 +0200]: DB Error: MySQL driver requires PHP >= 5.3, current version is 5.2.17 in /usr/share/psa-roundcube/program/lib/Roundcube/rcube_db_mysql.php on line 39 (GET /)
[18-Nov-2013 15:42:42 +0200]: DB Error: MySQL driver requires PHP >= 5.3, current version is 5.2.17 in /usr/share/psa-roundcube/program/lib/Roundcube/rcube_db_mysql.php on line 39 (GET /)
[18-Nov-2013 16:04:32 +0200]: DB Error: MySQL driver requires PHP >= 5.3, current version is

Resolution

The server has PHP 5.2, but the application requires PHP 5.3.

[root@server ]# php -v
PHP 5.2.17 (cli) (built: Jan 7 2011 10:39:29)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies
with the ionCube PHP Loader v4.4.1, Copyright (c) 2002-2013, by ionCube Ltd.

You may downgrade Roundcube to 0.8.6 from 0.9.5 since 0.8.6 version supports PHP 5.2:

# rpm -e plesk-roundcube

# MYSQL_PWD=`cat /etc/psa/.psa.shadow` mysql -u admin
# MYSQL_PWD=`cat /etc/psa/.psa.shadow` mysqldump --extended-insert=FALSE --complete-insert=TRUE -uadmin roundcubemail > ~/roundcubemail.`date +%F.%s`.sql

mysql> drop database roundcubemail

rpm -Uvh http://autoinstall.pp.parallels.com/PSA_11.5.30/dist-rpm-CentOS-5-x86_64/opt/roundcube/plesk-roundcube-0.8.6-cos5.build115130812.16.noarch.rpm --force
/usr/local/psa/admin/bin/httpdmng --reconfigure-all

Edit the /etc/yum.conf file, add this line:

exclude=plesk-roundcube*

so it will not be upgraded later

Have more questions? Submit a request
Please sign in to leave a comment.