hobywhan
hobywhan

Reputation: 3

FatalErrorException: Error: Class 'PDO' not found on symfony2

I have an error on symfony 2

FatalErrorException: Error: Class 'PDO' not found in /var/www/vendor/doctrine/dbal/lib/Doctrine/DBAL/DriverManager.php line 155

So I searched for install and enable PDO but I did not find in /etc/php5/apache2/php.ini nor /etc/php5/cli/php.ini these lines extension=pdo.so and extension=pdo_mysql.so

Regards

EDIT:
in /php.ini I have extension=pdo.so and extension=pdo_mysql.so, i searched everywhere and everything but i don't understand why this error keep coming.
I am on a debian server with lamp.

Nobody got an answer?

Upvotes: 0

Views: 4206

Answers (1)

hobywhan
hobywhan

Reputation: 3

I found the answer there : PDO and pdo_mysql loaded but class not found I changed the

extension_dir

everywhere and it finally worked

Upvotes: 0

Related Questions