By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,441 Members | 1,785 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,441 IT Pros & Developers. It's quick & easy.

Error while loading DLLs at startup

P: n/a
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\extensions/php_curl.dll"

In php.ini I had:
extension_dir=c:\php\extensions

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

Did not help. I appreciate your assistance.
Jul 17 '05 #1
Share this Question
Share on Google+
6 Replies


P: n/a
Xerxes wrote:
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\extensions/php_curl.dll"

In php.ini I had:
extension_dir=c:\php\extensions

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

Did not help. I appreciate your assistance.


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
windowsinstaller 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
Jul 17 '05 #2

P: n/a
Erwin Moller <si******************************************@spam yourself.com> wrote in message news:<41*********************@news.xs4all.nl>...
Xerxes wrote:
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\extensions/php_curl.dll"

In php.ini I had:
extension_dir=c:\php\extensions

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

Did not help. I appreciate your assistance.


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


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\extensions/php_curl.dll" which is using mixed types of
slashes. I changes the extension_dir from c:\php\extensions to
c:/php/extensions but no change, I still get the error message "unable
to load dynamic library c:/php/extensions/php_curl.dll"
Jul 17 '05 #3

P: n/a
In article <b3**************************@posting.google.com >, Xerxes wrote:
Erwin Moller <si******************************************@spam yourself.com> wrote in message news:<41*********************@news.xs4all.nl>...
slashes. I changes the extension_dir from c:\php\extensions to
c:/php/extensions but no change, I still get the error message "unable
to load dynamic library c:/php/extensions/php_curl.dll"

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>
Jul 17 '05 #4

P: n/a
Tim Van Wassenhove <eu**@pi.be> wrote in message news:<2t*************@uni-berlin.de>...
In article <b3**************************@posting.google.com >, Xerxes wrote:
Erwin Moller <si******************************************@spam yourself.com> wrote in message news:<41*********************@news.xs4all.nl>...
slashes. I changes the extension_dir from c:\php\extensions to
c:/php/extensions but no change, I still get the error message "unable
to load dynamic library c:/php/extensions/php_curl.dll"

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


That was one of the things I tried in the begining but it did not help.
Jul 17 '05 #5

P: n/a
Xerxes wrote:
at startup I get three similar error messages about three DLLs:
php_sqlite.dll, php_curl.dll and php_gd2.dll.

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\SYSTEM32 or C:\WINDOWS\SYSTEM)

</quote>
--
USENET would be a better place if everybody read:
http://www.expita.com/nomime.html
http://www.netmeister.org/news/learn2quote2.html
http://www.catb.org/~esr/faqs/smart-questions.html
Jul 17 '05 #6

P: n/a
On 14 Oct 2004 14:39:30 GMT, Pedro Graca <he****@hotpop.com> wrote:
Xerxes wrote:
at startup I get three similar error messages about three DLLs:
php_sqlite.dll, php_curl.dll and php_gd2.dll.


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\SYSTEM32 or C:\WINDOWS\SYSTEM)

</quote>


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 / <an**@andyh.co.uk> / <http://www.andyh.co.uk>
<http://www.andyhsoftware.co.uk/space> Space: disk usage analysis tool
Jul 17 '05 #7

This discussion thread is closed

Replies have been disabled for this discussion.