Click to See Complete Forum and Search --> : [Resolved] Installing as Win32 Apache Module


Moonglobe
05-17-2003, 08:19 PM
can some one please tell me where i can find a win32 apache PHP module? i've looked everywhere but can't seem to find one:mad:. im looking for PHP4.2.3+ (preferably 4.3.1), apache 1.3.x . thx!

JLerster
05-17-2003, 10:12 PM
Try http://www.php.net/get/php-4.3.1-Win32.zip/from/a/mirror for the .zip, or http://www.php.net/get/php-4.3.1-installer.exe/from/a/mirror for the installer

Moonglobe
05-18-2003, 04:06 AM
taht's the CGI Binary....im looking for a .dll (or .so?) win32 apache module for PHP. i've got the CGI, but it screwed up and im just wanting to try something different. anyone?

tsinka
05-18-2003, 03:28 PM
Hi,

the zip file also contains the sapi module for apache in the directory sapi.

php4apache.dll is for apache 1.3.x
php4apache2.dll is for apache 2.x

Just unzip the archive to a directory like d:\php (the path shouldn't contain spaces).

Then add the following to your httpd.conf

LoadModule php4_module d:/php/sapi/php4apache.dll
AddType application/x-httpd-php .php .phtml

Remove all lines for loading php as cgi module.

Copy the php4ts.dll to your windows\system (WIN 98/ME..) or windows\system32 (W2K,NT,XP) directory. Copy the dll's from the dlls directory of the php package to the system/system32 directory too.

Copy php.ini to the windows directory.

Then restart apache.

Note: Do NOT use the installer download of php, it just contains the CGI version.

Moonglobe
05-18-2003, 03:31 PM
thx a lot, tsinka. im just kinda slow on reading documentation, im sure i could have found it somewhere...........thz again for your time! :)