Error while loading DLLs at startup

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

    Error while loading DLLs at startup

    Hi,
    at startup I get three similar error messages about three DLLs:
    php_sqlite.dll, php_curl.dll and php_gd2.dll.
    I searched the group for similar problem but the solutions proposed
    there did not help.
    - I copied the DLLs to Windows directory
    - I checked php.ini to make sure the extensions were uncommented and
    there was an extension_dir directive.

    One thing I had noticed in the error messages was the direction of
    slashes:
    "Unable to load dynamic library c:\php\extensio ns/php_curl.dll"

    In php.ini I had:
    extension_dir=c :\php\extension s

    I changed it to:
    extension_dir=c :/php/extensions

    Did not help. I appreciate your assistance.
  • Erwin Moller

    #2
    Re: Error while loading DLLs at startup

    Xerxes wrote:
    [color=blue]
    > Hi,
    > at startup I get three similar error messages about three DLLs:
    > php_sqlite.dll, php_curl.dll and php_gd2.dll.
    > I searched the group for similar problem but the solutions proposed
    > there did not help.
    > - I copied the DLLs to Windows directory
    > - I checked php.ini to make sure the extensions were uncommented and
    > there was an extension_dir directive.
    >
    > One thing I had noticed in the error messages was the direction of
    > slashes:
    > "Unable to load dynamic library c:\php\extensio ns/php_curl.dll"
    >
    > In php.ini I had:
    > extension_dir=c :\php\extension s
    >
    > I changed it to:
    > extension_dir=c :/php/extensions
    >
    > Did not help. I appreciate your assistance.[/color]

    Hi,

    Windows uses \ instead of / so your original setting sounds ok to me.
    Ano other thing that can screw up your installation is the use of the
    windowsinstalle r from PHP-site.
    I am unsure if these problems still exist, but it used to be like this:
    You can install PHP in 2 ways on W$ machine:
    1) with the installer
    2) as a CGI-module you configure yourself.

    If you choose 1, you CANNOT add dll's!
    That is bad, isn't it?

    So to be on the safe side: Install PHP as a CGI-module. Just follow the few
    simple steps and you are ready to go.
    It wouldn't suprise me if that solves your problem.

    Again: I am uncertain if these problems with the installer still exists.

    Regards,
    Erwin Moller

    Comment

    • Xerxes

      #3
      Re: Error while loading DLLs at startup

      Erwin Moller <since_humans_r ead_this_I_am_s pammed_too_much @spamyourself.c om> wrote in message news:<416bfc32$ 0$559$e4fe514c@ news.xs4all.nl> ...[color=blue]
      > Xerxes wrote:
      >[color=green]
      > > Hi,
      > > at startup I get three similar error messages about three DLLs:
      > > php_sqlite.dll, php_curl.dll and php_gd2.dll.
      > > I searched the group for similar problem but the solutions proposed
      > > there did not help.
      > > - I copied the DLLs to Windows directory
      > > - I checked php.ini to make sure the extensions were uncommented and
      > > there was an extension_dir directive.
      > >
      > > One thing I had noticed in the error messages was the direction of
      > > slashes:
      > > "Unable to load dynamic library c:\php\extensio ns/php_curl.dll"
      > >
      > > In php.ini I had:
      > > extension_dir=c :\php\extension s
      > >
      > > I changed it to:
      > > extension_dir=c :/php/extensions
      > >
      > > Did not help. I appreciate your assistance.[/color]
      >
      > Hi,
      >
      > Windows uses \ instead of / so your original setting sounds ok to me.
      > Ano other thing that can screw up your installation is the use of the
      > windowsinstalle r from PHP-site.
      > I am unsure if these problems still exist, but it used to be like this:
      > You can install PHP in 2 ways on W$ machine:
      > 1) with the installer
      > 2) as a CGI-module you configure yourself.
      >
      > If you choose 1, you CANNOT add dll's!
      > That is bad, isn't it?
      >
      > So to be on the safe side: Install PHP as a CGI-module. Just follow the few
      > simple steps and you are ready to go.
      > It wouldn't suprise me if that solves your problem.
      >
      > Again: I am uncertain if these problems with the installer still exists.
      >
      > Regards,
      > Erwin Moller[/color]

      Thanks Erwin,
      I did install PHP using the installer about a year ago. I had some
      problems installing it manually and I heard about this utility that
      does it for you. So it could very well be the installer that has
      screwed things up.
      As for the slashes, the original error message looked like
      "c:\php\extensi ons/php_curl.dll" which is using mixed types of
      slashes. I changes the extension_dir from c:\php\extensio ns to
      c:/php/extensions but no change, I still get the error message "unable
      to load dynamic library c:/php/extensions/php_curl.dll"

      Comment

      • Tim Van Wassenhove

        #4
        Re: Error while loading DLLs at startup

        In article <b3529332.04101 31139.2b33faa4@ posting.google. com>, Xerxes wrote:[color=blue]
        > Erwin Moller <since_humans_r ead_this_I_am_s pammed_too_much @spamyourself.c om> wrote in message news:<416bfc32$ 0$559$e4fe514c@ news.xs4all.nl> ...
        > slashes. I changes the extension_dir from c:\php\extensio ns to
        > c:/php/extensions but no change, I still get the error message "unable
        > to load dynamic library c:/php/extensions/php_curl.dll"[/color]


        For me it helped to put the dlls in php dir in my c:/windows

        --
        Met vriendelijke groeten,
        Tim Van Wassenhove <http://www.timvw.info>

        Comment

        • Xerxes

          #5
          Re: Error while loading DLLs at startup

          Tim Van Wassenhove <euki@pi.be> wrote in message news:<2t5gc1F1r qp8gU1@uni-berlin.de>...[color=blue]
          > In article <b3529332.04101 31139.2b33faa4@ posting.google. com>, Xerxes wrote:[color=green]
          > > Erwin Moller <since_humans_r ead_this_I_am_s pammed_too_much @spamyourself.c om> wrote in message news:<416bfc32$ 0$559$e4fe514c@ news.xs4all.nl> ...
          > > slashes. I changes the extension_dir from c:\php\extensio ns to
          > > c:/php/extensions but no change, I still get the error message "unable
          > > to load dynamic library c:/php/extensions/php_curl.dll"[/color]
          >
          >
          > For me it helped to put the dlls in php dir in my c:/windows[/color]

          That was one of the things I tried in the begining but it did not help.

          Comment

          • Pedro Graca

            #6
            Re: Error while loading DLLs at startup

            Xerxes wrote:[color=blue]
            > at startup I get three similar error messages about three DLLs:
            > php_sqlite.dll, php_curl.dll and php_gd2.dll.[/color]


            Maybe sqlite and gd2 need the same thing as curl:

            <quote src="http://www.php.net/manual/en/ref.curl.php">

            Note to Win32 Users: In order to enable this module on a Windows
            environment, you must copy libeay32.dll and ssleay32.dll from the DLL
            folder of the PHP/Win32 binary package to the SYSTEM folder of your
            Windows machine. (Ex: C:\WINNT\SYSTEM 32 or C:\WINDOWS\SYST EM)

            </quote>


            --
            USENET would be a better place if everybody read:



            Comment

            • Andy Hassall

              #7
              Re: Error while loading DLLs at startup

              On 14 Oct 2004 14:39:30 GMT, Pedro Graca <hexkid@hotpop. com> wrote:
              [color=blue]
              >Xerxes wrote:[color=green]
              >> at startup I get three similar error messages about three DLLs:
              >> php_sqlite.dll, php_curl.dll and php_gd2.dll.[/color]
              >
              >Maybe sqlite and gd2 need the same thing as curl:
              >
              ><quote src="http://www.php.net/manual/en/ref.curl.php">
              >
              >Note to Win32 Users: In order to enable this module on a Windows
              >environment, you must copy libeay32.dll and ssleay32.dll from the DLL
              >folder of the PHP/Win32 binary package to the SYSTEM folder of your
              >Windows machine. (Ex: C:\WINNT\SYSTEM 32 or C:\WINDOWS\SYST EM)
              >
              ></quote>[/color]

              That's not really good advice - you never need to copy anything to the Windows
              system directories. That's what the PATH environment variable is for.

              Bear in mind that the environment, including PATH, that your user sees may not
              be the same as that the web server sees, which can cause confusion. Note also
              that since a process inherits the environment of its parent, and web servers
              are typically children of SERVICES.EXE, you may be hard pushed to get a web
              server to see a change in system environment variables without rebooting the
              machine - shutting down SERVICES.EXE is not really an option.

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

              Comment

              Working...