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

Apache2/PHP5/MySQL4 problems on Win32

P: n/a
I've upgraded to PHP5 from PHP4 on a Win2K3 Server and now I can't use the
MySQL databases.
I checked the documentation, to discover that MySQL libraries are no
longer bundled with PHP. So I've uncommented the 'extension=php_mysql.dll'
and copied libmySQL.dll to Windows\System32 (as well as Windows,
Apache2\bin, and anywhere else I could think of).

Now, whenever Apache starts it gives the following error:

PHP Startup: Unable to load dynamic library
'D:/Program Files/Apache Group/PHP/ext/php_mysql.dll' - The specified
procedure could not be found.

The file exists on that path, everyone has permission to read/execute it.
I have no idea what is going on, can anyone help me please?

Niel
Jul 17 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a

">>-Archer-->" <no*@home.net> schrieb im Newsbeitrag
news:Ju********************@giganews.com...
I've upgraded to PHP5 from PHP4 on a Win2K3 Server and now I can't use the
MySQL databases.
I checked the documentation, to discover that MySQL libraries are no
longer bundled with PHP. So I've uncommented the 'extension=php_mysql.dll' and copied libmySQL.dll to Windows\System32 (as well as Windows,
Apache2\bin, and anywhere else I could think of).

Now, whenever Apache starts it gives the following error:

PHP Startup: Unable to load dynamic library
'D:/Program Files/Apache Group/PHP/ext/php_mysql.dll' - The specified
procedure could not be found.

The file exists on that path, everyone has permission to read/execute it. I have no idea what is going on, can anyone help me please?

Niel

Hi Niel,

I had the same problem. Copy the file php_mysql.dll from ext/ to the
System32 directory also. It should work then.

I don't know either why the DLLs are not found in the ext directory.
Anybody?

Adrien
Jul 17 '05 #2

P: n/a
">>-Archer-->" <no*@home.net> wrote or quoted:
I've upgraded to PHP5 from PHP4 on a Win2K3 Server and now I can't use the
MySQL databases.
I checked the documentation, to discover that MySQL libraries are no
longer bundled with PHP. So I've uncommented the 'extension=php_mysql.dll'
and copied libmySQL.dll to Windows\System32 (as well as Windows,
Apache2\bin, and anywhere else I could think of).

Now, whenever Apache starts it gives the following error:

PHP Startup: Unable to load dynamic library
'D:/Program Files/Apache Group/PHP/ext/php_mysql.dll' - The specified
procedure could not be found.

The file exists on that path, everyone has permission to read/execute it.
I have no idea what is going on, can anyone help me please?


Here's what I did to resolve a similar issue.

I changed php.ini as follows:

extension_dir = "./"

....to...

extension_dir = "C:/php/ext/"

....and...

;extension=php_mysql.dll

....to...

extension=php_mysql.dll

....and I copied every DLL file from C:\php to C:\WINNT.
--
__________
|im |yler http://timtyler.org/ ti*@tt1lock.org Remove lock to reply.
Jul 17 '05 #3

P: n/a
Sorry for the delay, I've been away for a coupla weeks.

Thanks to Adrian & Tim for your replies.

Niel

Jul 17 '05 #4

P: n/a
Tim Tyler <ti*@tt1lock.org> wrote in message news:<I2********@bath.ac.uk>...
">>-Archer-->" <no*@home.net> wrote or quoted:
I've upgraded to PHP5 from PHP4 on a Win2K3 Server and now I can't use the
MySQL databases.
I checked the documentation, to discover that MySQL libraries are no
longer bundled with PHP. So I've uncommented the 'extension=php_mysql.dll'
and copied libmySQL.dll to Windows\System32 (as well as Windows,
Apache2\bin, and anywhere else I could think of).

Now, whenever Apache starts it gives the following error:

PHP Startup: Unable to load dynamic library
'D:/Program Files/Apache Group/PHP/ext/php_mysql.dll' - The specified
procedure could not be found.

The file exists on that path, everyone has permission to read/execute it.
I have no idea what is going on, can anyone help me please?
Here's what I did to resolve a similar issue.


it took a while, but i finally got that bugger working

although i couldnt get all the extentions recognized, most were ok

i had trouble with php_pdf and some of the other non-essentials
pretty sure its just another dll out of place I changed php.ini as follows:

extension_dir = "./"

...to...

extension_dir = "C:/php/ext/"

...and...

;extension=php_mysql.dll

...to...

extension=php_mysql.dll

...and I copied every DLL file from C:\php to C:\WINNT.

Jul 17 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.