[email protected] Posted March 30, 2006 Share Posted March 30, 2006 Hi,With IIS, I keep getting a module load error for ssh2 during the a doc.php request (any php file).PHP Warning: PHP Startup: Unable to load dynamic library 'C:\PHP\ext\php_ssh2.dll' - The specified module could not be found. in Unknown on line 0 Some info as to my configuration:1) In C:\PHP\php.ini, I have:extension_dir="C:\PHP\ext";followed byextension=php_ssh2.dll2) The path set to include C:\PHP directory (truncated example below)PATH=C:\WINDOWS\system32;C:\WINDOWS; (cut) c:\php (cut) ;C:\Tools\exeHowever, I am unsure of:PATHEXT .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH3) C:\PHP\ext\php_ssh2.dll located appropriately in the correct location. (Shown below)C:\PHP\ext>dir Volume in drive C is Local Disk Volume Serial Number is XXXX-XXXX Directory of C:\PHP\ext03/29/2006 01:47 PM <DIR> .03/29/2006 01:47 PM <DIR> ..03/29/2006 04:00 PM 127,039 php_ssh2.dll 1 File(s) 127,039 bytes 2 Dir(s) 66,811,842,560 bytes freeC:\PHP\ext>4) Note: Tested with php_ssh2.dll in c:\WINDOWS\SYSTEM32 with same result.5) IUSR / Internet Guest User has full control (currently) to C:\PHP and sub-dirs (security hole?)6) Note: php.ini is working / being found (or I wouldn't get this error).7) Before adding this module (ssh2), PHP pages appeared to be working fine.Guesses: Either this error is a permissions issue, dependency or an IIS configuration issue.Summary: What are my issues in security, configuration and are there dependent packages? -=> SW Quote Link to comment https://forums.phpfreaks.com/topic/6212-unable-to-load-dynamic-library-cphpextphp_ssh2dll-the-specified-module-could-not-be-found/ Share on other sites More sharing options...
lead2gold Posted March 30, 2006 Share Posted March 30, 2006 This may or may not be your problem but never put this as your extension in the php.ini file:extension_dir="C:\PHP\ext"always specify the last slashextension_dir="C:\PHP\ext\"not saying that this is the problem, but its worth a try :)if that doesn't work try this:extension_dir="C:\\PHP\\ext\\" Quote Link to comment https://forums.phpfreaks.com/topic/6212-unable-to-load-dynamic-library-cphpextphp_ssh2dll-the-specified-module-could-not-be-found/#findComment-22434 Share on other sites More sharing options...
[email protected] Posted March 30, 2006 Author Share Posted March 30, 2006 [!--quoteo(post=360155:date=Mar 30 2006, 01:14 PM:name=lead2gold)--][div class=\'quotetop\']QUOTE(lead2gold @ Mar 30 2006, 01:14 PM) [snapback]360155[/snapback][/div][div class=\'quotemain\'][!--quotec--]This may or may not be your problem but never put this as your extension in the php.ini file:extension_dir="C:\PHP\ext"always specify the last slashextension_dir="C:\PHP\ext\"not saying that this is the problem, but its worth a try :)if that doesn't work try this:extension_dir="C:\\PHP\\ext\\"[/quote]Lead2gold,Thanks - Unsuccessfully, I tried both methods you suggested. I am sure the suggestions were tested because the latter suggestion yielded:PHP Warning: PHP Startup: Unable to load dynamic library 'C:\\PHP\\ext\\php_ssh2.dll' - The specified module could not be found. in Unknown on line 0 Note: Interestingly enough, the first suggestion, extension_dir="C:\PHP\ext\", did not change the original error. Again, I received:PHP Warning: PHP Startup: Unable to load dynamic library 'C:\PHP\ext\php_ssh2.dll' - The specified module could not be found. in Unknown on line 0 -=> SW Quote Link to comment https://forums.phpfreaks.com/topic/6212-unable-to-load-dynamic-library-cphpextphp_ssh2dll-the-specified-module-could-not-be-found/#findComment-22474 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.