Unable to open Roundcube Webmail with error 500: Class 'PDO' not found

Created:

2017-04-12 00:56:14 UTC

Modified:

2017-08-16 16:25:47 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Unable to open Roundcube Webmail with error 500: Class 'PDO' not found

Applicable to:

  • Plesk for Linux

Symptoms

  • Roundcube Webmail failed to open with 500 error in browser.
  • The following error appears  in /var/log/plesk-roundcube/errors :

    PHP Fatal error: Class 'PDO' not found in /usr/share/psa-roundcube/program/lib/Roundcube/rcube_db_mysql.php on line 144
    
  • Listing of system php modules ( #php -m ) does not show pdo_sqlite module:

    # php -m | grep -i pdo 
    #

Cause

System PHP misconfiguration

Resolution

  1. Comment the following directive in the /etc/psa-webmail/roundcube/php.ini file:

    #grep extension /etc/psa-webmail/roundcube/php.ini
    ;extension_dir = "./"
  2. Turn on the pdo, pdo_mysql and pdo_sqlite extensions under Home > Tools & Settings > PHP Settings > %php_version% by OS vendor FastCGI application

  3. Make sure that modules were activated using the following command:
    # php -m | grep -i pdo
    PDO
    pdo_mysql
    pdo_sqlite
    
Have more questions? Submit a request
Please sign in to leave a comment.