note 25392 deleted from install.apache by betz
| From: | betz@php.net | Date: | Mon, 11 Nov 2002 23:05:34 +0000 |
| Subject: | note 25392 deleted from install.apache by betz | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-39339@lists.php.net to get a copy of this message | ||
I am using PHP 4.2.3 on win32 (windows XP) with Apache 2.0.40. It took me a while to understand why
the apache didn't work with my php. So, I figured out that after installing apache, you should
add the following to the end of httpd.conf file, which should be opened in notepad or wordpad.
LoadModule php4_module C:/PHP/php-4.2.3-Win32/sapi/php4apache2.dll
AddType application/x-httpd-php .php .php3 .phtml
AddType application/x-httpd-php-source .phps
The important thing is you need to make sure it points to php4apache2.dll and not php4apache.dll.
One more thing, sapi subdirectory, on some installations of php comes after php directory and on
some installations, for some weird reason, come after php-4.2.3-Win32 subdirectory.
Hope that saved somebody a lot of time that I wasted