Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

As per the title I'm having problems with PHP 5.2.10 and getting PDO MySQL to be recognised.

My configure command contains '--enable-pdo=shared' '--with-pdo-odbc=shared,unixODBC,/usr' '--with-pdo-mysql=shared,/usr' '--with-pdo-pgsql=shared,/usr' '--with-pdo-sqlite=shared,/usr'

and the pdo_mysql.so file is available in the folder indicated by extension_dir variable, I've added

extension=pdo.so
extension=pdo_sqlite.so
extension=sqlite.so
extension=pdo_mysql.so

to php.ini and there are ini files in the php.d folder for the pdo drivers, but still phpinfo reports the PDO support is enabled but the drivers value is set to no value.

I'm on Centos with Nginx, PHP 5.2.10

I'm kinda stuck, your help would be appreciated

share|improve this question

migrated from stackoverflow.com Jul 12 '11 at 15:58

This question came from our site for professional and enthusiast programmers.

    
is php-pdo installed? –  ArtoAle Jun 15 '11 at 12:11
    
Where is the PHP binary from? From your systems package manager? –  hakre Jun 15 '11 at 12:14
    
Ah, just done a pecl install pdo_mysql and got... checking for mysql_query in -lmysqlclient... no configure: error: mysql_query missing!? –  creativenode Jun 15 '11 at 12:27
    
@hakre not sure where it's from. doing yum list installed | grep pdo returns php-pdo.i386 5.2.10-1.el5.centos installed –  creativenode Jun 15 '11 at 12:40
    
yum is the package manager. can you tell for the PHP itself as well? –  hakre Jun 15 '11 at 12:43

Your Answer

 
discard

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