note 25392 added to install.apache

From: Date: Sat, 21 Sep 2002 19:48:32 +0000
Subject: note 25392 added to install.apache
Groups: php.notes 
Request: Send a blank email to php-notes+get-37095@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 -- http://www.php.net/manual/en/install.apache.php http://master.php.net/manage/user-notes.php?action=edit+25392 http://master.php.net/manage/user-notes.php?action=delete+25392 http://master.php.net/manage/user-notes.php?action=reject+25392

« previous php.notes (#37095) next »