PDO not found

Avatar
  • Answered
Failed to access [http://work.galaha.org/drupal/]

Fatal error: Class 'PDO' not found in /home/galaha5/SubSite/work/drupal/includes/database/database.inc on line 184

Thanks!
Avatar
Scott
Hello zhouzb, This error can be casued by a few different settings. First be sure the following are enabled in your php.ini file, found in your public_html folder: extension=pdo.so extension=pdo_sqlite.so extension=sqlite.so extension=pdo_mysql.so If that does not stop the error, ensure the extension_dir setting is commented out completely in the php.ini. Lastly, see that the following code is set in your .htaccess file: SetEnv PHPRC /home/cPanelUser/public_html/php.ini Be sure to replaces your actual cpanel username where it says cPanelUser That should enable the pdo extensions and remove the error. I hope this answers your question. If you have any more questions or information specific to the issue please leave a comment below so we can further assist you. Best Regards, Scott M