I'm very new to installing on Windows but just did, here's what worked [for me] w/ PHP 5.0.0 and Apache 2.0.40, on Windows XP. Not sure if this adds anything useful to the conversation but in the very least it shows that "how to install mysql with PHP 5" needs better documentation, and how I assumed wrong in a few places. Where PHP looks for php.ini also needs help.
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! 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. This is all from an inexperienced PHP+Windows installer so that's all I have to say on that! Regards, Philip On Thu, 15 Jul 2004, Nuno Lopes wrote: > > >>3) add to httpd.conf: > > >>PHPIniDir "C:/php" > > > > > > This is Apache 2 specific directive. I checked and it doesn't work with > > > Apache 1. > > Bad luck... It was souding a too much perfect solution :-) > > > > And not with other servers. We need to advise people to set PHPRC if > > they are not using Apache 2. BTW how was the moving issue with the > > php[45]ts.dll solved? Have I missed something? > > Just moving all files from the dlls/extensions (PHP 4) and ext (PHP5) > folders to C:\php seems to work. > > Nuno >