Welcome, Guest. Register Now!
   
Mark Forums Read Mark Forums Read Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-11-2008, 11:19 PM
Junior Member
 
Join Date: Mar 2008
Posts: 11
Default pdo driver installation

Sorry if this is a stupid question....

I am getting an exception that says, "The mysql driver is not currently installed". I ran "pecl install pdo" and that worked fine. I never had a php.ini file, so I created one that contains the line "extension=pdo.so" and saved it in my /usr/local/apache2/conf directory. Then I added the line PHPIniDir "/usr/local/apache2/conf" to httpd.conf. Basically, I did what seemed like easiest way to add a php.ini file from all of the examples given in the php documentation. I am running Linux, so none of the Windows methods will work for me. Then I restarted httpd. But I still get the message that the mysql driver is not installed. Have I done something wrong, or forgotten something? Is there an easier way to tell php where to find the php.ini file?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 03-12-2008, 01:34 PM
xentek's Avatar
Senior Member
 
Join Date: Feb 2008
Posts: 112
Default

If PHP was installed, you have a php.ini file. In my 12 years of using it, I've never had an installation with out it.

If you don't think the changes and configuration (httpd.conf pointing to your newly created ini file) is working, run phpinfo() function in a blank php file, and it will tell you the location of the php.ini file that PHP is actually using.

Once you locate the file its using, you may want to back out your other changes and edit this other file.

This should at least let you troubleshoot which php.ini is being used.

Were you able to use mysql before? Perhaps PDO requires the standard MySQL extenstion to be present in order to work? I don't use PDO, so I can't comment on that part.
__________________
- xentek
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 10:48 PM.