We help IT Professionals succeed at work.
Get Started

PDO MySQL drivers not showing up after install

jrm213jrm213
jrm213jrm213 asked
on
931 Views
Last Modified: 2012-05-11
Hi,

I am working with a recently set up debian linux server (I didn't set it up so am not sure what all has been done). It has apache 2, and php 5.3.5 (built from source, with the following attached configure code showing from phpinfo())

phpinfo does show that pdo is installed, but it is only showing:
PDO drivers       sqlite, sqlite2
pdo_sqlite
PDO Driver for SQLite 3.x      enabled
SQLite Library       3.7.3


I used pecl to install pdo_mysql and it was succesful. I added the following to my php.ini file
extension=pdo.so
extension=pdo_mysql.so

I then restarted apache, but phpinfo still does not show that the mysql drivers for pdo are installed, and my application doesn't run...

Is there something else I need to do in order to get this to work? Any help is appreciated.

Thanks!

'./configure' '--prefix=/opt/php5' '--with-apxs2=/usr/bin/apxs2' '--enable-cli' '--with-regex=php' '--enable-calendar' '--with-iconv' '--with-gettext' '--with-pcre-regex' '--enable-mbstring' '--with-mysql=/usr/include/mysql/' '--with-mysqli=/usr/bin/mysql_config' '--with-zlib-dir=/usr/include/' '--with-jpeg-dir=/usr/lib' '--with-ldap' '--with-gd'

Open in new window

Comment
Watch Question
This problem has been solved!
Unlock 1 Answer and 3 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE