#1  
Old 08-25-2008, 03:24 PM
digitaljesus digitaljesus is offline
Registered User
 
Join Date: Sep 2006
Posts: 8
Question MySQL PDO install

Hello Everyone,

Came up with an interesting issue today and was wondering if anyone else has had something similar/knows a fix for this.

I'm installing the Magento eCommerce cart and it's requiring PDO_MYSQL to be installed, so I followed the directions of this site which shows how to do it using pecl, and followed it to the letter, but now whenever I include extension=pdo_mysql.so in the php.ini file Apache blows up and shoots out the following error message:

Mon Aug 25 16:11:25 2008] [notice] Digest: done
/usr/sbin/httpd: symbol lookup error: /usr/lib64/php5/pdo_mysql.so: undefined symbol: php_pdo_declare_long_constant

No clue what I'm doing wrong. I'm on CentOS 4.6 and InterWorx 3.0.4 and PHP 5.2.5

Funny thing is, apparently PDO is installed somewhere and I can't access it. My PHP.INI file right now has these extensions commented out:

;extension=pdo.so
;extension=pdo_mysql.so

Yet if you look at my PHPinfo() file on the server, it stil seems to be accessing it.

Anybody have any ideas what I'm doing wrong?

Thanks,
Dan

Last edited by digitaljesus; 08-25-2008 at 03:32 PM.
Reply With Quote
  #2  
Old 08-25-2008, 03:28 PM
IWorx-Paul IWorx-Paul is offline
Administrator
 
Join Date: Jan 2004
Location: Pittsburgh, PA
Posts: 1,096
Hi Dan,

My guess is that it's loading from one of the /etc/php.d/*.ini files. As far the actual problem - I'm not sure, but googling that error does bring up some hits, so that's the first thing I'd check.

http://www.google.com/search?hl=en&q..._long_constant

Paul
__________________
Paul Oehler
InterWorx-CP | http://interworx.com
InterWorx Control Panel
Reply With Quote
  #3  
Old 09-03-2008, 05:04 PM
netipro netipro is offline
Registered User
 
Join Date: Jan 2008
Posts: 40
Hi

If I remember well, if you build the PDO extension as "shared" then you HAVE TO build the mysql-pdo, sqlite-pdo etc as shared too.

Also you'll maybe have to recompile both php and mysql
Reply With Quote
Reply

Tags
magento, mysql, pdo, pdo_mysql

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 04:01 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.