Unable to load dynamic library './php_mysql.dll'

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

    Unable to load dynamic library './php_mysql.dll'

    Hi,

    When I start my PC(winXP Pro), it always says: Unknown(): Unable
    toload dynamic library './php_msql.dll' - The specified module could
    not be found.

    Then my Apache servre starts, load php module and works well.
    I copied php_msql.dll to my system32 directory. Who knows what's
    wrong? Thanks a lot?

    Nancy
  • Matthias Esken

    #2
    Re: Unable to load dynamic library './php_mysql.dll'

    Nancy wrote:
    [color=blue]
    > When I start my PC(winXP Pro), it always says: Unknown(): Unable
    > toload dynamic library './php_msql.dll' - The specified module could
    > not be found.[/color]

    Are you talking about msql or mysql? Here you say msql, the subject says
    mysql.

    Regards,
    Matthias

    Comment

    • neur0maniak

      #3
      Re: Unable to load dynamic library './php_mysql.dll'

      Nancy wrote:[color=blue]
      > Hi,
      >
      > When I start my PC(winXP Pro), it always says: Unknown(): Unable
      > toload dynamic library './php_msql.dll' - The specified module could
      > not be found.
      >
      > Then my Apache servre starts, load php module and works well.
      > I copied php_msql.dll to my system32 directory. Who knows what's
      > wrong? Thanks a lot?
      >
      > Nancy[/color]

      You may need to set your "extensions_dir " in your php.ini
      PHP searches for the file before including it, so adding it to your
      system32 folder wouldn't make a difference, because PHP only searches
      the extensions_dir. Normally in php.ini it is the same folder as PHP.exe

      Comment

      • Chung Leong

        #4
        Re: Unable to load dynamic library './php_mysql.dll'

        "Nancy" <wxling3@hotmai l.com> wrote in message
        news:cf2f3693.0 407210635.38dd3 bde@posting.goo gle.com...[color=blue]
        > Hi,
        >
        > When I start my PC(winXP Pro), it always says: Unknown(): Unable
        > toload dynamic library './php_msql.dll' - The specified module could
        > not be found.
        >
        > Then my Apache servre starts, load php module and works well.
        > I copied php_msql.dll to my system32 directory. Who knows what's
        > wrong? Thanks a lot?
        >
        > Nancy[/color]

        Got IIS running on your computer, perhaps?


        Comment

        • D_Angle

          #5
          Re: Unable to load dynamic library './php_mysql.dll'

          If you are using windows try copying "libmysql.d ll" to windows/system32/
          folder! this helped me :) This is documented in the install manual but is a
          must!!!
          "Chung Leong" <chernyshevsky@ hotmail.com> wrote in message
          news:6NqdnUbpzI eNmmLd4p2dnA@co mcast.com...[color=blue]
          > "Nancy" <wxling3@hotmai l.com> wrote in message
          > news:cf2f3693.0 407210635.38dd3 bde@posting.goo gle.com...[color=green]
          > > Hi,
          > >
          > > When I start my PC(winXP Pro), it always says: Unknown(): Unable
          > > toload dynamic library './php_msql.dll' - The specified module could
          > > not be found.
          > >
          > > Then my Apache servre starts, load php module and works well.
          > > I copied php_msql.dll to my system32 directory. Who knows what's
          > > wrong? Thanks a lot?
          > >
          > > Nancy[/color]
          >
          > Got IIS running on your computer, perhaps?
          >
          >[/color]


          Comment

          • Nancy

            #6
            Re: Unable to load dynamic library './php_mysql.dll'

            Hi,
            I am sorry, it doesn't work. The unable to load file is
            php_msql.dll, not php_mysql.dll or php_mssql.dll. I am not sure this
            file means MySql or MS SQL.
            Thanks.

            Nancy
            "D_Angle" <gabbe@mindless .com> wrote in message news:<F_aMc.584 $52.135467520@n ews.telia.no>.. .[color=blue]
            > If you are using windows try copying "libmysql.d ll" to windows/system32/
            > folder! this helped me :) This is documented in the install manual but is a
            > must!!!
            > "Chung Leong" <chernyshevsky@ hotmail.com> wrote in message
            > news:6NqdnUbpzI eNmmLd4p2dnA@co mcast.com...[color=green]
            > > "Nancy" <wxling3@hotmai l.com> wrote in message
            > > news:cf2f3693.0 407210635.38dd3 bde@posting.goo gle.com...[color=darkred]
            > > > Hi,
            > > >
            > > > When I start my PC(winXP Pro), it always says: Unknown(): Unable
            > > > toload dynamic library './php_msql.dll' - The specified module could
            > > > not be found.
            > > >
            > > > Then my Apache servre starts, load php module and works well.
            > > > I copied php_msql.dll to my system32 directory. Who knows what's
            > > > wrong? Thanks a lot?
            > > >
            > > > Nancy[/color]
            > >
            > > Got IIS running on your computer, perhaps?
            > >
            > >[/color][/color]

            Comment

            • Nancy

              #7
              Re: Unable to load dynamic library './php_mysql.dll'

              Hi,
              I have my IIS runing on my PC at same time. IIS uses 80 port and
              Apache uses 8080 port. ...?
              Thanks.

              Nancy

              "Chung Leong" <chernyshevsky@ hotmail.com> wrote in message news:<6NqdnUbpz IeNmmLd4p2dnA@c omcast.com>...[color=blue]
              > "Nancy" <wxling3@hotmai l.com> wrote in message
              > news:cf2f3693.0 407210635.38dd3 bde@posting.goo gle.com...[color=green]
              > > Hi,
              > >
              > > When I start my PC(winXP Pro), it always says: Unknown(): Unable
              > > toload dynamic library './php_msql.dll' - The specified module could
              > > not be found.
              > >
              > > Then my Apache servre starts, load php module and works well.
              > > I copied php_msql.dll to my system32 directory. Who knows what's
              > > wrong? Thanks a lot?
              > >
              > > Nancy[/color]
              >
              > Got IIS running on your computer, perhaps?[/color]

              Comment

              • Nancy

                #8
                Re: Unable to load dynamic library './php_mysql.dll'

                Hi,
                It should be php_msql.dll

                Nancy

                Matthias Esken <muelleimer2004 nospam@usenetve rwaltung.org> wrote in message news:<cdmbt8.1m c.1@usenet.eske n.de>...[color=blue]
                > Nancy wrote:
                >[color=green]
                > > When I start my PC(winXP Pro), it always says: Unknown(): Unable
                > > toload dynamic library './php_msql.dll' - The specified module could
                > > not be found.[/color]
                >
                > Are you talking about msql or mysql? Here you say msql, the subject says
                > mysql.
                >
                > Regards,
                > Matthias[/color]

                Comment

                • Nancy

                  #9
                  Re: Unable to load dynamic library './php_mysql.dll'

                  Hi,
                  I don't know how to change this part, but I tried many ways, let
                  extensions_dir = "./system32" ; my php_msql.dll in this directory
                  extensions_dir = "c:/system32"
                  extensions_dir = "c:/php"
                  ...

                  The strange thing is after showing two times this error message, my
                  Apache server starts and load php module, python module, mod_python,
                  works very well.
                  So what's the problem?
                  Thanks a lot.

                  Nancy

                  neur0maniak <usenet@neur0ma niak.co.uk> wrote in message news:<40fea145$ 0$25135$ed2619e c@ptn-nntp-reader01.plus.n et>...[color=blue]
                  > Nancy wrote:[color=green]
                  > > Hi,
                  > >
                  > > When I start my PC(winXP Pro), it always says: Unknown(): Unable
                  > > toload dynamic library './php_msql.dll' - The specified module could
                  > > not be found.
                  > >
                  > > Then my Apache servre starts, load php module and works well.
                  > > I copied php_msql.dll to my system32 directory. Who knows what's
                  > > wrong? Thanks a lot?
                  > >
                  > > Nancy[/color]
                  >
                  > You may need to set your "extensions_dir " in your php.ini
                  > PHP searches for the file before including it, so adding it to your
                  > system32 folder wouldn't make a difference, because PHP only searches
                  > the extensions_dir. Normally in php.ini it is the same folder as PHP.exe[/color]

                  Comment

                  • Andy Hassall

                    #10
                    Re: Unable to load dynamic library './php_mysql.dll'

                    On 24 Jul 2004 07:18:06 -0700, wxling3@hotmail .com (Nancy) wrote:
                    [color=blue]
                    > I don't know how to change this part, but I tried many ways, let
                    > extensions_dir = "./system32" ; my php_msql.dll in this directory[/color]

                    Does that exist? '.' is 'current directory' so depends on context at
                    runtime...
                    [color=blue]
                    > extensions_dir = "c:/system32"[/color]

                    Does that exist?
                    [color=blue]
                    > extensions_dir = "c:/php"[/color]

                    Is the file actually in any of those directories?

                    Typically it's c:/php/extensions.

                    --
                    Andy Hassall <andy@andyh.co. uk> / Space: disk usage analysis tool
                    http://www.andyh.co.uk / http://www.andyhsoftware.co.uk/space

                    Comment

                    • Nancy

                      #11
                      Re: Unable to load dynamic library './php_mysql.dll'

                      Hi,[color=blue][color=green]
                      > > I don't know how to change this part, but I tried many ways, let
                      > > extensions_dir = "./system32" ; my php_msql.dll in this directory[/color]
                      >
                      > Does that exist? '.' is 'current directory' so depends on context at
                      > runtime...[/color]
                      Yes, there exists '.'.[color=blue]
                      >[color=green]
                      > > extensions_dir = "c:/system32"[/color]
                      >
                      > Does that exist?[/color]
                      Sorry, it should be
                      extension_dir = "c:/windows/system32"[color=blue]
                      >[color=green]
                      > > extensions_dir = "c:/php"[/color]
                      >
                      > Is the file actually in any of those directories?[/color]
                      Yes, most *.dll files in "c:/php/sapi"
                      So I changed it to
                      extension_dir = "c:\php\sap i"

                      However, it still doesn't work. Apache runs normally, just show
                      error message, so maybe I should forget it. I just wonder where is
                      wrong.

                      Nancy[color=blue]
                      >
                      > Typically it's c:/php/extensions.[/color]

                      Comment

                      • Andy Hassall

                        #12
                        Re: Unable to load dynamic library './php_mysql.dll'

                        On 24 Jul 2004 13:36:48 -0700, wxling3@hotmail .com (Nancy) wrote:
                        [color=blue]
                        >Hi,[color=green][color=darkred]
                        >> > I don't know how to change this part, but I tried many ways, let
                        >> > extensions_dir = "./system32" ; my php_msql.dll in this directory[/color]
                        >>
                        >> Does that exist? '.' is 'current directory' so depends on context at
                        >> runtime...[/color]
                        > Yes, there exists '.'.[/color]

                        There exist many '.' directories, since it stands for current directory.
                        Current directory depends on context, so it's not a good idea to use that.
                        [color=blue][color=green][color=darkred]
                        >> > extensions_dir = "c:/system32"[/color]
                        >>
                        >> Does that exist?[/color]
                        > Sorry, it should be
                        > extension_dir = "c:/windows/system32"[/color]

                        For what reason did you set it to that?
                        [color=blue][color=green][color=darkred]
                        >> > extensions_dir = "c:/php"[/color]
                        >>
                        >> Is the file actually in any of those directories?[/color]
                        > Yes,[/color]

                        In which one?
                        [color=blue]
                        >most *.dll files in "c:/php/sapi"[/color]

                        That wasn't on the list you posted, so that would make the answer "No"... ?
                        [color=blue]
                        > So I changed it to
                        > extension_dir = "c:\php\sap i"[/color]

                        Why did you set it to that? There's no extension DLLs in there unless you've
                        seriously messed with your install.
                        [color=blue]
                        > However, it still doesn't work. Apache runs normally, just show
                        >error message, so maybe I should forget it. I just wonder where is
                        >wrong.[/color]

                        If you're loading the php_mysql.dll or php_msql.dll or whichever one you are
                        actually trying to load, presumably it is to get access to the functions it
                        provides. If that error appears, none of the functions will work, so it's
                        hardly running "normally".

                        If you actually don't need those functions, then comment out the line in
                        php.ini that's trying to load it.
                        [color=blue]
                        >Nancy[color=green]
                        >>
                        >> Typically it's c:/php/extensions.[/color][/color]

                        Have you tried setting it to c:/php/extensions yet? That's where it's supposed
                        to be.

                        --
                        Andy Hassall <andy@andyh.co. uk> / Space: disk usage analysis tool
                        http://www.andyh.co.uk / http://www.andyhsoftware.co.uk/space

                        Comment

                        • Nancy

                          #13
                          Re: Unable to load dynamic library './php_mysql.dll'

                          Hi,
                          When I changed it to
                          wxtersions_dir = "c:/php"
                          It shows new error
                          "Unable to load dynamic library 'c:\php4\php_ms ql.dll'..."
                          and,
                          "The requested operation has failed."

                          What's difference between php and php4?

                          Thanks a lot.
                          Nancy
                          Andy Hassall <andy@andyh.co. uk> wrote in message news:<l2t4g09nc dfrvtat5tau5t1n 4lo7cuuvjc@4ax. com>...[color=blue]
                          > On 24 Jul 2004 07:18:06 -0700, wxling3@hotmail .com (Nancy) wrote:
                          >[color=green]
                          > > I don't know how to change this part, but I tried many ways, let
                          > > extensions_dir = "./system32" ; my php_msql.dll in this directory[/color]
                          >
                          > Does that exist? '.' is 'current directory' so depends on context at
                          > runtime...
                          >[color=green]
                          > > extensions_dir = "c:/system32"[/color]
                          >
                          > Does that exist?
                          >[color=green]
                          > > extensions_dir = "c:/php"[/color]
                          >
                          > Is the file actually in any of those directories?
                          >
                          > Typically it's c:/php/extensions.[/color]

                          Comment

                          • Andy Hassall

                            #14
                            Re: Unable to load dynamic library './php_mysql.dll'

                            On 24 Jul 2004 15:49:53 -0700, wxling3@hotmail .com (Nancy) wrote:
                            [color=blue]
                            >Andy Hassall <andy@andyh.co. uk> wrote in message news:<l2t4g09nc dfrvtat5tau5t1n 4lo7cuuvjc@4ax. com>...[color=green]
                            >> On 24 Jul 2004 07:18:06 -0700, wxling3@hotmail .com (Nancy) wrote:
                            >>
                            >> Is the file actually in any of those directories?
                            >> Typically it's c:/php/extensions.[/color]
                            >
                            > When I changed it to
                            > wxtersions_dir = "c:/php"[/color]

                            What's "wxtersions_dir "? Why are you setting it to "c:/php" ?
                            [color=blue]
                            > It shows new error
                            > "Unable to load dynamic library 'c:\php4\php_ms ql.dll'..."
                            > and,
                            > "The requested operation has failed."
                            >
                            > What's difference between php and php4?[/color]

                            It indicates that what you've posted has no relation to what you've actually
                            done?

                            --
                            Andy Hassall <andy@andyh.co. uk> / Space: disk usage analysis tool
                            http://www.andyh.co.uk / http://www.andyhsoftware.co.uk/space

                            Comment

                            • Nancy

                              #15
                              Re: Unable to load dynamic library './php_mysql.dll'

                              > > When I changed it to[color=blue][color=green]
                              > > wxtersions_dir = "c:/php"[/color]
                              >
                              > What's "wxtersions_dir "?[/color]
                              I am very sorry. It should be
                              "extension_ dir = "c:\php""
                              [color=blue]
                              > Why are you setting it to "c:/php" ?[/color]
                              Since you suggested me to set the extension_dir to c:\php and my
                              php.exe in this directory and *.dll files in c:\php\sapi (in fact it
                              is c:/php/sapi ).

                              [color=blue]
                              >[color=green]
                              > > It shows new error
                              > > "Unable to load dynamic library 'c:\php4\php_ms ql.dll'..."
                              > > and,
                              > > "The requested operation has failed."
                              > >
                              > > What's difference between php and php4?[/color]
                              >
                              > It indicates that what you've posted has no relation to what you've actually
                              > done?[/color]

                              Er,... this new error message appears because I changed
                              extension_dir of php.ini.

                              Thanks a lot.

                              Nancy

                              Comment

                              Working...