From owner-freebsd-questions@FreeBSD.ORG Thu Oct 6 17:55:53 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 B17A51065670 for ; Thu, 6 Oct 2011 17:55:53 +0000 (UTC) (envelope-from paul@ifdnrg.com) Received: from ifdnrg30.ifdnrg.com (outbound.ifdnrg.com [193.200.98.138]) by mx1.freebsd.org (Postfix) with ESMTP id 6703E8FC15 for ; Thu, 6 Oct 2011 17:55:52 +0000 (UTC) Received: from [192.168.1.75] (188-221-77-161.zone12.bethere.co.uk [188.221.77.161]) (authenticated bits=0) by ifdnrg30.ifdnrg.com (8.14.5/8.14.4) with ESMTP id p96Htnr7046110; Thu, 6 Oct 2011 18:55:51 +0100 (BST) (envelope-from paul@ifdnrg.com) Message-ID: <4E8DEBA6.4050902@ifdnrg.com> Date: Thu, 06 Oct 2011 18:55:50 +0100 From: Paul Macdonald User-Agent: Mozilla/5.0 (Windows NT 5.2; 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> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 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:55:53 -0000 On 06/10/2011 16:55, Grant Peel wrote: > Hi all, > 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, > -Grant > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > It's not too traumatic an upgrade, and initially is as simple as you suggest, remember to uninstall extenstions via the meta port lang/php52-extensions (and reinstall desired extensions via lang/php5-extensions) further suggestions, * *copy the config make options from phpinfo() on 5.2 as it'll help you remember what you need for 5.3. keep a copy of you php.ini obv also. check http://uk3.php.net/migration53 you'll likely know but 5.3 is quite different from 5.2 so there's a few gotchas, such as changes to log levels, no more register globals, you must explicitly use $_POST or $_GET no more register_long_arrays, you cannot use $HTTP_POST_VARS short tags are probably off round about that version, if i recall, there was some changes to a lot of my $_SESSION code so check any code that uses that, (but this could well have been my implementations.) good luck Paul.