"In our world of game and con: there is always an opponent and there is
always a victim. The trick: is to know when you're the latter, so you can
become the former."

[Non-text portions of this message have been removed]

pinky_goyal22

i dont have idea about the WAMP package but i have installed both php4 and php5 on my system. i do this way: you can have both php4 and php5 on your system but

Message 3 of 8
, Jan 9, 2008

0 Attachment

i dont have idea about the WAMP package but i have installed both php4
and php5 on my system.

i do this way:

you can have both php4 and php5 on your system but you can run 1 at a
time and for running the other you need to make some changes.
for php4 and php5 httpd.conf and php.ini file is different.
place both httpd.conf(php4 and php5) file in conf folder, one with the
name httpd.conf and rename the other one say httpd_php4.conf.
same as make two copies of php.ini and name one as php.ini and rename
the other one say php4.ini. if you are running php5

if you want to run php4 rename httpd_php4.conf to httpd.conf and
php4.ini to php.ini and rename the previous httpd.conf and php.ini to
httpd_php5.conf and php5.ini.

You can try to run the second apache on port 8080 instead of 80. That way you have another apache listening on a diffrenet post. You can change this at the

Message 4 of 8
, Jan 9, 2008

0 Attachment

You can try to run the second apache on port 8080 instead of 80. That way you have another apache listening on a diffrenet post. You can change this at the httpd.conf level.

Same is the case with php4 and php5 on the same machine. Install different versions of php on different directories in the same machine and change the httpd.conf to look up one of the php installation and the othet httpd.conf to look at the other php installation.

I am sure this can be done in linux, you can give it a try in windows too.

>
> i dont have idea about the WAMP package but i have installed both php4
> and php5 on my system.
>
> i do this way:
>
> you can have both php4 and php5 on your system but you can run 1 at a
> time and for running the other you need to make some changes.
> for php4 and php5 httpd.conf and php.ini file is different.
> place both httpd.conf(php4 and php5) file in conf folder, one with the
> name httpd.conf and rename the other one say httpd_php4.conf.
> same as make two copies of php.ini and name one as php.ini and rename
> the other one say php4.ini. if you are running php5
>
> if you want to run php4 rename httpd_php4.conf to httpd.conf and
> php4.ini to php.ini and rename the previous httpd.conf and php.ini to
> httpd_php5.conf and php5.ini.
>
> i hope this will help you
>
>
>
>
> --- In bang-phpug@yahoogroups.com, "Senthil Kumar B" <skumar.bj@>
> wrote:
> >
> > Hi Karthik,
> >
> > There is no way to install PHP 4 and 5 in a same system.....
> > Actually php5 is the upgrade version of php4, so you can't install
> both on
> > same machine...
> >
> > --
> > Regards,
> > Senthil Kumar B.
> >
> >
> > On Jan 9, 2008 12:09 PM, KARTHIKEYAN RANGASWAMY <karthikranga83@>
> > wrote:
> >
> > > Hi Friends,
> > >
> > > I am currently Using PHP 4.4.7,Mysql 4.1.14 and Apache 2.0.59.
> > >
> > > Currently I have installed my PHP in c:/Program Files/Apache
> > > Group/apache2/php
> > >
> > > All These Things are working Fine
> > >
> > > I have also tried to install PHP5 Using WAMP Package
> > >
> > > I Have downloaded WAMP and tried to install WAMP but when Installing
> > > Apache in WAMP it gives the error as port 80 is blocked
> > >
> > > I dont know how to fix this
> > >
> > > I want to run both PHP4 and PHP 5 in the same system by installing
> > > successfully through WAMP
> > > without uninstalling the PHP 4.4.7 installed
> > >
> > > Is there any way to do that
> > >

ganu.ullu@gmail.com

This I have tested this for my linux box. install php5 as normal and install php4 as cgi module. and in the same httpd conf file made change , so your php4

Message 7 of 8
, Jan 9, 2008

0 Attachment

This I have tested this for my linux box.

install php5 as normal and install php4 as cgi module.

and in the same httpd conf file made change , so your php4 things will run
from cgi module.
say like -
AddHandler php-script .php4
Action php-script /somedir/php4

so when you run your php4 then your server type will be fastCGI. for php5 it
will be apache.

so with one apache conf file you can run your php4 and php5.
same time , same instance. :)

hope this will help.

try this.

On 1/9/08, Amit Rana <amitrana77@...> wrote:
>
> I agree this is the simplest way to do.
>
> To install multiple version on linux use --prefix=/usr/local2 option
> while compiling. You can even specify the location of php.ini file
> using --with-config-file-path
>
> You can even work with single httpd.conf file just make sure you are
> loading correct modules. Check for LoadModule in conf file.
>
> Regards,
> Amit.
>
> --- In bang-phpug@yahoogroups.com <bang-phpug%40yahoogroups.com>,
> "pinky_goyal22" <pinks.forums@...>
> wrote:
> >
> > i dont have idea about the WAMP package but i have installed both php4
> > and php5 on my system.
> >
> > i do this way:
> >
> > you can have both php4 and php5 on your system but you can run 1 at a
> > time and for running the other you need to make some changes.
> > for php4 and php5 httpd.conf and php.ini file is different.
> > place both httpd.conf(php4 and php5) file in conf folder, one with the
> > name httpd.conf and rename the other one say httpd_php4.conf.
> > same as make two copies of php.ini and name one as php.ini and rename
> > the other one say php4.ini. if you are running php5
> >
> > if you want to run php4 rename httpd_php4.conf to httpd.conf and
> > php4.ini to php.ini and rename the previous httpd.conf and php.ini to
> > httpd_php5.conf and php5.ini.
> >
> > i hope this will help you
> >
> >
> >
> >
> > --- In bang-phpug@yahoogroups.com <bang-phpug%40yahoogroups.com>,
> "Senthil Kumar B" <skumar.bj@>
> > wrote:
> > >
> > > Hi Karthik,
> > >
> > > There is no way to install PHP 4 and 5 in a same system.....
> > > Actually php5 is the upgrade version of php4, so you can't install
> > both on
> > > same machine...
> > >
> > > --
> > > Regards,
> > > Senthil Kumar B.
> > >
> > >
> > > On Jan 9, 2008 12:09 PM, KARTHIKEYAN RANGASWAMY <karthikranga83@>
> > > wrote:
> > >
> > > > Hi Friends,
> > > >
> > > > I am currently Using PHP 4.4.7,Mysql 4.1.14 and Apache 2.0.59.
> > > >
> > > > Currently I have installed my PHP in c:/Program Files/Apache
> > > > Group/apache2/php
> > > >
> > > > All These Things are working Fine
> > > >
> > > > I have also tried to install PHP5 Using WAMP Package
> > > >
> > > > I Have downloaded WAMP and tried to install WAMP but when Installing
> > > > Apache in WAMP it gives the error as port 80 is blocked
> > > >
> > > > I dont know how to fix this
> > > >
> > > > I want to run both PHP4 and PHP 5 in the same system by installing
> > > > successfully through WAMP
> > > > without uninstalling the PHP 4.4.7 installed
> > > >
> > > > Is there any way to do that
> > > >
>
>
>

[Non-text portions of this message have been removed]

Your message has been successfully submitted and would be delivered to recipients shortly.