1) Downloaded PHP 5, unzipped to c:\php5
 2) Added the following to httpd.conf

  LoadModule php5_module "c:/php5/php5apache2.dll"
  AddType application/x-httpd-php .php

 3) Default php.ini location is c:\WINDOWS so rather
    than put there I set PHPRC.  I didn't want to reboot
    Windows so set as user variable instead of system,
    I'm sure either would work.  I assumed PHP would look
    for php.ini where php5apache2.dll was located but
    it did not.

 4) localhost/phpinfo.php worked perfectly!

Now to install some extension DLLs:

 5) Edited extension_dir to "c:\php5\ext\"
 6) Uncommented php_gd2.dll, worked perfectly!

This is all right so far.

Now to get MySQL 4.0.20d to work:

 7) Uncommented php_mysql.dll
 8) Copied c:\php5\libmysql.dll to c:\WINDOWS, it works!

I tried other solutions to #8 but they failed. I assumed
PHP would look in the folder where all the other DLLs are
but it did not. Also copying libmysql.dll from c:\mysql\lib\opt\ to WINDOWS dir did not work, only the bundled one did...not sure why. So I now use a 3.23.57
API to 4.0.20, seems odd.

Nuno said that if you move the MySQL bundled (mysql\lib\opt) dll out of the way (rename to something else, etc), then PHP will be able to find the DLL in the dir where is it bundled with PHP. Could you please also try this?


Goba

Reply via email to