faqts : Computers : Programming : Languages : PHP : Installation and Setup : Modules

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

7 of 14 people (50%) answered Yes
Recently 5 of 10 people (50%) answered Yes

Entry

Unable to load dynamic link library "module name" Using Windows 2K
dymanic link library libmycrypt.dll not in path.....etc. Using Windows 2K

Oct 8th, 2004 11:02
Javier Chapa,


Steps taken:

Copied the modules I wanted to use to the following directories:
c:\apache\php //location of my php install
c:\winnt\system32 // Systemroot directory which is in the SystemPath
                  // You are normally instructed to reboot when locating
                  // Your files into the System32 directory

The above did not work by the way.

Do the following: 

First add to your path statement the path to your extensions directory.
How do you do that in Windows 2K, Well right click on my computer, 
Click properties,Click Advanced tab, Click Environment Variables.
In the System Variables Box scroll down to Path do not select ;Path 
which is on the top of the list. Next double click path. Type the path 
to your extensions folder in my case C:\apache\php\extensions. Click OK.
Now to set the environment PHPRC path, In the System Variables box 
Click NEW, For variable name type PHPRC for Variable Value put the path 
to php directory for me it was c:\apache\php. Click Ok

Edit your php.ini file where extensions_dir= your directory where your 
extensions are located in my case :

extensions_dir=c:\apache\php\extensions

Do not forget to uncomment the modules you want loaded. 

UPDATE:
Well I tried to uncomment the modules to find that the error was still 
generating. What I did find out was that if you copy the modules you 
want to use into the System32 directory and then reboot even though the 
modules are commented out they will still load because you copied the 
files into the System32 path. I still had problems with the error 
messages. It was not until I added the path to my extensions to the 
PATH statement in the Environment Variables-System Variables that the 
errors went away.



Save php.ini and reboot your computer.

Those annoying errors should go away. The problem for me was that no 
matter how many times I changed the extensions_dir= following 
everyones' example I would still get the unable to load error. It was 
not until I added the path to my extensions in the Environment 
variables that the problems went away. This may also work for PHP5.0 
and Apache 1.3.X problem I was having with the undefined function 
mysql_connect error.

Hope this helps.

Chapa