Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I enable PDO using CentOS?

Tags:

php

pdo

centos

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?

like image 633
mike Avatar asked Feb 23 '10 18:02

mike


1 Answers

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');
}
like image 153
streetparade Avatar answered Oct 12 '22 23:10

streetparade