From owner-freebsd-stable@FreeBSD.ORG Mon Dec 20 22:31:11 2004 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A9B7716A53C for ; Mon, 20 Dec 2004 22:31:10 +0000 (GMT) Received: from smtp006.bizmail.sc5.yahoo.com (smtp006.bizmail.sc5.yahoo.com [66.163.175.83]) by mx1.FreeBSD.org (Postfix) with SMTP id 5A64743D39 for ; Mon, 20 Dec 2004 22:31:10 +0000 (GMT) (envelope-from noackjr@alumni.rice.edu) Received: from unknown (HELO optimator.noacks.org) (noackjr@supercrime.org@70.240.189.26 with login) by smtp006.bizmail.sc5.yahoo.com with SMTP; 20 Dec 2004 22:31:10 -0000 Received: from localhost (localhost [127.0.0.1]) by optimator.noacks.org (Postfix) with ESMTP id 4973D62FC; Mon, 20 Dec 2004 16:31:09 -0600 (CST) Received: from optimator.noacks.org ([127.0.0.1]) by localhost (optimator.noacks.org [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 07017-14; Mon, 20 Dec 2004 16:31:07 -0600 (CST) Received: from compgeek.noacks.org (compgeek [192.168.1.10]) by optimator.noacks.org (Postfix) with ESMTP id 90D1D614E; Mon, 20 Dec 2004 16:31:07 -0600 (CST) Received: from [127.0.0.1] (localhost [127.0.0.1]) by compgeek.noacks.org (8.13.1/8.13.1) with ESMTP id iBKMV7IW019605; Mon, 20 Dec 2004 16:31:07 -0600 (CST) (envelope-from noackjr@alumni.rice.edu) Message-ID: <41C752AB.9050204@alumni.rice.edu> Date: Mon, 20 Dec 2004 16:31:07 -0600 From: Jon Noack User-Agent: Mozilla Thunderbird 1.0 (X11/20041209) X-Accept-Language: en-us, en MIME-Version: 1.0 To: bob References: <41C74143.30303@charter.net> <1495.192.168.1.50.1103578560.squirrel@192.168.1.50> <41C7480A.9090302@charter.net> In-Reply-To: <41C7480A.9090302@charter.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at noacks.org cc: freebsd-stable@freebsd.org Subject: Re: php5.0.3_1 doesn't run after update X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: noackjr@alumni.rice.edu List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Dec 2004 22:31:11 -0000 On 12/20/04 15:45, bob wrote: > Jon Noack wrote: >> bob wrote: >>> I am running 4.10 stable. >>> >>> I upgraded to php5.0.3_1 by: >>> >>> cvsup >>> portsdb -Uu >>> pkgdb -vuf >>> portupgrade -v php5-session >>> portupgrade -v php5-mysql >>> ... >>> portupgrade -v php5 >>> >>> PHP Warning: PHP Startup: Unable to load dynamic library >>> /usr/local/lib/php/20041030/session.so >>> >>> I get the same messages for the 12 modules that I updated. >>> >>> In /usr/local/lib/php I have: >>> >>> drwxr-xr-x 2 root wheel 1536 Dec 20 13:58 20040412 >>> drwxr-xr-x 2 root wheel 512 Dec 20 14:00 build >>> drwxr-xr-x 3 root wheel 512 Sep 15 10:31 pear >>> >>> Now much of php doesn't work. How do you fix this? >>> >>> What did I do wrong to cause this to happen? >> >> Rebuild all of your extensions ("portupgrade -f "). The most >> recent update of the php5 port changed the extension directory. >> This probably deserves an entry in UPDATING. >> >> Also, any reason you don't use "portupgrade -a"? > > I didn't want to update some things that I no longer use (thunderbird, > eg). I've started running a web server on this machine and I don't care > about x-windows things now. I'm not sure if my thinking is correct on > this. It seemed a little less risky. Everything on the machine should be kept up-to-date. If you don't plan on using using it, you should pkg_deinstall it ("less is more" when it comes to security). Just leaving old versions sitting around is a security nightmare. Plus, running "portupgrade -a" is so much easier... > Should I run "portupgrade -f php5" before or after php5-extensions > and/or php5-session, etc? Here's what portversion -v says: > > ... Answered in another response by Matthew Fuller. > If it's just a problem with the extensions directory, can I change the > pointer to point to the right directory? Do you know where that is? The pointer is specified in /usr/local/etc/php.ini. Setting "extension_dir" to "/usr/local/lib/php/20040412/" should make php find the extensions again, but no guarantees on whether it will work -- there had to be a reason to bump the date. In any case, rebuilding your extensions is the long-term solution. Jon