Hi Andrea,
the installer will install php as a cgi-executable, not as Sapi-modul.
The manual in the file install.txt is a bit confusing, try my version 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 as a cgi-executable. This will put all standard dlls to the right 
>place and
> do some registry entries.
> I used the path "C:\webserver\php", be sure to modify this to your settings in the 
>entries below
>
optional:
> 3) Unpack the zip and copy the extensions folder to your php install
> directory (e.g. c:\webserver\php)
>     There a precompiled php_gd.dll is contained with support for jpeg, png,
> freetype2, ttf
>
optional:
> 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(); ?>
>  If you did optional steps 3 and 4 then 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


Andrea Soracchi wrote:

> Hi,
>
> I have downloaded the last installer php (920 Kb) from php.net. I have installed 
>with setup.exe and all is Ok.
> I'm reading the install.txt for use php with apache (the last version) and there is 
>wrote :
>
>             LoadModule php4_module c:/php/sapi/php4apache.dll
>             AddModule mod_php4.c
>             AddType application/x-httpd-php .php
>
> But the file php4apachedll doesn't exist. Where can i find it?!?! There is a problem


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

Reply via email to