chris#@1command.com
2008-Aug-26 19:56 UTC
changing a ports final destination via make knobs question...
Greetings, Given that the folks at PHP have decided that no one is allowed to use PHP4 any longer. I've decided to *attempt* to install a copy of PHP5 (cgi only) along side my already installed/configured, and in use copy of PHP4 (apache_module, CLI, & CGI). I spent some time attempting to find successful stories regarding my attempt. But all were for different OS's, and most were *quite* dated. So I took a stab at it, after looking at the Makefile in lang/php5. But it did *NOT* end up where I thought it would. In fact, it clobbered some of my PHP4 install. SO, please find here my desperate plea for the make knob(s)/env options required to install a copy of PHP5 (CGI) beside my already installed/working PHP4. I had tried/ hoped to simply create a --prefix=php5/, thinking that I'd end up with: /usr/local/bin/php5/(php-cgi, phpize, php-config), and /usr/local/etc/php5/php-ini-*, /usr/local/include/php5/*, /usr/local/lib/php5/*. by way of the ports system. But I *clearly* didn't set things correctly. *Any* help/advice would be *GREATLY* appreciated. Thank you for all your time and consideration. --Chris
Chris St Denis
2008-Aug-26 20:54 UTC
changing a ports final destination via make knobs question...
chris#@1command.com wrote:> Greetings, > Given that the folks at PHP have decided that no one is allowed > to use PHP4 any longer. I've decided to *attempt* to install a copy > of PHP5 (cgi only) along side my already installed/configured, and > in use copy of PHP4 (apache_module, CLI, & CGI). I spent some time > attempting to find successful stories regarding my attempt. But all > were for different OS's, and most were *quite* dated. So I took a > stab at it, after looking at the Makefile in lang/php5. But it did > *NOT* end up where I thought it would. In fact, it clobbered > some of my PHP4 install. SO, please find here my desperate plea > for the make knob(s)/env options required to install a copy of > PHP5 (CGI) beside my already installed/working PHP4. I had tried/ > hoped to simply create a --prefix=php5/, thinking that I'd end up > with: /usr/local/bin/php5/(php-cgi, phpize, php-config), and > /usr/local/etc/php5/php-ini-*, /usr/local/include/php5/*, > /usr/local/lib/php5/*. by way of the ports system. But I *clearly* > didn't set things correctly. > > *Any* help/advice would be *GREATLY* appreciated. > > Thank you for all your time and consideration. > > --Chris > > > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"This should probably go on freebsd-questions list Try *make **PREFIX=/usr/local/php5* and *make install **PREFIX=/usr/local/php5* I did this to get php4 working as a cgi with php5 installed regularly as mod_php. Seems to work ok. * *
chris#@1command.com
2008-Aug-26 21:09 UTC
changing a ports final destination via make knobs question...
Quoting Chuck Swiger <cswiger@mac.com>:> Hi-- > > On Aug 26, 2008, at 12:42 PM, chris#@1command.com wrote: >> Given that the folks at PHP have decided that no one is allowed >> to use PHP4 any longer. I've decided to *attempt* to install a copy >> of PHP5 (cgi only) along side my already installed/configured, and >> in use copy of PHP4 (apache_module, CLI, & CGI). > [ ... ] >> >> *Any* help/advice would be *GREATLY* appreciated. > > You might consider doing your builds and testing on another machine > entirely, to avoid disrupting a system which is in use.Quite right! But a couple of reasons I elected to do it anyway; * I have a *good* backup schedule * This server is scheduled for upgrade (source && ports) So if anything went too terribly wrong, nothing is lost. Also, it only clobbered some of the includes, and ini files. Given that I had no reason to add any more extensions/libs to the PHP4 version, no harm done. PHP4 runs as it did prior to the PHP5 experiment. :)> > Another option to consider is using a chroot'ed environment or jail > using $DESTDIR (cf /usr/ports/Mk/bsd.destdir.mk). Finally, if > neither of the previous seems to suit, then you can change where > ports are installed by adjusting $LOCALBASE.I'll have a close look at $LOCALBASE. That sounds like a good candidate. With any luck, it'll also cover extensions, ini(s), and related libs. :) Thank you for taking the time to respond. --Chris> > Regards, > -- > -Chuck > >
Chuck Swiger
2008-Aug-26 21:26 UTC
changing a ports final destination via make knobs question...
Hi-- On Aug 26, 2008, at 12:42 PM, chris#@1command.com wrote:> Given that the folks at PHP have decided that no one is allowed > to use PHP4 any longer. I've decided to *attempt* to install a copy > of PHP5 (cgi only) along side my already installed/configured, and > in use copy of PHP4 (apache_module, CLI, & CGI).[ ... ]> > *Any* help/advice would be *GREATLY* appreciated.You might consider doing your builds and testing on another machine entirely, to avoid disrupting a system which is in use. Another option to consider is using a chroot'ed environment or jail using $DESTDIR (cf /usr/ports/Mk/bsd.destdir.mk). Finally, if neither of the previous seems to suit, then you can change where ports are installed by adjusting $LOCALBASE. Regards, -- -Chuck