|
|
MySQL module won't load under php5
I am running php 5 against a apache 2 server under WindowsXP.
I have php installed at c:/php and extentions at c:/php/ext.
extensions_dir is set correctly and extention php_mysql is declared.
I use a 'recomended' ini file but with display_error On for now.
When starting apache I get the error 'Cannot load
'c:/php/ext/php_mysql.dll'.
php from the command line 'php index.php' grinds the correct output.
But since php_mysql isn't loaded the php5-module bails out at the first
mysql_connect call.
What on earth is going on here?
--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
|
|
0
|
|
|
|
Reply
|
john.thingstad (1211)
|
2/8/2005 10:59:59 PM |
|
On Tue, 08 Feb 2005 23:59:59 +0100, John Thingstad
<john.thingstad@chello.no> wrote:
> I am running php 5 against a apache 2 server under WindowsXP.
> I have php installed at c:/php and extentions at c:/php/ext.
> extensions_dir is set correctly and extention php_mysql is declared.
> I use a 'recomended' ini file but with display_error On for now.
> When starting apache I get the error 'Cannot load
> 'c:/php/ext/php_mysql.dll'.
> php from the command line 'php index.php' grinds the correct output.
> But since php_mysql isn't loaded the php5-module bails out at the first
> mysql_connect call.
>
> What on earth is going on here?
>
I forgot to mention that apache is set up to read the php.ini
file at c:/php and this works.
--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
|
|
0
|
|
|
|
Reply
|
john.thingstad (1211)
|
2/8/2005 11:02:40 PM
|
|
On Tue, 08 Feb 2005 23:59:59 +0100, "John Thingstad"
<john.thingstad@chello.no> wrote:
>What on earth is going on here?
Did you copy the mysql library from the root of the PHP5 installation
directory into your windows/system32 directory as per the installation
instructions? This one tripped me up a bit.
Also make sure you are using the correct MySQL extension (there are
two).
|
|
0
|
|
|
|
Reply
|
not32 (983)
|
2/9/2005 12:56:38 AM
|
|
> Also make sure you are using the correct MySQL extension (there are
> two).
Yes, there are two. For MySQL 4.0 or before, load php_mysql.dll and for
MySQL 4.1 and above, load php_mysqli.dll, and change all the "mysql"
functions in your scripts to "mysqli" functions.
|
|
0
|
|
|
|
Reply
|
michael8429 (16)
|
2/9/2005 5:22:04 PM
|
|
|
3 Replies
25 Views
(page loaded in 0.117 seconds)
|
|
|
|
|
|
|
|
|