$db = new PDO(\'mysql:dbname=xnews;host=localhost;port=\' . $LOCAL_DB_PORT, $LOCAL_DB_USER, $LOCAL_DB_PASS, array(PDO::MYSQL_ATTR_IN
For Centos I was missing php-mysql library:
yum install php-mysql service httpd restart
There is no need to enable any extension in php.ini, it is loaded by default.