Hi,
if you want to use the module version instead of installing it as cgi you can do the following:
Download the zip file version of php and uninstall the installer version. It is recommended to use the version downloadable as zip file.
Copy php4ts.dll and all files from the dlls folder to the system (98/ME) or the system32 folder (NT/2K/XP).
copy the php.ini-dist to the windows or winnt folder and name it php.ini
Remove the cgi lines from the httpd.conf and add the following lines.
LoadModule php4_module c:/php/sapi/php4apache.dll
at the end of the LoadModule section
AddModule mod_php4.c
at the end of the AddModule section
AddType application/x-httpd-php .php .phtml
AddType application/x-httpd-php-source .phps
somewhere below the LoadModule and AddModule sections.