Connecting Tech Pros Worldwide Forums | Help | Site Map

installed pdo.so and pdo_mysql.so still no go

eholz1
Guest
 
Posts: n/a
#1: Jan 2 '07
Hello Group,
I have installed via pecl using the following commands:
$ pecl install pdo (this seemed to do all the things it was supposed to
do)
then I entered the following command: $ pecl install pdo_mysql (this
seemed to be ok as well)
it placed the .so files in a dir
/usr/local/apache2/lib/php/extensions/no-debug-non-zts-20060613/

both the pdo_mysql.so and the pdo.so files were there. (tried copying
them into /usr/local/apache2/lib/php/extensions/ )

I am using fedora core 6, apache 2.2, and php 5.2 and mysql 5.027.
when I try to open a connection to the database, i still get a "driver
not found" error.

the pdo_mysql name does not show up in my phpinfo() page, if I run it.
I have added the "extension=pdo.so" etc in my php.ini file.

What am I still missing? do I have to reconfigure php??

any info will help,

Thanks,

ewholz


Gordon Burditt
Guest
 
Posts: n/a
#2: Jan 2 '07

re: installed pdo.so and pdo_mysql.so still no go


>I have installed via pecl using the following commands:
Quote:
>$ pecl install pdo (this seemed to do all the things it was supposed to
>do)
then I entered the following command: $ pecl install pdo_mysql (this
>seemed to be ok as well)
>it placed the .so files in a dir
>/usr/local/apache2/lib/php/extensions/no-debug-non-zts-20060613/
>
>both the pdo_mysql.so and the pdo.so files were there. (tried copying
>them into /usr/local/apache2/lib/php/extensions/ )
>
>I am using fedora core 6, apache 2.2, and php 5.2 and mysql 5.027.
>when I try to open a connection to the database, i still get a "driver
>not found" error.
>
>the pdo_mysql name does not show up in my phpinfo() page, if I run it.
>I have added the "extension=pdo.so" etc in my php.ini file.
>
>What am I still missing? do I have to reconfigure php??
Did you stop and restart apache?

eholz1
Guest
 
Posts: n/a
#3: Jan 3 '07

re: installed pdo.so and pdo_mysql.so still no go


Hello Gordon --
stop and restart apache as well.
New sympton - rebuilt PHP 5.2 with sqlite as shared, and noticed that
the code, as php was building,
did seem to pick up the dir for the pdo.so and pdo_mysql.so files.

Now my error message is: Fatal error: Class 'PDO' not found in
/usr/local/apache2/htdocs/display_pets.php on line 63

my code to call PDO is:
$db = new PDO('mysql:host=localhost;dbname=menagerie',$dbuse r,$dbpass);

I am open for suggestions!

Thanks,

ewholz

Gordon Burditt wrote:
Quote:
Quote:
I have installed via pecl using the following commands:
$ pecl install pdo (this seemed to do all the things it was supposed to
do)
then I entered the following command: $ pecl install pdo_mysql (this
seemed to be ok as well)
it placed the .so files in a dir
/usr/local/apache2/lib/php/extensions/no-debug-non-zts-20060613/

both the pdo_mysql.so and the pdo.so files were there. (tried copying
them into /usr/local/apache2/lib/php/extensions/ )

I am using fedora core 6, apache 2.2, and php 5.2 and mysql 5.027.
when I try to open a connection to the database, i still get a "driver
not found" error.

the pdo_mysql name does not show up in my phpinfo() page, if I run it.
I have added the "extension=pdo.so" etc in my php.ini file.

What am I still missing? do I have to reconfigure php??
>
Did you stop and restart apache?
Closed Thread