From owner-freebsd-questions@FreeBSD.ORG Wed Oct 5 08:02:21 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BFF0716A420 for ; Wed, 5 Oct 2005 08:02:21 +0000 (GMT) (envelope-from freebsduser@comcast.net) Received: from sccrmhc11.comcast.net (sccrmhc11.comcast.net [63.240.76.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5AF5543D45 for ; Wed, 5 Oct 2005 08:02:21 +0000 (GMT) (envelope-from freebsduser@comcast.net) Received: from opteron (c-67-171-212-242.hsd1.or.comcast.net[67.171.212.242]) by comcast.net (sccrmhc11) with SMTP id <20051005080220011009cvcle>; Wed, 5 Oct 2005 08:02:20 +0000 Message-ID: <002c01c5c983$1c3a2ac0$0c64a8c0@opteron> From: "K Anderson" To: "Garrett Cooper" , "FreeBSD Questions" References: <80A9FCAE-B445-4E9D-B42F-7F5D5644B6C6@u.washington.edu><43438264.1040309@servingpeace.com> <795D325A-9591-4B11-83BC-3C30F675CAAC@u.washington.edu> Date: Wed, 5 Oct 2005 01:02:19 -0700 X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-RFC2646: Format=Flowed; Response Cc: Subject: Re: php4 sessions not built by default? 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: Wed, 05 Oct 2005 08:02:21 -0000 ----- Original Message ----- From: "Garrett Cooper" To: "FreeBSD Questions" Sent: Wednesday, October 05, 2005 12:58 AM Subject: Re: php4 sessions not built by default? > > On Oct 5, 2005, at 12:36 AM, Sam Nilsson wrote: > >> Garrett Cooper wrote: >> >>> Just trying to access some session variables via the PHP4 and for >>> some odd reason it doesn't appear as if the function exists. Is this >>> not built in PHP4 by default? And if so, how may I remedy the issue? >>> Thanks, >>> -Garrett >>> >> >> Hi Garrett, >> >> Yeah, I think you are right that it doesn't install session support by >> default. I remember running into this myself. The solution is to install >> the lang/php4-extensions port if you don't already have it installed. >> That port will give you options to install all kinds of php extensions >> that you might need including session support. >> >> If you already have the lang/php4-extensions port installed and you need >> a different way to install session support, install the www/ php4-session >> port directly. >> >> - Sam >> > > Still no dice. Do I need to restart any services or something? Did you shutdown apache then restart it? Also, for giggles find your extensions.ini file (might be found in /usr/local/etc/php) and see if you have a line that says extension=session.so. If not then add it. Shut down apache and then restart it. Hope that helps. ~Mr. Anderson