Re: Multiple versions of PHP

2008-02-22 Thread Mel
On Friday 22 February 2008 04:25:17 patrick wrote:
> I've got a new problem...

Nope, you've got a shoot yourself in the foot problem.

> While I was able to install PHP 5 into a separate location than PHP 4
> (both from ports),

See?
There's a reason ports use CONFLICTS: the ports are conflicting. I don't know 
why people advise using prefixes on conflicting ports - it's not a good 
thing. Actually, it's a bad thing. A really bad thing.

This is what jails are for.

If the maintainer of the php ports would support having both 4 and 5 
installed, he could do it by renaming the CLI binary to php4 and php5 
respectively and in the process break many other ports depending on the fact 
that the cli is called 'php' and more importantly that the pecl-* ports 
depend on phpize giving them the right information. In short: you'll create a 
mess.

Here's what you do:
* Add an IP alias to your network card
* Find some free space on the disk
* read the instructions in jail(8)
* and install php5 (or php4) in the jail.

Now you'll have cleanly seperated php installations and no more prefixing, 
worries about dependencies etc etc. Costs: 400-500M extra diskspace and an 
alias IP, 2-3 hours of work including the build of dependencies. Gains: too 
many to mention.

-- 
Mel
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Multiple versions of PHP

2008-02-21 Thread patrick
Okay, I got it installed, but I had to make temporary changes to
/usr/ports/Mk/bsd.php.mk. My first idea was to build with:

make PREFIX=/usr/local/php5 LOCALBASE=/usr/local/php5

but that didn't work because other things expect LOCALBASE to be
/usr/local (or rather, expect that whatever LOCALBASE is set to will
contain various other supporting build utilities).

It would be nice if bsd.php.mk used ${LOCALPHPBASE} which would by
default be set to ${LOCALBASE}. This would allow for multiple
installations of PHP in different locations.

Patrick


On Thu, Feb 21, 2008 at 7:25 PM, patrick <[EMAIL PROTECTED]> wrote:
> I've got a new problem...
>
>  While I was able to install PHP 5 into a separate location than PHP 4
>  (both from ports), I'm now trying to add a PHP 5 extension
>  (/usr/ports/graphics/php5-gd). The built-in version checking is
>  saying:
>
>  ===>  php5-gd-5.2.5 cannot install: doesn't work with PHP version : 4
>  (Doesn't support PHP 4).
>  *** Error code 1
>
>  ... which would be an issue if my PREFIX was the same, but it's not.
>  Is there a way I can trick the ports system into thinking I don't have
>  PHP 4 installed?
>
>  Patrick
>
>
>
>
>
>  On Tue, Apr 3, 2007 at 8:36 AM, patrick <[EMAIL PROTECTED]> wrote:
>  > Thanks, that worked really well. For those searching the archive for
>  >  an easy answer, you just need to do:
>  >
>  >  make PREFIX=/path/to/where/you/want all install clean
>  >
>  >  Patrick
>  >
>  >
>  >
>  >
>  >  On 4/2/07, Kimi Ostro <[EMAIL PROTECTED]> wrote:
>  >  > On 02/04/07, patrick <[EMAIL PROTECTED]> wrote:
>  >  > > I have a FreeBSD 6.2 server with Apache 1.3.x and PHP 4.4.x built from
>  >  > > ports. I'd like to install PHP 5 from the ports tree, but target its
>  >  > > install location to /usr/local/php5 to keep it separate from the PHP 4
>  >  > > stuff. (I'll be running PHP through fastcgi.) I'm wondering if there's
>  >  > > a way to do built a port where the install root is different from the
>  >  > > default? If not, I'll hand-build PHP5, but I'd much rather take
>  >  > > advantage of ports.
>  >  > >
>  >  > > Thanks,
>  >  > >
>  >  >
>  >  > % man 7 ports
>  >  >
>  >  > look for PREFIX
>  >  >
>  >  > HTH,
>  >  >
>  >  > --
>  >  > Kimi
>  >  >
>  >
>
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Multiple versions of PHP

2008-02-21 Thread patrick
I've got a new problem...

While I was able to install PHP 5 into a separate location than PHP 4
(both from ports), I'm now trying to add a PHP 5 extension
(/usr/ports/graphics/php5-gd). The built-in version checking is
saying:

===>  php5-gd-5.2.5 cannot install: doesn't work with PHP version : 4
(Doesn't support PHP 4).
*** Error code 1

... which would be an issue if my PREFIX was the same, but it's not.
Is there a way I can trick the ports system into thinking I don't have
PHP 4 installed?

Patrick



On Tue, Apr 3, 2007 at 8:36 AM, patrick <[EMAIL PROTECTED]> wrote:
> Thanks, that worked really well. For those searching the archive for
>  an easy answer, you just need to do:
>
>  make PREFIX=/path/to/where/you/want all install clean
>
>  Patrick
>
>
>
>
>  On 4/2/07, Kimi Ostro <[EMAIL PROTECTED]> wrote:
>  > On 02/04/07, patrick <[EMAIL PROTECTED]> wrote:
>  > > I have a FreeBSD 6.2 server with Apache 1.3.x and PHP 4.4.x built from
>  > > ports. I'd like to install PHP 5 from the ports tree, but target its
>  > > install location to /usr/local/php5 to keep it separate from the PHP 4
>  > > stuff. (I'll be running PHP through fastcgi.) I'm wondering if there's
>  > > a way to do built a port where the install root is different from the
>  > > default? If not, I'll hand-build PHP5, but I'd much rather take
>  > > advantage of ports.
>  > >
>  > > Thanks,
>  > >
>  >
>  > % man 7 ports
>  >
>  > look for PREFIX
>  >
>  > HTH,
>  >
>  > --
>  > Kimi
>  >
>
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Multiple versions of PHP

2007-04-03 Thread Nagy László Zsolt

patrick wrote:

Thanks, that worked really well. For those searching the archive for
an easy answer, you just need to do:

make PREFIX=/path/to/where/you/want all install clean
Hmm, what happens if two ports would be in conflict, unless installed 
into separate directories? In other words, how these installed ports 
will be recorded in the package database? I do not see an answer for 
this in "man 7 ports".


 Laszlo

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Multiple versions of PHP

2007-04-03 Thread patrick

Thanks, that worked really well. For those searching the archive for
an easy answer, you just need to do:

make PREFIX=/path/to/where/you/want all install clean

Patrick


On 4/2/07, Kimi Ostro <[EMAIL PROTECTED]> wrote:

On 02/04/07, patrick <[EMAIL PROTECTED]> wrote:
> I have a FreeBSD 6.2 server with Apache 1.3.x and PHP 4.4.x built from
> ports. I'd like to install PHP 5 from the ports tree, but target its
> install location to /usr/local/php5 to keep it separate from the PHP 4
> stuff. (I'll be running PHP through fastcgi.) I'm wondering if there's
> a way to do built a port where the install root is different from the
> default? If not, I'll hand-build PHP5, but I'd much rather take
> advantage of ports.
>
> Thanks,
>

% man 7 ports

look for PREFIX

HTH,

--
Kimi


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Multiple versions of PHP

2007-04-02 Thread Kimi Ostro

On 02/04/07, patrick <[EMAIL PROTECTED]> wrote:

I have a FreeBSD 6.2 server with Apache 1.3.x and PHP 4.4.x built from
ports. I'd like to install PHP 5 from the ports tree, but target its
install location to /usr/local/php5 to keep it separate from the PHP 4
stuff. (I'll be running PHP through fastcgi.) I'm wondering if there's
a way to do built a port where the install root is different from the
default? If not, I'll hand-build PHP5, but I'd much rather take
advantage of ports.

Thanks,



% man 7 ports

look for PREFIX

HTH,

--
Kimi
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"