Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:40334 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 8636 invoked from network); 8 Sep 2008 10:32:56 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 8 Sep 2008 10:32:56 -0000 Authentication-Results: pb1.pair.com header.from=news@ger.gmane.org; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=php-php-dev@m.gmane.org; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain m.gmane.org designates 80.91.229.2 as permitted sender) X-PHP-List-Original-Sender: php-php-dev@m.gmane.org X-Host-Fingerprint: 80.91.229.2 main.gmane.org Linux 2.5 (sometimes 2.4) (4) Received: from [80.91.229.2] ([80.91.229.2:47869] helo=ciao.gmane.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E4/69-58883-65FF4C84 for ; Mon, 08 Sep 2008 06:32:55 -0400 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Kce3A-0006zn-2L for internals@lists.php.net; Mon, 08 Sep 2008 10:32:52 +0000 Received: from 213.83.3.2 ([213.83.3.2]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 08 Sep 2008 10:32:52 +0000 Received: from k by 213.83.3.2 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 08 Sep 2008 10:32:52 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: internals@lists.php.net Date: Mon, 08 Sep 2008 12:32:44 +0200 Lines: 40 Message-ID: References: <48C4358A.8060402@iamjochem.com> <48C4EDF8.5030102@iamjochem.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Gmane-NNTP-Posting-Host: 213.83.3.2 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (windows-nt) Cancel-Lock: sha1:pDK9E9sfpyGCuNzenZ4pfHtwhv8= Sender: news Subject: Re: [PHP-DEV] make fails due to ext/iconv/php_have_ibm_iconv.h missing (5.3 including alpha2) From: k@rl.pflaesterer.de ((Karl =?iso-8859-1?Q?Pfl=E4sterer?=)) Jochem Maas writes: > Alexey Zakhlestin schreef: >> On Mon, Sep 8, 2008 at 12:11 AM, Jochem Maas wrote: >> >>> if anyone knows of some details info on how to >>> keep multiple installs of >>> php around (including apache modules) and being able to switch between them >>> with minimal fuss then >>> I be very happy to learn! >> >> the easiest option is to use different prefix-paths for php >> >> default installation: ./configure --prefix=/usr/local >> some custom installation: ./configure --prefix=/opt/php53-test > > I do this already, only the apache module, if compiled, is always installed where > apxs2 says it should be put ... ergo it overwrites the version that I consider/use > as default/production. I use symlinks for that. I have a symlink /usr/local/php-active which points to e.g /usr/local/php-5.2.6 (the stable version) (php is compiled with --prefix=/usr/local/php-5.2.6) /usr/local/bin/php is a symlink which points to /usr/local/php-active/bin/php. So I am sure if I call php from the commandline that the right php version gets called. For the apache module my makefile with which I compile php renames the .so file to another name and I have another symlink libphpactive.so which points to that lib. So if I want to upgrade I compile a new php version, test it from the command line and fpr apache I use a test process which has the same docroot as the production server but uses the newly build php lib. If all goes well I change two symlinks, restart Apache and am finished. If I saw later problems I could easily jump back to an earlier version by changing these two symlinks. (I compile php as DSO; if you compile PHP as statically bound Apache module it's the same. Just put every Apache version in an own directory and have a symlink which points to the version you want for production.) Bye KP