PHP Warning: PHP Startup: Unable to load dynamic library

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
User avatar
neophyte
DevNet Resident
Posts: 1537
Joined: Tue Jan 20, 2004 4:58 pm
Location: Minnesota

PHP Warning: PHP Startup: Unable to load dynamic library

Post 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
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post 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..
User avatar
neophyte
DevNet Resident
Posts: 1537
Joined: Tue Jan 20, 2004 4:58 pm
Location: Minnesota

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