getting PHP PDO flavors to work on Mac OS X

Posted by Jason S on Server Fault See other posts from Server Fault or by Jason S
Published on 2009-08-13T01:51:55Z Indexed on 2012/10/08 3:39 UTC
Read the original article Hit count: 504

Filed under:
|
|

I'm running OS X 10.5; it looks like it came with Apache and PHP installed (minus some minor configurations which I turned on per this page; I've used Apache before so I know the basics of how httpd.conf works).

I've got a pre-existing script which uses PDO. I've got a MySQL database and can easily configure my script to access the database via PDO MySQL or PDO ODBC. The problem is, that even though I enabled the PDO MySQL and PDO ODBC extensions in php.ini, phpinfo() reports the only PDO drivers are sqlite2 and sqlite. I'm guessing the relevant extension .dll or .so files are not present? How do I get them?

note: I'm using the built-in install for PHP. (see apple's page on enabling php, which doesn't say anything about configure or adding additional .so files)

© Server Fault or respective owner

Related posts about php

Related posts about macosx