Re: installing php4 and php5 on one machine

2008-05-12 Thread Mel
On Monday 12 May 2008 22:46:41 Zbigniew Szalbot wrote:
> Hello,
>
> Mel pisze:
> > On Monday 12 May 2008 16:54:37 Zbigniew Szalbot wrote:
> >> How would you advise me to go about installing php4? I do not think I
> >> will be able to do it from ports (it will require an ancient version of
> >> php 4.10). Also I do not want to mix dependencies and such.
> >
> > Jail for sure.
>
> Thanks!
>
> > There's more then one reason to do this in a jail. First of all, you can
> > seperate the php versions, something that's not supported by the ports
> > system.
>
> And here comes my question. Can the php5 installation be left intact and
>php4 be built in a jail?

Yes. I build ports for 6.x machines, on a 7.x machine in a jail. So you can 
seperate it perfectly.

>And finally, would I also need to build 
> another instance of apache in jail?

Yes. You basically create a seperate FreeBSD installation, without the kernel. 
Complete with devfs and seperate user accounts. It is better to start this 
way and if you get paranoid about all the things running, it is easy to 
remove things one by one till it stops working ;)

-- 
Mel

Problem with today's modular software: they start with the modules
and never get to the software part.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: installing php4 and php5 on one machine

2008-05-12 Thread Zbigniew Szalbot

Hello,

Mel pisze:


On Monday 12 May 2008 16:54:37 Zbigniew Szalbot wrote:


How would you advise me to go about installing php4? I do not think I
will be able to do it from ports (it will require an ancient version of
php 4.10). Also I do not want to mix dependencies and such.


Jail for sure.


Thanks!

There's more then one reason to do this in a jail. First of all, you can 
seperate the php versions, something that's not supported by the ports 
system.


And here comes my question. Can the php5 installation be left intact and 
  php4 be built in a jail? And finally, would I also need to build 
another instance of apache in jail?


Thank you again!

--
Zbigniew Szalbot
www.lc-words.com


smime.p7s
Description: S/MIME Cryptographic Signature


Re: installing php4 and php5 on one machine

2008-05-12 Thread Mel
On Monday 12 May 2008 16:54:37 Zbigniew Szalbot wrote:

> How would you advise me to go about installing php4? I do not think I
> will be able to do it from ports (it will require an ancient version of
> php 4.10). Also I do not want to mix dependencies and such.

Jail for sure.

> Another 
> issue is how to host the site. Use a different port for it (*:8080)? Use
> jails (never been in jail so no experience with it so far ;)?
> I do have several IPs to play with so I can use them if that helps.

Yep, add an IP alias to the external interface, build the jail on that and 
you're pretty much done (DNS of course being the missing link).
There's tools like ezjail in ports, but imo that's more for people who build 
jails on a regular basis. Also, it is a good idea to do it by hand at least 
once, so you get a feel for the process and know what's going on underneath 
the ezjail magic.

Believe it or not, the manpage for jail(8) contains a section with the 
commands to setup a jail from scratch and touches on all the variables 
required to have it started upon boot.

There's more then one reason to do this in a jail. First of all, you can 
seperate the php versions, something that's not supported by the ports 
system.
Secondly, you can add a second jail where you're going to work the migration 
on. Once satisfied, you bring them both down, change ip of the new version 
and wait for bug reports. If it looks like there's too many bugs, you still 
have the old version available and you can switch the ip's back. You can do 
this as often as you want, till everything looks good.
Thirdly, the cost in memory usage for a jail is negligable compared to the 
above gains, especially since it will primarily run apache (cron and sshd 
being the most common other programs).
-- 
Mel

Problem with today's modular software: they start with the modules
and never get to the software part.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: installing php4 and php5 on one machine

2008-05-12 Thread Odhiambo Washington
On Mon, May 12, 2008 at 5:54 PM, Zbigniew Szalbot <[EMAIL PROTECTED]>
wrote:

> Hi there,
>
> I am using FreeBSD 7.0-RELEASE-p1. The machine has PHP 5.2.6 with
> Suhosin-Patch 0.9.6.2 (cli). We're going to host one of our sites which
> currently is hosted by our ISP. This site requires php4 to work before it
> gets rewritten or dumped. Anyway, my current BSD machine is a dedicated one
> so I can do with it what I like but I am not really sure how to go about
> installing two versions of php. php5 has been installed from ports and works
> well.
>

The main issue here is: Which php would you want Apache to refer to, and at
what time? Honestly, I  don't have an answer for this!.
Perhaps you have to run a whole different system within a jail:-(
There may be an easier way, but when I read this, that is where my /etc (end
of thinking capacity) got me for now.

How would you advise me to go about installing php4? I do not think I will
> be able to do it from ports (it will require an ancient version of php
> 4.10). Also I do not want to mix dependencies and such. Another issue is how
> to host the site. Use a different port for it (*:8080)? Use jails (never
> been in jail so no experience with it so far ;)?


Why not just use the  final version of php-4.x.x? Even this breaks your
site?


>
> I do have several IPs to play with so I can use them if that helps.


Use a jail.


>
>
> I'd appreciate your opinion about it. Many thanks to you all in advance!


I am not even sure my opinion helps, but well, the whole world reads this
list!:-)



-- 
Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254733744121/+254722743223
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

"Oh My God! They killed init! You Bastards!"
--from a /. post
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


installing php4 and php5 on one machine

2008-05-12 Thread Zbigniew Szalbot

Hi there,

I am using FreeBSD 7.0-RELEASE-p1. The machine has PHP 5.2.6 with 
Suhosin-Patch 0.9.6.2 (cli). We're going to host one of our sites which 
currently is hosted by our ISP. This site requires php4 to work before 
it gets rewritten or dumped. Anyway, my current BSD machine is a 
dedicated one so I can do with it what I like but I am not really sure 
how to go about installing two versions of php. php5 has been installed 
from ports and works well.


How would you advise me to go about installing php4? I do not think I 
will be able to do it from ports (it will require an ancient version of 
php 4.10). Also I do not want to mix dependencies and such. Another 
issue is how to host the site. Use a different port for it (*:8080)? Use 
jails (never been in jail so no experience with it so far ;)?


I do have several IPs to play with so I can use them if that helps.

I'd appreciate your opinion about it. Many thanks to you all in advance!

--
Zbigniew Szalbot
www.lc-words.com


smime.p7s
Description: S/MIME Cryptographic Signature