473,782 Members | 2,436 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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\syst em32\ 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 2450
-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\syst em32\ 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\ph p_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\syst em32\ 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.u k :: 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
1458
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 library 'c:\php\extensions\php_imap.dll". Uno de los dispositivos vinculados al sistema no funciona (Translation: one of the devices attached to the system doesn't work).
2
2533
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 could not be found. I have installed PH 5.0.2 on a XP-SP2-box with IIS. PHP works fine (if I uncomment the php_mysql.dll-line in
1
3292
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 phpMyadmin from zipped binaries. The only thing irregular thing I’m conscious of doing is unpack phpMyadmin, files and directories, directly into \Apache2\htdocs, because that was the only place I knew I could reach with the <http://localhost>...
1
7309
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 extension=php_gd2.dll extension=php_mbstring.dll
2
6408
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 to happen we had to change the context in which asp.net runs from machine to SYSTEM by modifying the machine.config file. Under Windows 2003 no matter how asp.net is set to run as either machine or system. I get the following error: ...
1
6269
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, cause: 1. In the php.ini file I commented out the line 'extension=php_mysql.dll' and properly set the path to extension directory: extension_dir = "c:\php\ext\" 2. MySQL is running
1
6114
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 <?php phpinfo(); ?> command which prints out the current settings of the php install. I then installed mySQL complete setup (V5) and ran the server instance
1
2848
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 with it. So, on Redhat, we have two versions of PHP - Apache uses 4.3.9, there's also a 4.4.2 that is default from command-line. 4.3.9 was installed by RPM, 4.4.2 was built from source. I can get mysql.so loaded and working fine in 4.4.2, but...
2
12799
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 help me.
0
9641
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9480
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10080
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8968
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7494
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6735
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5511
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4044
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2875
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.