Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Installing on w2k/iis5 Can't make it work with Mysql :(

Status
Not open for further replies.

GerritR

Technical User
Jun 18, 2002
41
NL
Hello guys,

I installed php 5.0.2 with installer.
I tested with phpinfo() and it worked fine.
After that I installed Mysql 4.0.22
This also works fine (from the command line)
I removed the ; in php.ini to enable extension=php_mysql.dll
Also changed extension_dir to c:\php
Copied php_mysql.dll to c:\php
I copyed libmsql.dll to the system32 dir
I gave read and execute rights on he php_mysql.dll

Now when I start whatever .php My server displays
Warning: PHP Startup: Unable to load dynamic library 'C:\php\php_mysql.dll' - Access is denied

I also tried to give hole dir c:\php all rights to everyone but doesn help.

What am I missing ?
 
There's this advice from the PHP online manual section on the MySQL family of functions:

Note: Windows users will need to enable php_mysql.dll inside of php.ini and either copy libmysql.dll into the Windows system directory, or make it available to the PATH.

This will fix "Unable to load dynamic library './php_mysql.dll'" errors.



Want the best answers? Ask the best questions!

TANSTAAFL!!
 
Thank you for the response.
All that is already done, as I described.
But it doesn't work.

And it is unable to load because of an access denied error.
While the file rights(in windows) are oke, the libmsql.dll is in the system32 dir.
The system32 dir is also in the path....
I have read rights for i_user on php.ini witch risides in C:\winnt
read/write rights for i_user to the uploadtmp dir
and execute access to php-cgi.exe, php5ts.dll and php_mysql.dll
So this is not the problem :(
What else can it be?



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top