If you're trying to use Apache 2.0.x and PHP, you'll need to do the following:
First, make sure that when you configure PHP you use the --with-apxs2 option, like so: --with-apxs2=/path/to/apache2/apxs. You need to use this instead of --with-apxs. Second, when you edit your httpd.conf, instead of adding the AddType line, add the following:
to where you would normally add the AddType line. This works for me using
PHP 4.1.2 and Apache 2.0.28. YMMV.
How to use PHP 4.2 with Apache/2.0.35 on Windows:
- Follow the general installation instructions
- Open "httpd.conf" of Apache 2
- Add the following lines:
For Apache2.0 do not only use the experimental/apache2filter.dll but also be sure (as mentioned in the installation documentation) to move php4ts.dll to the windows/system (for Windows 9x/Me) or winnt/system32 (for Windows NT/2000/XP) directory, overwriting any older file.