crazyaboutlinux

Well-Known Member
Nov 3, 2007
939
1
66
Hi,

When i open this website www.nilesh.com (website changed for security) it gives following error message

please tell me how to fix this error


Fatal error: Class 'PDO' not found in /home/nilesh/public_html/library/Doctrine/Connection/Mysql.php on line 49
 

nilesh_kolte

Well-Known Member
Apr 13, 2006
65
0
156
Pune ,India
cPanel Access Level
Root Administrator
Fix

Is php_pdo,php_pdo_sqlite,php_sqlite is enabled on server? Also try to recompile php with same modules.

You can compile apache from easyapache script.
 

shaqun

Registered
Jul 5, 2007
3
0
51
Log in to WHM, go to "Software >> EasyApache". Select PHP 5 and go to exhaustive options list and there you will find PDO. Select and follow the options. This will recompile php/apache with PDO.
I had the same problem and solved before with above way.
 

crazyaboutlinux

Well-Known Member
Nov 3, 2007
939
1
66
Log in to WHM, go to "Software >> EasyApache". Select PHP 5 and go to exhaustive options list and there you will find PDO. Select and follow the options. This will recompile php/apache with PDO.
Thanks howard,

this is very easy way to enable PDO