By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
426,012 Members | 988 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 426,012 IT Pros & Developers. It's quick & easy.

HELP!! PHP Warning: PHP Startup: Unable to load dynamic library 'c:\PHP\Ext\php_mysql.dll' - The specified procedure could not be found. in Unknown on line 0

P: n/a
MS
Why do I keep getting this error mesgage on my phpinfo() page trying to
get PHP and MySQL to communicate? I am running this in IIS.

Here's what I have -

My php.ini resides in my C:\WINNT directory. In it, I have removed the
';' from the extension=php_mysql.dll.

Also in the php.ini file I set extension_dir = c:\PHP\Ext

In c:\PHP\Ext I have the following files:

libmysqli.dll
libmySQL.dll
php5apache2.dll (Do I need this since I am using IIS)?
php5ts.dll
php_mysql.dll

Any help would be tremendously appreciated. I have spent a ton of time
on this.

Thanks.

May 31 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
MS wrote:
Why do I keep getting this error mesgage on my phpinfo() page trying to
get PHP and MySQL to communicate? I am running this in IIS.

Here's what I have -

My php.ini resides in my C:\WINNT directory. In it, I have removed the
';' from the extension=php_mysql.dll.

Also in the php.ini file I set extension_dir = c:\PHP\Ext

In c:\PHP\Ext I have the following files:

libmysqli.dll
libmySQL.dll
php5apache2.dll (Do I need this since I am using IIS)?
php5ts.dll
php_mysql.dll

Any help would be tremendously appreciated. I have spent a ton of time
on this.

Thanks.


Hi,

A few common mistakes are:

1) editting the wrong php.ini
Ask phpinfo() which php.ini it is using. Often people edit the one in
c:\php\php.ini. My advise: delete all on your system except one.

2) forget to give readpermissions for IUSR_<machinename> to all files and
directories in use.

3) You did an out-of-the-box install from somewhere. Some suck.
eg: the windowsinstaller distributed at www.php.net will indeed install PHP
on IIS, but you will never be able to add extension (for which they DO warn
in big letters on the side).

Could it be any of these infamous 3?

Regards,
Erwin Moller
Jun 1 '06 #2

P: n/a
MS
It could be 3. I know it's definitely not #1.

Which version of php do I want here to use IIS? Is there one on
php.net that is better to use? Should I use PHP4? I noticed that comes
out of the box configured to use with MySQL.

Erwin Moller wrote:
MS wrote:
Why do I keep getting this error mesgage on my phpinfo() page trying to
get PHP and MySQL to communicate? I am running this in IIS.

Here's what I have -

My php.ini resides in my C:\WINNT directory. In it, I have removed the
';' from the extension=php_mysql.dll.

Also in the php.ini file I set extension_dir = c:\PHP\Ext

In c:\PHP\Ext I have the following files:

libmysqli.dll
libmySQL.dll
php5apache2.dll (Do I need this since I am using IIS)?
php5ts.dll
php_mysql.dll

Any help would be tremendously appreciated. I have spent a ton of time
on this.

Thanks.


Hi,

A few common mistakes are:

1) editting the wrong php.ini
Ask phpinfo() which php.ini it is using. Often people edit the one in
c:\php\php.ini. My advise: delete all on your system except one.

2) forget to give readpermissions for IUSR_<machinename> to all files and
directories in use.

3) You did an out-of-the-box install from somewhere. Some suck.
eg: the windowsinstaller distributed at www.php.net will indeed install PHP
on IIS, but you will never be able to add extension (for which they DO warn
in big letters on the side).

Could it be any of these infamous 3?

Regards,
Erwin Moller


Jun 1 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.