Page 1 of 1

PHP Warning: PHP Startup: Unable to load dynamic library

Posted: Fri Jan 13, 2006 3:17 pm
by neophyte
PHP Warning: PHP Startup: Unable to load dynamic library 'C:\PHP\ext\php_mysql.dll' - Access is denied. in Unknown on line 0

Aigh! I'm installing PHP under IIS and I'm getting this error when trying to load php_mysql.dll. Is this a permissions thing? Has any body seen this before? How do I fix it?

Thanks

Posted: Fri Jan 13, 2006 3:38 pm
by feyd
access is denied sounds like the file is in use, exclusively; or IIS's user doesn't have permission to use the file..

Posted: Fri Jan 13, 2006 3:45 pm
by neophyte
Answering my own question, and for every one else who bumps in to this one.... Open your user account control panel. Look at you list of users. In the list is some guy named: IUSR_YOUR_MACHINE_NAME. You have to add him to the permissions on the ext/ folder in C:\PHP\ext. You do that by right clicking on the file properties. On the permissions tab click "Add" then type the name of the user in the dialog box. They must have read&execute and read permssions.