From: infolock at gmail dot com Operating system: RedHat PHP version: 5.2CVS-2008-05-13 (CVS) PHP Bug Type: PDO related Bug description: PDO - MySQL WILL NOT install!!!
Description: ------------ Hello all. I've been using PHP for about 6 years now and have run into an issue I cannot solve. Basically, I'm trying to install PDO with MySQL support on a RedHat server. I ran the following commands: pecl install pdo pecl install pdo_mysql I edited the php.ini file and added the following 2 lines: extension=pdo.so extension=pdo_mysql.so I rebooted Apache. It shows PDO installed, but ONLY with the sqlite2 and sqlite extensions installed!!! I then tried uninstalling pdo_mysql and running this command: PHP_PDO_SHARED=1 pecl install pdo_mysql rebooted Apache and the SAME PROBLEM!!! I cannot for the life of me figure out how to fix this issue. Has anyone else had this issue? It works fine for FreeBSD but for whatever reason I can't get it to work on RedHat. Also, why is it that SQLite is installed?? I can't find it anywhere in the php.ini file as being an installed extension, and yet PDO is using it's driver by default and completely ignoring my extension. here is what it shows in phpinfo(): PDO PDO support enabled PDO drivers sqlite2, sqlite pdo_sqlite PDO Driver for SQLite 3.x enabled PECL Module version (bundled) 1.0.1 $Id: pdo_sqlite.c,v 1.10.2.6.2.2 2007/03/23 14:30:00 wez Exp $ SQLite Library 3.3.17 Also, I tried connecting through a basic script and it reports error: "can not find driver". Expected result: ---------------- Shows PDO MySQL installed Actual result: -------------- Only shows PDO SQLite installed -- Edit bug report at http://bugs.php.net/?id=44984&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=44984&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=44984&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=44984&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=44984&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=44984&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=44984&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=44984&r=needscript Try newer version: http://bugs.php.net/fix.php?id=44984&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=44984&r=support Expected behavior: http://bugs.php.net/fix.php?id=44984&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=44984&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=44984&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=44984&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=44984&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=44984&r=dst IIS Stability: http://bugs.php.net/fix.php?id=44984&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=44984&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=44984&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=44984&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=44984&r=mysqlcfg