From owner-freebsd-questions@FreeBSD.ORG Thu Oct 6 17:11:08 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 14C8F1065672 for ; Thu, 6 Oct 2011 17:11:08 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (smtp6.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3fd3:cd67:fafa:3d78]) by mx1.freebsd.org (Postfix) with ESMTP id 81C598FC15 for ; Thu, 6 Oct 2011 17:11:07 +0000 (UTC) Received: from seedling.black-earth.co.uk (seedling.black-earth.co.uk [81.187.76.163]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.5/8.14.5) with ESMTP id p96HB2Lo083897 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Thu, 6 Oct 2011 18:11:03 +0100 (BST) (envelope-from m.seaman@infracaninophile.co.uk) X-DKIM: Sendmail DKIM Filter v2.8.3 smtp.infracaninophile.co.uk p96HB2Lo083897 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=infracaninophile.co.uk; s=201001-infracaninophile; t=1317921063; bh=mwOIXoG7YLvLlKIiYDeTQEoX5bQ/X0WqmvTJhM614V0=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type:Cc:Content-Type:Date:From:In-Reply-To: Message-ID:Mime-Version:References:To; z=Message-ID:=20<4E8DE11D.6050608@infracaninophile.co.uk>|Date:=20T hu,=2006=20Oct=202011=2018:10:53=20+0100|From:=20Matthew=20Seaman= 20|User-Agent:=20Mozilla/5.0=20(M acintosh=3B=20Intel=20Mac=20OS=20X=2010.6=3B=20rv:7.0.1)=20Gecko/2 0110929=20Thunderbird/7.0.1|MIME-Version:=201.0|To:=20Grant=20Peel =20|CC:=20freebsd-questions@freebsd.org|Subje ct:=20Re:=20FreeBSD=208.0=20->=20PHP=205.3.x|References:=20<1A8828 A857424EFDBBD748D48DF3512B@GRANTDESKTOP>|In-Reply-To:=20<1A8828A85 7424EFDBBD748D48DF3512B@GRANTDESKTOP>|X-Enigmail-Version:=201.3.2| OpenPGP:=20id=3D60AE908C|Content-Type:=20multipart/signed=3B=20mic alg=3Dpgp-sha1=3B=0D=0A=20protocol=3D"application/pgp-signature"=3 B=0D=0A=20boundary=3D"------------enigA249478639B819C933E284CA"; b=f4MOast7t1te4igRZm7uqbeLHZY3NDkPfJZNeI/l0AWwrbEdeEbw+yq/8tHp9w41x kofpG/kaAgLpluL1v1CLcHpBd78gLiPD2kQuW6il7F4rprMWowPQudgKro6GMJ6M/2 OZ2pwSvhKQX8g46tWE6//SekpTkTmWPnZ57z3fk4= Message-ID: <4E8DE11D.6050608@infracaninophile.co.uk> Date: Thu, 06 Oct 2011 18:10:53 +0100 From: Matthew Seaman User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1 MIME-Version: 1.0 To: Grant Peel References: <1A8828A857424EFDBBD748D48DF3512B@GRANTDESKTOP> In-Reply-To: <1A8828A857424EFDBBD748D48DF3512B@GRANTDESKTOP> X-Enigmail-Version: 1.3.2 OpenPGP: id=60AE908C Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigA249478639B819C933E284CA" X-Virus-Scanned: clamav-milter 0.97.2 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,SPF_FAIL autolearn=no version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on lucid-nonsense.infracaninophile.co.uk Cc: freebsd-questions@freebsd.org Subject: Re: FreeBSD 8.0 -> PHP 5.3.x X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Oct 2011 17:11:08 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigA249478639B819C933E284CA Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 06/10/2011 16:55, Grant Peel wrote: > Short of upgrading the OS, what is the safest way to upgrade a > FreeBSD server to PHP 5.3.x from 5.2.11 ? I am assuming downloading > the ports tarball and rebuilding and reinstalling will do it? Any > advice, samples would be appreciated 8.0 is out of support now as I recall. Recommend upgrading to 8.2 -- you should be able to update the base system independently of updating any ports as the ABI won't change because it's all the same major version number. Update your ports tree to the latest. Update your installed ports to the latest available. You can omit upgrading PHP and things like eaccelerator since you'll be deleting and reinstalling them shortly. Make backups of all of your PHP related ports. Take note of which are the actual applications you want to run -- there are some differences in the available modules between the php52 and the php5 ports, so it won't necessarily be an exact one-for-one swap. Now remove the base php52 port and every port that depends on it. Install the core lang/php5 port -- this resets the default PHP version on your system -- then reinstall your applications, allowing them to add any necessary modules automatically to fulfil their dependencies. If your PHP application code is not installed via ports, then you'll have to manually work out which modules to install -- this is likely to be pretty similar to what you needed with php52 but not necessarily exactly the same. Usually it's a matter of installing a bunch of stuff, trying the application, noting what throws errors due to missing functions and installing the needed modules to provide that. Rinse, repeat. This is safe, in that you should end up with a functioning system, but it is pretty intrusive and requires significant amounts of downtime on your system. To minimize all that, probably the best thing to do is clone your web server into a jail or VM, work on the upgrade there at your leisure, including all needed debugging. Then you should be able to make packages of all the ports in your test system and use those to quickly apply the changes to your live system. This is a key command-line you'll need for that: pkg_create -Rbn portname Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate JID: matthew@infracaninophile.co.uk Kent, CT11 9PW --------------enigA249478639B819C933E284CA Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.16 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk6N4SQACgkQ8Mjk52CukIw81QCfb8vxbQoXZhMmRz8VyJHmg2xb 8rQAoIHvX+PmfncLZT9P2wChD32EgoKy =U4yd -----END PGP SIGNATURE----- --------------enigA249478639B819C933E284CA--