Fatal error: Class 'PDO' not found in...

Avatar
  • Answered
I'm trying to publish my website but am hitting problems with my database connectivity. I'm trying to open a sqlite database using the code

$this->link = new PDO('sqlite:'.$this->db_name);

This is throwing the error
Fatal error: Class 'PDO' not found in ... on line ...

I checked my php.ini and I have these lines in it
extension=pdo.so
extension=pdo_sqlite.so
extension=sqlite.so
extension=pdo_mysql.so

Struggling to see the problem?
Avatar
JacobIMH
Hello Allycw, and thank you for your question. I see that it looks like you already submitted a support request for this same issue, and I see in that ticket that one of our support technicians was able to resolve your problems by adding a new php.ini file for you. I'm assuming that the syntax of your original one was off by a bit somewhere. If you're still having any issues at all please let us know. - Jacob