I have just recently installed a LAMP Server with this php installation parameters:
php5-sybase, php5-mysql, php, php-libabachemod and a few more. I do not have the MySQLI or PDO Classes inside my installation? How Can I do This? I have checked in php.net on the instalation, nd it makes no sense to me. I was wondering if someone could clarify?
I have tried
sudo apt-get install php5-mysqli php5-pdo But this does not work
Running:
if (function_exists('PDO')) {
echo "functions are available.<br />\n";
} else {
echo "functions are not available.<br />\n";
}
Returns functions are not avilable
and the same if I run if (function_exists('mysqli'))
In terms of your installation without
PDOusing PECL wont work as PDO is now in the core package ofphp5-sqliteand
MySQLiis a core package ofphp5-mysqlndandphp5-mysqlIf you already have tried the
then you will recieve an error and will need to purge your installation packages inorder to run with PDO/MySQLi