freelanceprogrammers.org Forum Index » PHP

php4 with (togheter) php5. How ?


View user's profile Post To page top
marcosanobre Posted: Thu May 05, 2005 5:41 am


Joined: 05 May 2005

Posts: 6
php4 with (togheter) php5. How ?
Hi all.

I am trying to do to Apache can differ .php as a php4 file and .php5 as
a php5 file, but before I need to have both PHP4 and PHP5 living
togheter in my environment.

My php4 came from my Linux Distro (rpm packages). Where I have Mysql and
Apache installed too.

From now, how can I install PHP5 (from a tgz, compiling and installing)
ina a way that it can be assembled with my actual environmnent ?

I don`t want to recompile Apache nor Mysql for this chalenge.

For any trick or ideia, TIA.

MN.
Reply with quote
Send private message
View user's profile Post To page top
groho101 Posted: Fri May 06, 2005 3:49 am


Joined: 06 May 2005

Posts: 2
php4 with (togheter) php5. How ?
On 5/5/05, Marcos A Nobre <marcos@...> wrote:
> Hi all.
>
> I am trying to do to Apache can differ .php as a php4 file and .php5 as
> a php5 file, but before I need to have both PHP4 and PHP5 living
> togheter in my environment.
>
> My php4 came from my Linux Distro (rpm packages). Where I have Mysql and
> Apache installed too.
>
> From now, how can I install PHP5 (from a tgz, compiling and installing)
> ina a way that it can be assembled with my actual environmnent ?
>
> I don`t want to recompile Apache nor Mysql for this chalenge.
>
> For any trick or ideia, TIA.

if you`re using php as module,
maybe you could do this in httpd.conf:


# for php4
LoadModule php4_module /path/to/php4apache.dll
AddType application/x-httpd-php4 .php4

# for php5
LoadModule php5_module /path/to/php5apache.dll
AddType application/x-httpd-php5 .php5


ps: untested, hope that works ^_^

--
aldi, kriwil.com
Reply with quote
Send private message
View user's profile Post To page top
vduffaut2000 Posted: Fri May 06, 2005 3:53 am


Joined: 06 May 2005

Posts: 7
php4 with (togheter) php5. How ?
Try WAMP distribution (for Windows) : search it on goolge

Vincent

-----Message d`origine-----
De : php-objects@yahoogroups.com [mailto:php-objects@yahoogroups.com] De la
part de Marcos A Nobre
Envoyé : jeudi 5 mai 2005 02:42
À : php_mysql@yahoogroups.com; php@...;
brasil-php@yahoogroups.com; php-objects@yahoogroups.com
Objet : [php-objects] php4 with (togheter) php5. How ?

Hi all.

I am trying to do to Apache can differ .php as a php4 file and .php5 as
a php5 file, but before I need to have both PHP4 and PHP5 living
togheter in my environment.

My php4 came from my Linux Distro (rpm packages). Where I have Mysql and
Apache installed too.

From now, how can I install PHP5 (from a tgz, compiling and installing)
ina a way that it can be assembled with my actual environmnent ?

I don`t want to recompile Apache nor Mysql for this chalenge.

For any trick or ideia, TIA.

MN.




PHP Data object relational mapping generator - http://www.meta-language.net/

Yahoo! Groups Links







--------------------------------------------------------------------------------
--------------------------------------

Ce message a ete analyse par deux antivirus maintenus à jour en permanence.
Si vous recevez ce message par erreur, merci de nous en avertir et de détruire
celui-ci.

This message has been scanned by two antivirus constantly updated.
If you receive this message by error, please tell us before destroying it.
Reply with quote
Send private message
View user's profile Post To page top
marcosanobre Posted: Fri May 06, 2005 5:24 am


Joined: 05 May 2005

Posts: 6
php4 with (togheter) php5. How ?
10ks Vincent, I have tryed XAMPP and its dual startup :

One for php4 and another for php5. It does not work with both at the
same time.

TIA,

MN.


Vincent Duffaut escreveu:

> Try WAMP distribution (for Windows) : search it on goolge
>
> Vincent
>
> -----Message d`origine-----
> De : php-objects@yahoogroups.com [mailto:php-objects@yahoogroups.com]
> De la
> part de Marcos A Nobre
> Envoyé : jeudi 5 mai 2005 02:42
> À : php_mysql@yahoogroups.com; php@...;
> brasil-php@yahoogroups.com; php-objects@yahoogroups.com
> Objet : [php-objects] php4 with (togheter) php5. How ?
>
> Hi all.
>
> I am trying to do to Apache can differ .php as a php4 file and .php5 as
> a php5 file, but before I need to have both PHP4 and PHP5 living
> togheter in my environment.
>
> My php4 came from my Linux Distro (rpm packages). Where I have Mysql and
> Apache installed too.
>
> From now, how can I install PHP5 (from a tgz, compiling and installing)
> ina a way that it can be assembled with my actual environmnent ?
>
> I don`t want to recompile Apache nor Mysql for this chalenge.
>
> For any trick or ideia, TIA.
>
> MN.
>
Reply with quote
Send private message
View user's profile Post To page top
vduffaut2000 Posted: Fri May 06, 2005 5:38 am


Joined: 06 May 2005

Posts: 7
php4 with (togheter) php5. How ?
Got it...
Don`t know any other way to do it except with VMWARE alike (multi system
running at same time...)


-----Message d`origine-----
De : php-objects@yahoogroups.com [mailto:php-objects@yahoogroups.com] De la
part de Marcos A Nobre
Envoyé : vendredi 6 mai 2005 02:24
À : php-objects@yahoogroups.com
Objet : Re: [php-objects] php4 with (togheter) php5. How ?

10ks Vincent, I have tryed XAMPP and its dual startup :

One for php4 and another for php5. It does not work with both at the
same time.

TIA,

MN.


Vincent Duffaut escreveu:

> Try WAMP distribution (for Windows) : search it on goolge
>
> Vincent
>
> -----Message d`origine-----
> De : php-objects@yahoogroups.com [mailto:php-objects@yahoogroups.com]
> De la
> part de Marcos A Nobre
> Envoyé : jeudi 5 mai 2005 02:42
> À : php_mysql@yahoogroups.com; php@...;
> brasil-php@yahoogroups.com; php-objects@yahoogroups.com
> Objet : [php-objects] php4 with (togheter) php5. How ?
>
> Hi all.
>
> I am trying to do to Apache can differ .php as a php4 file and .php5 as
> a php5 file, but before I need to have both PHP4 and PHP5 living
> togheter in my environment.
>
> My php4 came from my Linux Distro (rpm packages). Where I have Mysql and
> Apache installed too.
>
> From now, how can I install PHP5 (from a tgz, compiling and installing)
> ina a way that it can be assembled with my actual environmnent ?
>
> I don`t want to recompile Apache nor Mysql for this chalenge.
>
> For any trick or ideia, TIA.
>
> MN.
>



PHP Data object relational mapping generator - http://www.meta-language.net/

Yahoo! Groups Links







--------------------------------------------------------------------------------
--------------------------------------

Ce message a ete analyse par deux antivirus maintenus à jour en permanence.
Si vous recevez ce message par erreur, merci de nous en avertir et de détruire
celui-ci.

This message has been scanned by two antivirus constantly updated.
If you receive this message by error, please tell us before destroying it.
Reply with quote
Send private message
View user's profile Post To page top
haidarahhusain Posted: Sun May 08, 2005 10:34 pm


Joined: 08 May 2005

Posts: 7
php4 with (togheter) php5. How ?
Just install the new one. Use different port.
(Edit httpd.conf)

-husain-

-------------------------
Original Message:
From: Marcos A Nobre <marcos@...>
To: php_mysql@yahoogroups.com, php@..., brasil-php@yahoogroups.com,
phpobjects@yahoogroups.com
Date: Thursday, May 5 2005 07:41 AM
Subject: [php-objects] php4 with (togheter) php5. How ?
Hi all.

I am trying to do to Apache can differ .php as a php4 file and .php5 as
a php5 file, but before I need to have both PHP4 and PHP5 living
togheter in my environment.

My php4 came from my Linux Distro (rpm packages). Where I have Mysql and
Apache installed too.

From now, how can I install PHP5 (from a tgz, compiling and installing)
ina a way that it can be assembled with my actual environmnent ?

I don`t want to recompile Apache nor Mysql for this chalenge.

For any trick or ideia, TIA.

MN.
Reply with quote
Send private message
View user's profile Post To page top
fotospasaporte Posted: Mon May 09, 2005 11:05 am


Joined: 26 Apr 2005

Posts: 10
php4 with (togheter) php5. How ?
Could you explain exactly what you have to do with the conf, pls?

Adios,
MA.

On 5/8/05, Haidarah Husain <husain@...> wrote:
>
> Just install the new one. Use different port.
> (Edit httpd.conf)
>
> -husain-
>
> -------------------------
> Original Message:
> From: Marcos A Nobre <marcos@...>
> To: php_mysql@yahoogroups.com, php@...,
> brasil-php@yahoogroups.com, phpobjects@yahoogroups.com
> Date: Thursday, May 5 2005 07:41 AM
> Subject: [php-objects] php4 with (togheter) php5. How ?
> Hi all.
>
> I am trying to do to Apache can differ .php as a php4 file and .php5 as
> a php5 file, but before I need to have both PHP4 and PHP5 living
> togheter in my environment.
>
> My php4 came from my Linux Distro (rpm packages). Where I have Mysql and
> Apache installed too.
>
> From now, how can I install PHP5 (from a tgz, compiling and installing)
> ina a way that it can be assembled with my actual environmnent ?
>
> I don`t want to recompile Apache nor Mysql for this chalenge.
>
> For any trick or ideia, TIA.
>
> MN.
>
> PHP Data object relational mapping generator -
> http://www.meta-language.net/
> Yahoo! Groups Links
>
>
>
>
>


[Non-text portions of this message have been removed]
Reply with quote
Send private message
View user's profile Post To page top
haidarahhusain Posted: Mon May 09, 2005 3:36 pm


Joined: 08 May 2005

Posts: 7
php4 with (togheter) php5. How ?
As I`ve written before that line,
In another words, edit httpd.conf => change port number.

Not clear enough?

-husain-

-------------------------
Original Message:
From: Miguel Angel Gonzalez <miguelangel.gonzalezm@...>
Date: Monday, May 9 2005 01:05 PM
Could you explain exactly what you have to do with the conf, pls?

Adios,
MA.

On 5/8/05, Haidarah Husain <husain@...> wrote:
>
> Just install the new one. Use different port.
> (Edit httpd.conf)
>
> -husain-
>
> -------------------------
> Original Message:
> From: Marcos A Nobre <marcos@...>
> Date: Thursday, May 5 2005 07:41 AM
> Hi all.
>
> I am trying to do to Apache can differ .php as a php4 file and .php5 as
> a php5 file, but before I need to have both PHP4 and PHP5 living
> togheter in my environment.
>
> My php4 came from my Linux Distro (rpm packages). Where I have Mysql and
> Apache installed too.
>
> From now, how can I install PHP5 (from a tgz, compiling and installing)
> ina a way that it can be assembled with my actual environmnent ?
>
> I don`t want to recompile Apache nor Mysql for this chalenge.
>
> For any trick or ideia, TIA.
>
> MN.
Reply with quote
Send private message
View user's profile Post To page top
marcosanobre Posted: Tue May 10, 2005 10:59 pm


Joined: 05 May 2005

Posts: 6
php4 with (togheter) php5. How ?
Please, you can explain better?
For me is not so clearly yet.

10ks.

MN.

Haidarah Husain escreveu:

> As I`ve written before that line,
> In another words, edit httpd.conf => change port number.
>
> Not clear enough?
>
> -husain-
>
> -------------------------
> Original Message:
> From: Miguel Angel Gonzalez <miguelangel.gonzalezm@...>
> Date: Monday, May 9 2005 01:05 PM
> Could you explain exactly what you have to do with the conf, pls?
>
> Adios,
> MA.
>
> On 5/8/05, Haidarah Husain <husain@...> wrote:
> >
> > Just install the new one. Use different port.
> > (Edit httpd.conf)
> >
> > -husain-
> >
> > -------------------------
> > Original Message:
> > From: Marcos A Nobre <marcos@...>
> > Date: Thursday, May 5 2005 07:41 AM
> > Hi all.
> >
> > I am trying to do to Apache can differ .php as a php4 file and .php5 as
> > a php5 file, but before I need to have both PHP4 and PHP5 living
> > togheter in my environment.
> >
> > My php4 came from my Linux Distro (rpm packages). Where I have Mysql and
> > Apache installed too.
> >
> > From now, how can I install PHP5 (from a tgz, compiling and installing)
> > ina a way that it can be assembled with my actual environmnent ?
> >
> > I don`t want to recompile Apache nor Mysql for this chalenge.
> >
> > For any trick or ideia, TIA.
> >
> > MN.
>
>
> PHP Data object relational mapping generator -
> http://www.meta-language.net/
>
>
> ------------------------------------------------------------------------
> *Yahoo! Groups Links*
>
> * To visit your group on the web, go to:
> http://groups.yahoo.com/group/php-objects/
>
> * To unsubscribe from this group, send an email to:
> php-objects-unsubscribe@yahoogroups.com
> <mailto:php-objects-unsubscribe@yahoogroups.com?subject=Unsubscribe>
>
> * Your use of Yahoo! Groups is subject to the Yahoo! Terms of
> Service <http://docs.yahoo.com/info/terms/>.
>
>



[Non-text portions of this message have been removed]
Reply with quote
Send private message
View user's profile Post To page top
jausmus1 Posted: Tue May 10, 2005 11:10 pm


Joined: 10 May 2005

Posts: 2
php4 with (togheter) php5. How ?
I have done this before, it is entirely possible to run PHP4 and PHP5
inside the same webserver - no need for seperate web server daemons with
seperate ports.

You will need to download the PHP 5 source tarball, extract it, run the
configure command with all of the options you want, and the run make to
compile it, and then make install to install it. When you run configure,
there should be an option to specify a "different than normal" location
to install the compiled files to, so when you run "make install", it
doesn`t overwrite your PHP4 files. Once this is done, you will need to
configure Apache to associate .php5 files with the php5 module - if you
look at the Apache config files and see what configuration is there for
PHP4, then just duplicate it and change to appropriate values to point
to your PHP5 install location, you should be good to go.

-James


On Tue, 2005-05-10 at 14:59 -0300, Marcos A Nobre wrote:

> Please, you can explain better?
> For me is not so clearly yet.
>
> 10ks.
>
> MN.
>
> Haidarah Husain escreveu:
>
> > As I`ve written before that line,
> > In another words, edit httpd.conf => change port number.
> >
> > Not clear enough?
> >
> > -husain-
> >
> > -------------------------
> > Original Message:
> > From: Miguel Angel Gonzalez <miguelangel.gonzalezm@...>
> > Date: Monday, May 9 2005 01:05 PM
> > Could you explain exactly what you have to do with the conf, pls?
> >
> > Adios,
> > MA.
> >
> > On 5/8/05, Haidarah Husain <husain@...> wrote:
> > >
> > > Just install the new one. Use different port.
> > > (Edit httpd.conf)
> > >
> > > -husain-
> > >
> > > -------------------------
> > > Original Message:
> > > From: Marcos A Nobre <marcos@...>
> > > Date: Thursday, May 5 2005 07:41 AM
> > > Hi all.
> > >
> > > I am trying to do to Apache can differ .php as a php4 file
> and .php5 as
> > > a php5 file, but before I need to have both PHP4 and PHP5 living
> > > togheter in my environment.
> > >
> > > My php4 came from my Linux Distro (rpm packages). Where I have
> Mysql and
> > > Apache installed too.
> > >
> > > From now, how can I install PHP5 (from a tgz, compiling and
> installing)
> > > ina a way that it can be assembled with my actual environmnent ?
> > >
> > > I don`t want to recompile Apache nor Mysql for this chalenge.
> > >
> > > For any trick or ideia, TIA.
> > >
> > > MN.
> >
> >
> > PHP Data object relational mapping generator -
> > http://www.meta-language.net/
> >
> >
> >
> ------------------------------------------------------------------------
> > *Yahoo! Groups Links*
> >
> > * To visit your group on the web, go to:
> > http://groups.yahoo.com/group/php-objects/
> >
> > * To unsubscribe from this group, send an email to:
> > php-objects-unsubscribe@yahoogroups.com
> >
> <mailto:php-objects-unsubscribe@yahoogroups.com?subject=Unsubscribe>
> >
> > * Your use of Yahoo! Groups is subject to the Yahoo! Terms of
> > Service <http://docs.yahoo.com/info/terms/>.
> >
> >
>
>
>
> [Non-text portions of this message have been removed]
>
>
>
> PHP Data object relational mapping generator -
> http://www.meta-language.net/
>
>
>
> ______________________________________________________________________
> Yahoo! Groups Links
> * To visit your group on the web, go to:
> http://groups.yahoo.com/group/php-objects/
>
> * To unsubscribe from this group, send an email to:
> php-objects-unsubscribe@yahoogroups.com
>
> * Your use of Yahoo! Groups is subject to the Yahoo! Terms of
> Service.
>


[Non-text portions of this message have been removed]
Reply with quote
Send private message
Post new topic Reply to topic
Display posts from previous:   
 

All times are GMT
Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Freelace Website Designer - Customer web design and software building.
Booking Calendar - reservation calendar script
Land Surveying - total station instruments and equipments
China Wholesale - Electronics Products
Character Studio - Tutorials and Help