make a backup of /etc and then try
But I would not reinstall every package - only php5 things.
Can you check this php code on the domain?
Code:
<?php
if ($filelist = php_ini_scanned_files()) {
if (strlen($filelist) > 0) {
$files = explode(',', $filelist);
foreach ($files as $file) {
echo "<li>" . trim($file) . "</li>\n";
}
}
}
?>
this gives a list of php.ini files which have been processed...
Somewhere in theese files the mysql extension should be included...
I have:
# /etc/php5/cgi/conf.d/adodb.ini
# /etc/php5/cgi/conf.d/curl.ini
# /etc/php5/cgi/conf.d/gd.ini
# /etc/php5/cgi/conf.d/idn.ini
# /etc/php5/cgi/conf.d/imap.ini
# /etc/php5/cgi/conf.d/mcrypt.ini
# /etc/php5/cgi/conf.d/mhash.ini
# /etc/php5/cgi/conf.d/mysql.ini
# /etc/php5/cgi/conf.d/mysqli.ini
# /etc/php5/cgi/conf.d/pdo.ini
# /etc/php5/cgi/conf.d/pdo_mysql.ini
# /etc/php5/cgi/conf.d/suhosin.ini
if you have the same - then the mysql.so should be included...
hm... difficult...
/J