Author |
|
Olaf van der Spek
Joined: 18 May 2006 Posts: 4
|
Posted: Thu 18 May '06 20:56 Post subject: Apache 2.2.2 & PHP 5.1.4: MySQL modules not found |
|
|
Hi,
I'm using Apache 2.2.2 & PHP 5.1.4. The server starts, but the MySQL modules are not available. The mbstring module is available, however.
In httpd.conf:
LoadModule php5_module c:/is/php/php5apache2.dll
AddType application/x-httpd-php .php
PHPIniDir c:/is/php
In php.ini:
extension_dir = "/is/php/ext"
extension = php_mbstring.dll
extension = php_mysql.dll
extension = php_mysqli.dll
SMTP = "smtp.demon.nl"
In error.log:
PHP Warning: PHP Startup: Unable to load dynamic library '/is/php/ext\\php_mysql.dll' - Ongeldige toegang tot geheugenlocatie.\r\n in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/is/php/ext\\php_mysqli.dll' - Ongeldige toegang tot geheugenlocatie.\r\n in Unknown on line 0
That's an invalid memory access. Does anyone know how to solve this?
I'm using the Apache and PHP binaries from here (and only the binaries, the rest of Apache is from ASF).
The same error occurs when I'm using the Apache ASF binary. |
|
Back to top |
|
admin Site Admin
Joined: 15 Oct 2005 Posts: 692
|
Posted: Thu 18 May '06 21:00 Post subject: |
|
|
Do you have libmySQL.dll in your c:/windows folder.
Cpoy it from the mysql/bin/ folder.
Steffen |
|
Back to top |
|
pnllan
Joined: 05 Dec 2005 Posts: 221
|
Posted: Thu 18 May '06 21:17 Post subject: |
|
|
Also -
From PHP manual:
Quote: | If you would like to install the mysql extension along with the mysqli extension you have to use the same client library to avoid any conflicts. |
Coincidentally, I was just setting up a new system earlier today (Apache 2.2.2, PHP 5.1.4, MySQL 5.0.12). I had a similiar problem - At Apache START the php_mysqli extension was rejected (actually stated that it could not be found - even though it was in the extensions folder). I downloaded the latest extension from MySQL which includes the libMySQL.dll.
http://dev.mysql.com/downloads/connector/php/
Once I copied both the php_mysqli.dll and libMySQL.dll to my extensions folder - PHP loaded the extension.
.
Last edited by pnllan on Fri 19 May '06 8:32; edited 2 times in total |
|
Back to top |
|
Olaf van der Spek
Joined: 18 May 2006 Posts: 4
|
Posted: Thu 18 May '06 21:57 Post subject: |
|
|
admin wrote: | Do you have libmySQL.dll in your c:/windows folder.
Cpoy it from the mysql/bin/ folder.
Steffen |
Yes, I do. Without it, I get the "module not found" error.
The DLL is from MySQL 5.1, could that be a problem?
I've disabled the MySQLi extension but that didn't change much.
Update: yes, the 5.1 DLL caused/triggered the problem. With the 5.0 DLL it works better. |
|
Back to top |
|
Steffen Moderator
Joined: 15 Oct 2005 Posts: 3092 Location: Hilversum, NL, EU
|
|
Back to top |
|
Olaf van der Spek
Joined: 18 May 2006 Posts: 4
|
Posted: Thu 18 May '06 22:22 Post subject: |
|
|
Doesn't look like the same to me. He didn't have the DLL, I did. |
|
Back to top |
|
Steffen Moderator
Joined: 15 Oct 2005 Posts: 3092 Location: Hilversum, NL, EU
|
Posted: Thu 18 May '06 23:03 Post subject: |
|
|
Did you tried the directions from pnllan above ? |
|
Back to top |
|
Olaf van der Spek
Joined: 18 May 2006 Posts: 4
|
Posted: Fri 19 May '06 12:51 Post subject: |
|
|
Steffen wrote: | Did you tried the directions from pnllan above ? |
Yes, and as I said, it works now with libmySQL.dll 5.0 in C:\WINDOWS\system32
It didn't work with libmySQL.dll 5.1.9. |
|
Back to top |
|
pnllan
Joined: 05 Dec 2005 Posts: 221
|
Posted: Fri 19 May '06 19:13 Post subject: |
|
|
Olaf,
Hence, the trouble with Beta's.
I learned that MySQL AB's Alpha and Beta release are as Forest (Gump - that is) would say - 'like a box of chocolates - you never know what you are going to get'. |
|
Back to top |
|