Forget about compiling, use binaries instead.
 The following worked for my system (Win2000 and Apache3.1.22):

 1) Download Windows binaries php-4.1.2-installer.exe and php-4.1.2-Win32.zip
 from www.php.net

 2) Don't try to install php from the zip but use the exe to install php
 without extensions. This will put all standard dlls to the right place and
 do some registry entries.

 3) Unpack the zip and copy the extensions folder to your php install
 directory (e.g. c:\webserver\php)
 optional:    There a precompiled php_gd.dll is contained with support for
jpeg, png,
 freetype2, ttf

 4) Edit php.ini which resides in %Windir%
 Locate the paths and directories section and make entries similar to below:
     ;;;;;;;;;;;;;;;;;;;;;;;;;
     ; Paths and Directories ;
     ;;;;;;;;;;;;;;;;;;;;;;;;;
     include_path=; UNIX: "/path1:/path2"  Windows: "\path1;\path2"
     doc_root=; the root of the php pages, used only if nonempty
     user_dir=; the directory under which php opens the script using /~username

     ; directory in which the loadable extensions (modules) reside
     extension_dir=c:\webserver\php\EXTENSIONS
     extension=php_gd.dll
     extension=php_zlib.dll
     enable_dl=On

 I am not sure about dependencies, but it may be that for png support zlib is
 necessary (at least when compiling it in unix), so it may be good to enable
 php_zlib.dll too.

 5) Configurate and restart your webserver
 eg. for apache in httpd.conf:

     # Path to PHP.EXE directory -- change ScriptAlias to suit your config.
     # Attention: Paths are unix style with slash not backslash, even on
Windows-PCs
     ScriptAlias /php4/ "c:/webserver/php"
     Action application/x-httpd-php4 "/php4/php.exe"
     AddType application/x-httpd-php4 .php
     AddType application/x-httpd-php4 .php3
     DirectoryIndex index.html default.htm index.php index.php3

 6) Check installation by a script containing
     <?php phpinfo(); ?>
     The output should contain a section:
 gd
       GD Support enabled
       GD Version 1.6.2 or higher
       FreeType Support enabled
       FreeType Linkage with TTF library
       JPG Support enabled
       PNG Support enabled
       WBMP Support enabled


 I hope this helps.

 Jürgen Schoch


Jas wrote:

> I have been looking at the documentation for Apache and the documentation
> for php and I am lost... Could someone point out a quick and easy way for
> installation (without the use of the exe?)  Yeah I know, stupid, but I want
> to try this out.
> Thanks in advance,
> Jas


-- 
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to