17

When outputting phpinfo(); I can see that PDO is set to '--disable-pdo' in the Configure Command section. How can I enable this using SSH?

mike
  • 2,722
  • 6
  • 31
  • 46
  • 1
    +1 No reason for the down vote I need a solution to this too – Mallow Jul 28 '11 at 20:04
  • See also: http://stackoverflow.com/questions/18747136/how-do-i-configure-php-to-enable-pdo-and-include-mysqli-on-centos – ohho Jan 26 '15 at 10:15

1 Answers1

13

Try

pecl install pdo

EDIT:

If it is already installed try edit

/etc/php.ini 

Add this line

; Extension PDO
extension=pdo.so

EDIT :

if you dont have access to php ini try try this in your php aplication

if (!extension_loaded('pdo')) 
{
    dl('pdo.so');
}
streetparade
  • 32,000
  • 37
  • 101
  • 123
  • 5
    `dl` function has been removed from some SAPIs in PHP 5.3. source: http://www.php.net/manual/en/function.dl.php – alex Feb 25 '14 at 10:51