Ja też kiedyś miałem podobny problem i nawet zapisałem sobie rozwiązanie na przyszłość... Mój plik mówi mi:
Cytat
$sudo apt-get install php5-dev
$sudo apt-get install php-pear
$sudo apt-get install libmysqlclient15-dev
$sudo pecl install pdo
$PHP_PDO_SHARED=1 sudo pecl install pdo_mysql
Then, just add
extension=pdo.so
extension=pdo_mysql.so
to the end of /etc/php/apache2/php.ini and /etc/php/cli/php.ini files and restart the web server.