installed pdo.so and pdo_mysql.so still no go

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • eholz1

    installed pdo.so and pdo_mysql.so still no go

    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

    #2
    Re: installed pdo.so and pdo_mysql.so still no go

    >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?

    Comment

    • eholz1

      #3
      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.ph p on line 63

      my code to call PDO is:
      $db = new PDO('mysql:host =localhost;dbna me=menagerie',$ dbuser,$dbpass) ;

      I am open for suggestions!

      Thanks,

      ewholz

      Gordon Burditt wrote:
      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?

      Comment

      Working...