php5 and php4 together in localhost

php5 and php4 together in localhost

am 26.12.2007 13:04:18 von artev

in localhost with os winKp I use a LAMP for run apache-php-mysql;
the dir is this:
C:\WA\
with folders:
Apache-2.0.54
MySQL-4.1.12
php-4.3.11 (my php version that I use)
wmst (wmservertools is similar easyphp)
www

for to run PHP5 as cgi, how first step I insert also folder
php-5.2.5-Win32 inner C:\WA\

and I found this code that I must add in the httpd.conf:
Port 80
Listen 80

ServerName localhost
ServerAdmin me@localhost
DirectoryIndex index.php
DocumentRoot "C:/Apache/htdocs"
ScriptAlias /cgi-bin/ "C:/PHP5/"
Action php5-script /cgi-bin/php-cgi.exe
AddHandler php5-script .php5

Listen 81

ServerName localhost
ServerAdmin me@localhost
DirectoryIndex index.php
DocumentRoot "C:/Apache/htdocs"
ScriptAlias /cgi-bin/ "C:/PHP5/"
Action php5-script /cgi-bin/php-cgi.exe
AddHandler php5-script .php .php5


Question:
1- the code is corect?
2- if my actual settings httpd.conf is this:
DocumentRoot "/WA/www"
ScriptAlias /cgi-bin/ "/WA/www/cgi-bin/"

how I must to change code in rows ScriptAlias, Action e AddHandler ?
and inner WA/www/cgi-bin/ I must insert php-cgi.exe that I take from
php-5.2.5-Win32 folder?