PHP Configuration Problems Part II

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

    PHP Configuration Problems Part II

    Ok, PHP starts beautifully now. But MySQL is another story. When I
    restart Apache I get the following error message, which I copied from
    the Apache error log:

    [Tue Oct 11 21:35:17 2005] [notice] jrApache[init] JRun 4.0 (Build
    91015) Apache 2 module - Jan 6 2005 15:25:33
    PHP Warning: PHP Startup: Unable to load dynamic library
    'c:/php/ext/php_mysql.dll' - The specified module could not be
    found.\r\n in Unknown on line 0

    My path is set as follows in php.ini:

    extension_dir = "c:/php/ext/"

    I also tried it with and without quotes and without the last / to no
    avail. And php_mysql.dll does live in this directory. The original path
    was "./", which worked just as well. Any clues?
  • David Haynes

    #2
    Re: PHP Configuration Problems Part II

    James wrote:[color=blue]
    > Ok, PHP starts beautifully now. But MySQL is another story. When I
    > restart Apache I get the following error message, which I copied from
    > the Apache error log:
    >
    > [Tue Oct 11 21:35:17 2005] [notice] jrApache[init] JRun 4.0 (Build
    > 91015) Apache 2 module - Jan 6 2005 15:25:33
    > PHP Warning: PHP Startup: Unable to load dynamic library
    > 'c:/php/ext/php_mysql.dll' - The specified module could not be
    > found.\r\n in Unknown on line 0
    >
    > My path is set as follows in php.ini:
    >
    > extension_dir = "c:/php/ext/"
    >
    > I also tried it with and without quotes and without the last / to no
    > avail. And php_mysql.dll does live in this directory. The original path
    > was "./", which worked just as well. Any clues?[/color]

    Have you remembered to copy libmysql.dll into the Apache2\bin directory?

    -david-

    Comment

    • James

      #3
      Re: PHP Configuration Problems Part II

      David Haynes wrote:[color=blue]
      > James wrote:
      >[color=green]
      >> Ok, PHP starts beautifully now. But MySQL is another story. When I
      >> restart Apache I get the following error message, which I copied from
      >> the Apache error log:
      >>
      >> [Tue Oct 11 21:35:17 2005] [notice] jrApache[init] JRun 4.0 (Build
      >> 91015) Apache 2 module - Jan 6 2005 15:25:33
      >> PHP Warning: PHP Startup: Unable to load dynamic library
      >> 'c:/php/ext/php_mysql.dll' - The specified module could not be
      >> found.\r\n in Unknown on line 0
      >>
      >> My path is set as follows in php.ini:
      >>
      >> extension_dir = "c:/php/ext/"
      >>
      >> I also tried it with and without quotes and without the last / to no
      >> avail. And php_mysql.dll does live in this directory. The original
      >> path was "./", which worked just as well. Any clues?[/color]
      >
      >
      > Have you remembered to copy libmysql.dll into the Apache2\bin directory?
      >
      > -david-
      >[/color]

      I did not remember that. I didn't even find it in the documentation. But
      it did the trick. You are a god (small "g") to me. :-)

      James

      Comment

      • Malcolm Wright

        #4
        Re: PHP Configuration Problems Part II

        James wrote:[color=blue]
        > David Haynes wrote:
        >[color=green]
        >> James wrote:
        >>[color=darkred]
        >>> Ok, PHP starts beautifully now. But MySQL is another story. When I
        >>> restart Apache I get the following error message, which I copied from
        >>> the Apache error log:
        >>>
        >>> [Tue Oct 11 21:35:17 2005] [notice] jrApache[init] JRun 4.0 (Build
        >>> 91015) Apache 2 module - Jan 6 2005 15:25:33
        >>> PHP Warning: PHP Startup: Unable to load dynamic library
        >>> 'c:/php/ext/php_mysql.dll' - The specified module could not be
        >>> found.\r\n in Unknown on line 0
        >>>
        >>> My path is set as follows in php.ini:
        >>>
        >>> extension_dir = "c:/php/ext/"
        >>>
        >>> I also tried it with and without quotes and without the last / to no
        >>> avail. And php_mysql.dll does live in this directory. The original
        >>> path was "./", which worked just as well. Any clues?[/color]
        >>
        >>
        >>
        >> Have you remembered to copy libmysql.dll into the Apache2\bin directory?
        >>
        >> -david-
        >>[/color]
        >
        > I did not remember that. I didn't even find it in the documentation. But
        > it did the trick. You are a god (small "g") to me. :-)
        >
        > James
        >[/color]
        I was having the same problem - see "MYSQLi problem in PHP - earlier on
        in this newsgroup.
        Thanks to David's help I upgraded to Apache 2 and copied the libmysqli
        into the directory and it now all works for me!
        Many, many thanks.

        Malcolm Wright

        Comment

        Working...