Problem With IIS5 for Load extensions

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
ar002
Forum Newbie
Posts: 5
Joined: Mon Aug 26, 2002 7:33 pm
Location: Colombia-Barranquilla

Problem With IIS5 for Load extensions

Post 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
User avatar
mikeq
Forum Regular
Posts: 512
Joined: Fri May 03, 2002 3:33 am
Location: Edinburgh, Scotland

Post by mikeq »

Try it without the ending \ on your extensions directory

extension_dir = c:\WINNT\system32
User avatar
Skywalker
Forum Contributor
Posts: 117
Joined: Thu Aug 29, 2002 3:33 am
Location: The Netherlands

Post 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 :D
ar002
Forum Newbie
Posts: 5
Joined: Mon Aug 26, 2002 7:33 pm
Location: Colombia-Barranquilla

Do not result your answer

Post 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
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

Have you tried removing the trailing slash from the folder name as mikeq suggested, ie:

Code: Select all

extension_dir = c:\php-4.2.2
instead of

Code: Select all

extension_dir = c:\php-4.2.2\
Mac
Last edited by twigletmac on Wed Sep 04, 2002 9:45 am, edited 2 times in total.
User avatar
Takuma
Forum Regular
Posts: 931
Joined: Sun Aug 04, 2002 10:24 am
Location: UK
Contact:

Post by Takuma »

I think you've fotgot a slash on the second one... :lol:
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post 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]
ar002
Forum Newbie
Posts: 5
Joined: Mon Aug 26, 2002 7:33 pm
Location: Colombia-Barranquilla

about Slash

Post 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
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

use / instead of \

extension_dir = c:/WINNT/system32
or
extension_dir = c:/php-4.2.2/
User avatar
EvilWalrus
Site Admin
Posts: 209
Joined: Thu Apr 18, 2002 3:21 pm
Location: Springmont, PA USA

Post 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

Code: Select all

extension_dir =
..would cause the files to be read from the \system32 path... just a theory.
hedge
Forum Contributor
Posts: 234
Joined: Fri Aug 30, 2002 10:19 am
Location: Calgary, AB, Canada

Post by hedge »

Hmmm... have you installed the oracle client?
ar002
Forum Newbie
Posts: 5
Joined: Mon Aug 26, 2002 7:33 pm
Location: Colombia-Barranquilla

With ODBC work Good

Post 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
User avatar
mikeq
Forum Regular
Posts: 512
Joined: Fri May 03, 2002 3:33 am
Location: Edinburgh, Scotland

Post 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)?
:?:
User avatar
Skywalker
Forum Contributor
Posts: 117
Joined: Thu Aug 29, 2002 3:33 am
Location: The Netherlands

Post 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.
Post Reply