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?
Asked
Active
Viewed 5.3k times
1 Answers
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