Hi Gabor,

I have used PHP since the early days of PHP3 and I have never copied any
files arround. I have only used php on Windows NT/2000/XP and there might
be other needs on Windows 98/ME.

On my development box I have the following directory structure:

c:\php4
c:\php4\debug

c:\php5
c:\php5\debug

In each of these directories I keep all files related to the version of
PHP. That includes all .exe, .dll and the php.ini file. I also keep any
external library required for extension in the same folder (this is for
extensions like PHP-GTK and Imagick etc.) PEAR is a little tricky as it
requires pear.ini to be in %windir%!

In the php.ini file I set extension_dir = ./

I use IIS for most of my work and I configure it with the folowing virtual
directories all pointing to the same physical directory:

/php4, script map: .php => c:\php4\php-cgi.exe
/php4debug, script map: .php => c:\php4\debug\php-cgi.exe

/php5, script map: .php => c:\php5\php-cgi.exe
/php5isapi, script map: .php => c:\php5\php5isapi.dll
/php5debug, script map: .php => c:\php5\debug\php-cgi.exe
/php5fcgi, script map: .php => c:\php4\isapi_fcgi.dll

It is not possible to configure IIS with more than one isapi/fcgi module.

This way I can test the same php script with different versions of PHP
without changing anything but the URL.

This configuration also allows me to use both web based and PHP-GTK
applications.

I use the same configuration on the systems we ship to our customers. It's
a touch screen computer with a PHP5 based application.

- Frank
> Hi Frank, Wez, and all!
> 
> Wez promised us that he will help rewamp the Windows installation part,

> but he does not reply to our mails. Our dilemma is the following:
> 
>   - the current Windows docs suggest users to copy files to the windows
>     and system32 folders
> 
>   - people (Daniel Convissor) report that it is possible to not do
>     this, but set PATH to include the PHP folder and the dlls
>     folder below the PHP folder (for PHP 4) + set PHPRC
> 
>   - others (Nuno Lopes) report that it does not work for PHP 5
> 
>   - the PHP 5 package suspiciosly looks like if the dlls and sapi
>     folder was merged with the root folder just to support Daniel's
>     suggestion, or enable setup with even less configuration
>     (no PATH and no PHPRC setting required) <- just a hiphotesis
> 
> Now we need someone with decent Windows PHP knowledge to help us clean 
> up the installation part. What do we need?
> 
>   - Simple manual installation instructions for PHP 4 on Windows
>   - Simple manual installation instructions for PHP 5 on Windows
>   - Instructions on how can you run them paralelly (both server
>     independent - ie. CLI, and server dependent - ie. Apache, etc).
> 
> Wez said it is not required to copy files around neither for PHP 4 nor 
> for PHP5. Now we need exact instructions.
> 
> Thanks,
> Gabor Hojtsy - PHP Documentation Editor
> 

Reply via email to