How to enabled pdo mysql in Centos 5.8
Posted
by
nacho3d
on Server Fault
See other posts from Server Fault
or by nacho3d
Published on 2012-05-30T04:32:27Z
Indexed on
2012/10/17
11:04 UTC
Read the original article
Hit count: 382
I have a VPS with Centos 5.8
In phpinfo displays: './configure' '--disable-fileinfo' '--disable-pdo' '--enable-bcmath' '--enable-calendar' '--enable-ftp' '--enable-libxml' '--enable-magic-quotes' '--enable-sockets' '--prefix=/usr/local' '--with-apxs2=/usr/local/apache/bin/apxs' '--with-curl=/opt/curlssl/' '--with-imap=/opt/php_with_imap_client/' '--with-imap-ssl=/usr' '--with-kerberos' '--with-libdir=lib64' '--with-libxml-dir=/opt/xml2/' '--with-mysql=/usr' '--with-mysql-sock=/var/lib/mysql/mysql.sock' '--with-openssl=/usr' '--with-openssl-dir=/usr' '--with-pcre-regex=/opt/pcre' '--with-pic' '--with-zlib' '--with-zlib-dir=/usr'
I've tried this:
And aparently it installed php-pdo
# rpm -qa |grep php
php-5.3.13-1.el5.remi
php-xml-5.3.13-1.el5.remi
php-common-5.3.13-1.el5.remi
php-cli-5.3.13-1.el5.remi
php-pdo-5.3.13-1.el5.remi
php-xmlrpc-5.3.13-1.el5.remi
php-mcrypt-5.3.13-1.el5.remi
But I've restarted apache and it still says in my phpinfo: '--disable-pdo'
Should I rebuild php? Do I need to do some other step?
© Server Fault or respective owner