Page 1 of 1

Multiple Environments

Posted: Wed Nov 24, 2004 5:23 pm
by wadesmart
11242004 1720 GMT-6

I want to play with php5 but not loose php4. I know I have read somewhere how this is done but I cant find it.

Apache wont play nice is the problem.

I set it up as:

Code: Select all

#User Input line
LoadModule php4_module "c:/WebDev/php4/sapi/php4apache2.dll"
AddType application/x-httpd-php .php

#11202004 1126 Installing php5 for testing
#LoadModule php5 module "c:/WebDev/php5/php5apache2.dll"
#AddType application/x-httpd-php .php5
but that just caused apache not to start.

Wade

Posted: Wed Nov 24, 2004 6:42 pm
by rehfeld
i know this is kinda avoiding your problem, but i use xampp
its a preconfigured package w/ php apache perl etc.....

it comes w/ both php4 and 5, and they have a php-switch.bat file that is used as a php switch. clicking it switches between php 4 and 5. its really handy.

maybe you could download it and take a look.

http://www.apachefriends.org/en/xampp.html

Posted: Wed Nov 24, 2004 6:47 pm
by wadesmart
11242004 1848 GMT-6

Have you ever looked in the .bat file to see what they have written?

Posted: Wed Nov 24, 2004 6:59 pm
by rehfeld

Code: Select all

@ECHO OFF

if exist php\phpcli.exe GOTO Normal
if exist php\cli\php.exe GOTO Unnormal
if not exist php\cli\php.exe GOTO Abort

:Abort
echo Sorry ... cannot find php cli!
echo Must abort these process!
pause
GOTO END

:Unnormal
if exist php\cli\php.exe GOTO Copy
GOTO END

:Copy
copy /Y php\cli\php.exe php\phpcli.exe
GOTO Normal

:Normal
set PHP_BIN=php\phpcli.exe
set CONFIG_PHP=install\php-switch.php
%PHP_BIN% -n -d output_buffering=0 %CONFIG_PHP%
GOTO END

:END
pause

Posted: Wed Nov 24, 2004 7:33 pm
by wadesmart
Ill have to try this>

Im reading the information at that site. I dont want to disrupt my current working environment though.
Hopefully I can make this work.

Thanks.