Click to See Complete Forum and Search --> : php_mssql.dll problems...


Anon
05-15-2001, 02:11 PM
Installed PHP version 4.0.5 on Win2000/IIS5/SQL7.0 - followed the install instructions (I think!), including putting the php_mssql.dll in various places and editing php.ini etc.
When I run php via IIS 5 I get a "Unable to load dll php_mssql.dll - Access denied" implying permission problems. The weird thing is - if I run "php.exe blah.php > outfile.htm" from a command prompt - no error is produced and the output is fine.
This is driving me mad - any help please??

ame12
05-15-2001, 03:21 PM
Try copying libsasl.dll from the php directory to \winnt\system32 - some of the extensions seem to need it.

If that still doesn't do it, check the NT event log (system log) and look for W3SVC messages - it should give you a little more info as to what's happening.

Dave


===========================================
http://badblue.com
Free small footprint web server for Windows
P2P file-sharing, PHP, wireless apps & more
===========================================

damisi
05-16-2001, 05:31 AM
I beleive that your problem is in the configuration of the php.ini file

check out the "extension_dir" in PHP.ini file
it suppose to look like

extension_dir = d:\php4\extensions\

where d:\php4\ is where you have installed PHP



damisi

Anon
05-16-2001, 01:54 PM
Thanks Dave and Amjad - I think we are sorted now
Cheers
Ade

markuatcm
09-10-2001, 04:49 PM
Hi,

PLATFORM
Windows 2000
PHP 4.0.6
SQL Server 2000 (desktop ed for this purpose)

I was getting the same load error, even though my EXTENSIONS directory had the DLL specified in PHP.INI.

I found that I needed the DLL's that shipped with the PHP distribution but didn't get installed into the PHP.EXE directory --

C:\SOFTWARE\BIN\PHP

and

C:\SOFTWARE\BIN\PHP\EXTENSIONS

in my case

I'm not sure which of the DLL's was needed to cure the problem. I just installed the whole lot of them in that directory. The load error disappears. It remains to be seen whether MS SQL is actually working from PHP.

Mark