This may be a bit out of date by now, but I remember it was frustrating getting the sequence right. Windows as the lesser sibling here needs some additional docs.
How to install PHP4 with Apache under Windows:
1. Install Apache using the Windows installer (just the .msi download if you have a recent installer)
in httpd.conf check servername, port
2. Download PHP binaries for Windows, as well as the full binary package and source package
run the installer for php
copy php4ts.dll to c:\winnt\system32
3. Add these lines to httpd.conf in Apache:
LoadModule php4_module “c:/php/sapi/php4apache.dll”
^
make sure this is the correct path
AddModule mod_php4.c
4. Uncomment these:
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
5. Copy php.ini-dist to php.ini and update settings if desired. I just turned on the error log and specified c:\php\errors.log as the filename.
Also:
phpMyAdmin needs to be config’d for 1 or more databases to reach. see config.inc.php.
users can be set up in phpMyAdmin easily
create the user first with no rights, then add rights on a per-db basis, after reloading MySQL
PHP needs to be config’d by copying php.ini-dist to php.ini
See: http://www.thesitewizard.com/archive/php4install.shtml
Related posts: