I tried to run "aptitude install php5-mysql" (and restarted MySQL/Apache 2) and I am facing an error:
Fatal error: Call to undefined function mysql_connect() in /home/validate.php on line 21
phpinfo() says the /etc/php5/apache2/conf.d/pdo_mysql.ini file have been parsed.