473,395 Members | 1,556 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Unable to load module... 2 Extension Directories possible? (WINDOWS)

I had the PHP Startup: Unable to load dynamic library
'C:\php\ext\php_json.dll' - The specified module could not be found.

I finally figured out the error. The problem is that the DLL relies on
several other DLLs found in the C:\WINDOWS\system32\ folder.

Now, the problem is this... I do not want to copy 20+ extensions to my
system32 folder, nor do I want to copy 50+ DLLs from my system32 to my
extension directory.

Does anyone know of a method to get around this? Something along the
lines of having it check both the extension directory and the system32
folder for the associated DLLs?

--
-Lost
Remove the extra words to reply by e-mail. Don't e-mail me. I am
kidding. No I am not.
Jun 3 '07 #1
2 2430
-Lost wrote:
I had the PHP Startup: Unable to load dynamic library
'C:\php\ext\php_json.dll' - The specified module could not be found.

I finally figured out the error. The problem is that the DLL relies on
several other DLLs found in the C:\WINDOWS\system32\ folder.

Now, the problem is this... I do not want to copy 20+ extensions to my
system32 folder, nor do I want to copy 50+ DLLs from my system32 to my
extension directory.

Does anyone know of a method to get around this? Something along the
lines of having it check both the extension directory and the system32
folder for the associated DLLs?
Dammit. It figures, you exhaust every possible example (or at least you
think you do/did) and then you request help only to find the answer
yourself moments later.

If anyone cares, the solution was to copy the DLL into both the
extension directory and the system32 directory.

That seems *really* weird to me, but it solved the problem.

--
-Lost
Remove the extra words to reply by e-mail. Don't e-mail me. I am
kidding. No I am not.
Jun 3 '07 #2
On Sun, 03 Jun 2007 18:40:32 -0400, -Lost <ma****************@techie.com>
wrote:
>I had the PHP Startup: Unable to load dynamic library
'C:\php\ext\php_json.dll' - The specified module could not be found.

I finally figured out the error. The problem is that the DLL relies on
several other DLLs found in the C:\WINDOWS\system32\ folder.

Now, the problem is this... I do not want to copy 20+ extensions to my
system32 folder, nor do I want to copy 50+ DLLs from my system32 to my
extension directory.

Does anyone know of a method to get around this? Something along the
lines of having it check both the extension directory and the system32
folder for the associated DLLs?
Extension DLLs all have to be in the same place, but any DLLs that *they* need
can be loaded from anywhere listed in the PATH environment variable (as seen by
the webserver).

The system32 directory is always on PATH, but is not a good place to put your
own DLLs. Pick a directory and put the DLLs in there, and add it to PATH.

--
Andy Hassall :: an**@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
Jun 3 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Alejandro Pedraza | last post by:
Greetings fellow programmers, I removed the ; before "extension=php_imap.dll" in php.ini, and when I start Apache 1.3 I get the following error message: Unknown():Unable to load dynamic...
2
by: R | last post by:
Hi. I have just reintalled my computer and with that; PHP. But.. I keep getting the error: PHP Startup: Unable to load dynamic library 'C:\PHP\modules\php_mysql.dll' - The specified module...
1
by: Kevin | last post by:
I posted this to the sourceforge phpMyAdmin ng, but there was a comment that it was properly a php question, so I'm posting it here. I'm on Windows XP, and have just installed Apache, php 5, and...
1
by: Oliver Spiesshofer | last post by:
Hi, I am trying to load the LDAP and the MCrypt module under WinXP and PHP Version 4.3.7. The strange thing is that I have several other modules that work just fine: extension=php_bz2.dll...
2
by: Carlos G Benevides | last post by:
I have a ASP.Net web application that has two assemblies that run under com+. Under Windows 2000 the two assemblies are added to com+ automatically when instantiated from the web site. For this...
1
by: lithne | last post by:
Hi, when I try to open phpMyAdmin administration page I got this error: 'Cannot load mysql extension, please check your PHP configuration' I cannot sort out what's the source of the problem,...
1
by: marknewbery | last post by:
Hi, I have been trying to get a php, mySQL install to work and talk together on Windows XP SP2 with IIS. So far I installed and received a responce from php(V5 - manual install) though the ...
1
by: edfialk | last post by:
Hi all, I'm desperately trying to get a simple mysql connection working in php 4.3.9 and I think I have a doozy for you guys. First of all, I didn't set up ANY of this system, I'm just working...
2
by: mmr315 | last post by:
after installing php when i run php.exe it is showing that PHP Warning: Cannot load module 'pdo_mysql' because required module 'pdo' is not loaded in Unknown on line 0 what is this error,pls...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.