|
|||
|
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? |
|
||||
|
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 |
![]() |
| Thread Tools | |
| Display Modes | |
|
|