Re: php4 + php5
Add WITHOUT_X11=yes in /etc/make.conf file before running make command. Amitabh On Fri, May 8, 2009 at 12:42 AM, Mark wrote: > -Original Message- > From: Matthew Seaman [mailto:m.sea...@infracaninophile.co.uk] > Sent: donderdag 7 mei 2009 8:29 > To: Mark > Cc: freebsd-questions@freebsd.org > Subject: Re: php4 + php5 > > Mark wrote: > > > > Using a single Apache 1.3.x install, is there a way to install > > > both mod_php4 + mod_php5 together? I can't just upgrade to php5: > > > not every webboard and such accepts php5 yet. On some dirs (or per > > > vhost) I like the Apache server to use php5, though. > > > No. At least, not within the current ports system. Quite apart from > > anything else, the php4 and php5 ports conflict -- they fight over > > installing files to certain locations. I'm also not certain that > > loading both mod_php4 and mod_php5 into the same instance of Apache > > is viable. > > Thanks. I figured as much. So I just upgraded to PHP5 already. :) Only > thing is, I can't get GD to compile properly (which I really need). > Compile keeps failing on the libxcb port. Seems it wants to install all > sorts of X11 stuff (which I don't use). Can I not just build gd.so with > all the X11 baggage? > > Thanks, > > - Mark > > ___ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to " > freebsd-questions-unsubscr...@freebsd.org" > ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
SOLVED (was: RE: php4 + php5)
-Original Message- From: Mark [mailto:ad...@asarian-host.net] Sent: donderdag 7 mei 2009 21:32 To: freebsd-questions@freebsd.org Subject: RE: php4 + php5 > ... So I just upgraded to PHP5 already. :) Only thing is, I can't get > GD to compile properly (which I really need). Compile keeps failing on > the libxcb port. Seems it wants to install all sorts of X11 stuff > (which I don't use). Can I not just build gd.so without all the X11 > baggage? LOL, just adding "WITHOUT_X11=yes" did the trick! Sometimes the obvious is just staring you in the face; and then, obviously, you miss it. :) Thanks, - Mark ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
RE: php4 + php5
-Original Message- From: Matthew Seaman [mailto:m.sea...@infracaninophile.co.uk] Sent: donderdag 7 mei 2009 8:29 To: Mark Cc: freebsd-questions@freebsd.org Subject: Re: php4 + php5 Mark wrote: > > Using a single Apache 1.3.x install, is there a way to install > > both mod_php4 + mod_php5 together? I can't just upgrade to php5: > > not every webboard and such accepts php5 yet. On some dirs (or per > > vhost) I like the Apache server to use php5, though. > No. At least, not within the current ports system. Quite apart from > anything else, the php4 and php5 ports conflict -- they fight over > installing files to certain locations. I'm also not certain that > loading both mod_php4 and mod_php5 into the same instance of Apache > is viable. Thanks. I figured as much. So I just upgraded to PHP5 already. :) Only thing is, I can't get GD to compile properly (which I really need). Compile keeps failing on the libxcb port. Seems it wants to install all sorts of X11 stuff (which I don't use). Can I not just build gd.so with all the X11 baggage? Thanks, - Mark ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: php4 + php5
Mark wrote: Using a single Apache 1.3.x install, is there a way to install both mod_php4 + mod_php5 together? I can't just upgrade to php5: not every webboard and such accepts php5 yet. On some dirs (or per vhost) I like the Apache server to use php5, though. No. At least, not within the current ports system. Quite apart from anything else, the php4 and php5 ports conflict -- they fight over installing files to certain locations. I'm also not certain that loading both mod_php4 and mod_php5 into the same instance of Apache is viable. The standard answer to this sort of problem is to use multiple instances of apache. There's support in the rc scripts to do that[*] -- you'll have to work out a mechanism (proxying, running different instances on different IP numbers or ports, etc.) to get the web traffic into the correct apache instance. However, the conflicts between php4 and php5 make this unfeasible, and probably the solution here is to use separately jailed instances of apache. Cheers, Matthew [*] Well, there certainly is for apache22 -- I assume that the same applies to the other apache versions in the ports. -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW signature.asc Description: OpenPGP digital signature
php4 + php5
Using a single Apache 1.3.x install, is there a way to install both mod_php4 + mod_php5 together? I can't just upgrade to php5: not every webboard and such accepts php5 yet. On some dirs (or per vhost) I like the Apache server to use php5, though. Thanks, - Mark ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: PHP4 & PHP5 on same server?
Mark Bucciarelli wrote: On Tue, Sep 27, 2005 at 11:16:04AM +0200, [EMAIL PROTECTED] wrote: Mark Bucciarelli wrote: Is it possible install both php4 and php5 on the same server using ports? I'm using fastcgi so two different interpreters should be fine. (Rename /usr/local/bin/php to /usr/local/bin/php5-fcgi, for example.) Can I assume the php4 and php5 modules (for example, pear) won't step on each other's toes? I google around but didn't find much on this topic ... :( m We have them as mod with two chrooted Apache servers on two different IPs. Thanks for the reply. From doing some more research list night, my understanding is that the php binary is the whole kit and kaboodle, so if I - build PHP4 from source and - configure it to look in a different spot for extensions, then I should be able to use PHP4 and PHP5 via fastcgi on a per-vhost basis. I just won't be able to rely on ports for updates to PHP4. m I found a way to do it where I can install both php instances from ports. In my case I am using php5-cli (command line interpreter) as well as php5-cgi (compiled for fast cgi) both installed from ports. php5-cli is installed into the normal directories under /usr/local. php5-cgi is installed into an alternate base directory /usr/local/alt. Basically, you can use the PREFIX environment variable to tell the ports system to use an alternate base directory for installation. This works with portupgrade as well. Here are some notes that I took when I was setting this up. Note that I'm using portupgrade (hence the reference to /usr/local/etc/pkgtools.conf)... == Install PHP5 with fastcgi support == In order to have an alternative fastcgi version of php, we need to install it to an alternate location. First this to /usr/local/etc/pkgtools.conf: {{{ MAKE_ARGS { 'php5-cgi*' => 'WITH_APACHE2=yes WITH_FASTCGI=yes' } }}} Assuming that we already have php5 for cli and apache installed, we can install an alternate fastcgi enabled version like this: {{{ $ su - $ mkdir /usr/local/alt $ export PREFIX=/usr/local/alt $ script /usr/local/alt/install.log $ portupgrade -pNi www/php5-cgi $ exit # (exit script) $ exit # (exit su) }}} There can be a few little problems with this process. Here is the preliminary report: Modules not loaded php5-cgi installed fine into the alternate prefix, but it didn't know about any of the extensions (modules) that the main php install had. To fix this, I pointed the new php5-cgi at the main php instance's modules. '''I believe that this will only work if both instances of php5 are the exact same version''' Here is what I did: {{{ $ cd /usr/local/alt/etc # /usr/local/etc/php is a directory that contains an 'extensions.ini' file. # The 'extensions.ini' file lists the extensions that should be loaded. $ ln -s /usr/local/etc/php php }}} - Sam Nilsson ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: PHP4 & PHP5 on same server?
On Tuesday 27 September 2005 02:16, the author [EMAIL PROTECTED] contributed to the dialogue on- Re: PHP4 & PHP5 on same server?: >Mark Bucciarelli wrote: >> Is it possible install both php4 and php5 on the same server using >> ports? >> >> I'm using fastcgi so two different interpreters should be fine. (Rename >> /usr/local/bin/php to /usr/local/bin/php5-fcgi, for example.) >> >> Can I assume the php4 and php5 modules (for example, pear) won't step on >> each other's toes? >> >> I google around but didn't find much on this topic ... :( You can do it on one if you take one server with one php on CGI and the other as a module two pennorth >> >> m > >We have them as mod with two chrooted Apache servers on two different IPs. > >I do not know if this helps. > >Iv. > >___ >freebsd-questions@freebsd.org mailing list >http://lists.freebsd.org/mailman/listinfo/freebsd-questions >To unsubscribe, send any mail to "[EMAIL PROTECTED]" -- 40 yrs navigating and computing in blue waters. English Owner & Captain of British Registered 60' bluewater Ketch S/V Taurus. Currently in San Diego, CA. Sailing bound for Europe via Panama Canal after completing engineroom refit. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: PHP4 & PHP5 on same server?
On Tue, Sep 27, 2005 at 11:16:04AM +0200, [EMAIL PROTECTED] wrote: > Mark Bucciarelli wrote: > >Is it possible install both php4 and php5 on the same server using > >ports? > > > >I'm using fastcgi so two different interpreters should be fine. (Rename > >/usr/local/bin/php to /usr/local/bin/php5-fcgi, for example.) > > > >Can I assume the php4 and php5 modules (for example, pear) won't step on > >each other's toes? > > > >I google around but didn't find much on this topic ... :( > > > >m > > We have them as mod with two chrooted Apache servers on two different IPs. Thanks for the reply. >From doing some more research list night, my understanding is that the php binary is the whole kit and kaboodle, so if I - build PHP4 from source and - configure it to look in a different spot for extensions, then I should be able to use PHP4 and PHP5 via fastcgi on a per-vhost basis. I just won't be able to rely on ports for updates to PHP4. m ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: PHP4 & PHP5 on same server?
Mark Bucciarelli wrote: Is it possible install both php4 and php5 on the same server using ports? I'm using fastcgi so two different interpreters should be fine. (Rename /usr/local/bin/php to /usr/local/bin/php5-fcgi, for example.) Can I assume the php4 and php5 modules (for example, pear) won't step on each other's toes? I google around but didn't find much on this topic ... :( m We have them as mod with two chrooted Apache servers on two different IPs. I do not know if this helps. Iv. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
PHP4 & PHP5 on same server?
Is it possible install both php4 and php5 on the same server using ports? I'm using fastcgi so two different interpreters should be fine. (Rename /usr/local/bin/php to /usr/local/bin/php5-fcgi, for example.) Can I assume the php4 and php5 modules (for example, pear) won't step on each other's toes? I google around but didn't find much on this topic ... :( m ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"