Click to See Complete Forum and Search --> : PHP4.0 + Apache 1.3.12 for Win32 Install Tips


Anon
08-09-2000, 03:14 AM
This assumes contents of php-4.0.1pl2-Win32.zip were extracted into C:\php4

The DLLs that need to be copied to the System or System32 folder (depending on Win98/NT) are MSVCRT.DLL (it may already exist in there) and PHP4TS.DLL.

Copy php.ini-dist to C:\Windows and rename to php.ini.

Modify php.ini as follows:
include_path = C:\php4
extension_dir = C:\php4

Modify httpd.conf as follows (in proper places):
DirectoryIndex index.htm index.php
#makes it possible to have php index pages

ScriptAlias /php4/ "C:/php4/"

AddType application/x-httpd-php .php
AddType application/x-httpd-php .phtml
AddType application/x-httpd-php-source .phps

Action application/x-httpd-php "/php4/php.exe"
#I've seen the Action directive left out the most. YOU MUST HAVE IT!!!

Cake.
-Abe

Anon
08-09-2000, 03:40 AM
Oh one more thing. If you want to include php files directly from your htdocs folder make this change to the include_path in php.ini (this goes for any folder):

;;;;;;;;;;;;;;;;;;;;;;;;;
; Paths and Directories ;
;;;;;;;;;;;;;;;;;;;;;;;;;
include_path = C:\Apache\htdocs
;assuming Apache is installed in C:\Apache

This ranks as a "duh." but thought I'd mention it anyway.
-Abe