Roundcube shows 500 error if date.timezone is not specified


2016-11-16 13:21:26 UTC


2017-08-17 15:09:02 UTC


Was this article helpful?

Have more questions?

Submit a request

Roundcube shows 500 error if date.timezone is not specified

Applicable to:

  • Plesk 12.5 for Linux
  • Plesk Onyx for Linux
  • Plesk Onyx 17.5 for Linux

Note: This article has the reference to the issue with the fix available:

  • #PPPM-6104 "Trying to log in to Roundcube with an incorrect password resulted in an HTTP response code 500."
    Fixed in:
Please consider updating your server:


Trying to access Roundcube webmail with an incorrect password the screen goes blank.The following error can be found in /var/log/plesk-roundcube/errors :

PHP Fatal error:  Uncaught exception 'Exception' with message 'DateTime::__construct(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone.' in /usr/share/psa-roundcube/program/lib/Roundcube/rcube_user.php:491
Stack trace:
#0 /usr/share/psa-roundcube/program/lib/Roundcube/rcube_user.php(491): DateTime->__construct('now')
#1 /usr/share/psa-roundcube/program/include/rcmail.php(619): rcube_user->failed_login()
#2 /usr/share/psa-roundcube/index.php(118): rcmail->login('john.doe@examp...', '123qwe', 'localhost', true)
#3 {main}
thrown in /usr/share/psa-roundcube/program/lib/Roundcube/rcube_user.php on line 491


Stack trace:
#0 /usr/share/psa-roundcube/program/lib/Roundcube/rcube_user.php(523): DateTime->__construct('2017-05-26 14:3...')
#1 /usr/share/psa-roundcube/program/include/rcmail.php(608): rcube_user->is_locked()
#2 /usr/share/psa-roundcube/index.php(118): rcmail->login('john.doe@exampl...', '123qwe', '', true)
#3 {main}
thrown in /usr/share/psa-roundcube/program/lib/Roundcube/rcube_user.php on line 523

On Plesk 17.5 (with Roundcube 1.2.4) 500 error can appear even if correct credentials are used.


This issue is caused by Plesk bug #PPPM-6104 and will be fixed in future product updates.


As a workaround:

  1. Open /etc/psa-webmail/roundcube/php.ini with text editor. This file is generated during Roundcube installation.
  2. Add date.timezone = <SERVER_TIMEZONE> into the file in [PHP] section. List of supported timezones available on offcial PHP web site

Additional information

PHP setting for Roundcube are overwritten on upgrade

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