Page 1 of 1
Problem With IIS5 for Load extensions
Posted: Tue Sep 03, 2002 8:12 pm
by ar002
Hi,
excuse my english.
I try to load a extension in php4.2.2. (php_oci8.dll) in IIS5 but the Web server is hang. When i see in the event viewer i read this message :
Application popup: Warning : Unable to load dynamic library 'c:\winnt\system32\php_oci8.dll' - The specified module could not be found.
In my php.ini file i setup the extension_dir :
extension_dir = c:\WINNT\system32\
and
extension=php_oci8.dll
Note : This dll i copied in the directory c:\winnt\system32
What i have to do for the iis5 load this module?
thanks
alex rincon
Posted: Wed Sep 04, 2002 3:42 am
by mikeq
Try it without the ending \ on your extensions directory
extension_dir = c:\WINNT\system32
Posted: Wed Sep 04, 2002 4:07 am
by Skywalker
Set you extension_dir, to wher you installed PHP or extracted PHP
that could be c:/PHP
Did you allready copied the DLL's
as axample: installed in dir C:/PHP, then copy all the C:/PHP/DLL's to C:/PHP
Copy the DLL's in map C:/PHP/DLL's in to the map C:/PHP it should be clear now.
and set your Extension_DIR to C:/PHP
Good luck

Do not result your answer
Posted: Wed Sep 04, 2002 9:32 am
by ar002
Hi Skywalker,
I tried to set this dll files in the root directory from php but do not result ,
now the event viewer show :
*************************************************************
Application popup: Warning : Unable to load dynamic library 'c:\php-4.2.2\php_oci8.dll' - The specified module could not be found.
*************************************************************
extension_dir = c:\php-4.2.2\
In this directory i copied the dll files of the modules.
The question now is :
Who i load a module if i am using Internet Information Serve 5 + PHP 4.2.2.?
I law the documentation of the product and follow all the described steps here, but did not work. that I must do?
thanks
alex rincon
Posted: Wed Sep 04, 2002 9:41 am
by twigletmac
Have you tried removing the trailing slash from the folder name as mikeq suggested, ie:
instead of
Mac
Posted: Wed Sep 04, 2002 9:43 am
by Takuma
I think you've fotgot a slash on the second one...

Posted: Wed Sep 04, 2002 9:46 am
by twigletmac
Nope, the slashes are all there when I edit the text box, I should've used [syntax=php]tags instead of[/syntax][syntax=php]tags 'cause the[/syntax][syntax=php]tags don't display the backslashes.
Changed the post above now.
Mac[/syntax]
about Slash
Posted: Wed Sep 04, 2002 10:07 am
by ar002
Hi twigletmac
I Tried all , within slash , without slash and nothing work.
the 2 case already i tried.
when i wrote :
extension_dir = c:\php-4.2.2
the event viewer show :
Application popup: Warning : Unable to load dynamic library 'c:\php-4.2.2/php_oci8.dll' - The specified module could not be found.
remark the slash "/" between c:\php-4.2.2 and php_oci8.dll. This to do understand to me than the slash correct is the backslash : "\". but noting work.
what i have to do?.
thanks
alex rincon
Posted: Wed Sep 04, 2002 12:03 pm
by volka
use / instead of \
extension_dir = c:/WINNT/system32
or
extension_dir = c:/php-4.2.2/
Posted: Wed Sep 04, 2002 12:04 pm
by EvilWalrus
i dunno if PHP defaults to its own extension directory if the extension directory setting isn't set, but \system32 is in your GLOBAL environment path, so, in theory, leaving
..would cause the files to be read from the \system32 path... just a theory.
Posted: Wed Sep 04, 2002 12:37 pm
by hedge
Hmmm... have you installed the oracle client?
With ODBC work Good
Posted: Wed Sep 04, 2002 1:05 pm
by ar002
Hi,
The case rise when try to load anything module. In this case i am tring to load the oracle module, but with other module the problem also appear.
Yes the oracle client is installed and work good, because i have a program that use the ODBC from PHP.
thanks for the help from all us.
Alex Rincon
Posted: Wed Sep 04, 2002 5:19 pm
by mikeq
Okay my setup is (and this works)
c:\php\extensions\ - this directory has all the php extension dll's in it
In my php.ini
extension_dir = c:\php\extensions (there is no slash at the end)
Are all the dll's in the one directory?
Is your php.ini file in c:\winnt (on NT) or c:\windows (on Windows x)?

Posted: Thu Sep 05, 2002 2:05 am
by Skywalker
Strange, on my compter it just worked fine when I loaded just the DLL's int2 the wroot of PHP.
I loaded all the extension dll's to my Win wwwroot. and plased them ther, gives no problem at all. ?
But it seams that the problem almoste has been solved.