How to check if PDO support is enabled in my Apache Installation? How to check if PDO support is enabled in my Apache Installation? apache apache

How to check if PDO support is enabled in my Apache Installation?


if (!defined('PDO::ATTR_DRIVER_NAME')) {echo 'PDO unavailable';}elseif (defined('PDO::ATTR_DRIVER_NAME')) {echo 'PDO available';}

I hope this works


The configure command in your PHP output shows:

'--disable-pdo'

so I think it's safe to assume that they haven't enabled it.


Does this application want Pdo_Mysql? If so you may be able to use the Mysqli adapter instead - it depends on the software but it's possible.

In the area where you set your database connection details, there's probably an option called 'adapter'. Try setting its value to 'mysqli'