Entry
PHP, Apache, and MySQL: "Unable to load dynamic library ... Access is denied"
Sep 17th, 2006 18:59
Peter Magnusson,
There are lots of confused postings and threads related to this topic.
Basically, when installing PHP, MySQL, and Apache, various conditions
can cause Apache to complain that when loading PHP it can't access
php_mysql.dll with a "access is denied" or similar error.
The thing I wanted to note here is that the above error message can be
caused by mismatched versions. In other words, "access is denied" (or
similar) can be misleading (read: buggy error message).
In my particular case, I spent hours chasing security settings, Apache
directory declarations, etc etc, until I started to doubt the error per
se, and redid the full installation with a "known safe" set of versions,
namely:
Apache 1.3.37
PHP 5.1.6
MySQL Server 5.0.24a-community-nt
patch files from MySQL (libmysql.dll and php_mysql.dll) for the above
exact versions
and, guess what, no error at all. Sigh.