Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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?

share|improve this question

Installing additional extensions does not change the options PHP was compiled with. Verify that the pdo_mysql extension is installed via php -m or phpinfo().

share|improve this answer
This is the result # php -m [PHP Modules] bcmath calendar Core ctype curl date dom ereg filter ftp hash iconv imap json libxml mysql openssl pcre Phar posix Reflection session SimpleXML sockets SPL SQLite sqlite3 standard timezonedb tokenizer xml xmlreader xmlwriter zlib – nacho3d May 30 '12 at 4:41

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.