InMotion Hosting Support Center

PDO not found

Category: Drupal

2012-06-26 9:26 am EST

Hits: 4,341
Failed to access []

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


You must login before you can ask a follow up question.

You must login before you can submit an answer.



43,032 Points
2012-06-26 9:44 am EST
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:

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

You must login before you can post a comment about this answer.

I tried the above. I did not have a php.ini file and I added it used the same on the .htaccess but nothing changed.
Please assist

3 Points
2014-05-16 12:43 am EST
Be sure that you have these like specifically within your php.ini file, as well as you have set your .htacess to be recursive and the path to your php.ini file is correct.

If you are not hosted with us, you may need to consult your host for more information on their requirements.
11,186 Points
2014-05-16 9:01 am EST
Like this Question?

Support Center Login

Social Media Login

Social Login Joomla

Related Articles

Need more Help?


Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail:
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!