logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Other Software View previous topic :: View next topic
Reply to topic   Topic: Apache 2.2.2 & PHP 5.1.4: MySQL modules not found
Author
Olaf van der Spek



Joined: 18 May 2006
Posts: 4

PostPosted: Thu 18 May '06 20:56    Post subject: Apache 2.2.2 & PHP 5.1.4: MySQL modules not found Reply with quote

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: 677

PostPosted: Thu 18 May '06 21:00    Post subject: Reply with quote

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

PostPosted: Thu 18 May '06 21:17    Post subject: Reply with quote

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

PostPosted: Thu 18 May '06 21:57    Post subject: Reply with quote

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: 3049
Location: Hilversum, NL, EU

PostPosted: Thu 18 May '06 22:08    Post subject: Reply with quote

A guy had the same issue: http://www.apachelounge.com/viewtopic.php?p=1428

Steffen
Back to top
Olaf van der Spek



Joined: 18 May 2006
Posts: 4

PostPosted: Thu 18 May '06 22:22    Post subject: Reply with quote

Steffen wrote:
A guy had the same issue: http://www.apachelounge.com/viewtopic.php?p=1428

Steffen

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: 3049
Location: Hilversum, NL, EU

PostPosted: Thu 18 May '06 23:03    Post subject: Reply with quote

Did you tried the directions from pnllan above ?
Back to top
Olaf van der Spek



Joined: 18 May 2006
Posts: 4

PostPosted: Fri 19 May '06 12:51    Post subject: Reply with quote

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

PostPosted: Fri 19 May '06 19:13    Post subject: Reply with quote

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


Reply to topic   Topic: Apache 2.2.2 & PHP 5.1.4: MySQL modules not found View previous topic :: View next topic
Post new topic   Forum Index -> Other Software