From owner-freebsd-questions@FreeBSD.ORG Sun Dec 12 08:18:18 2004 Return-Path: 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 AF30C16A4CE for ; Sun, 12 Dec 2004 08:18:18 +0000 (GMT) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.197]) by mx1.FreeBSD.org (Postfix) with ESMTP id 506C343D2D for ; Sun, 12 Dec 2004 08:18:18 +0000 (GMT) (envelope-from moliveri@gmail.com) Received: by rproxy.gmail.com with SMTP id z35so560872rne for ; Sun, 12 Dec 2004 00:18:17 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=S/uLPzGAk8Hh3+v+HdSMLNVOCL6Up7RFrxhSdtKnZ20EHj9HkX4nGOj8t4/YeUbDkJBT057IlasG5GnalohK36PXXUQRrtUbE3oaUpRymoM8Q1b1P+Mu8Y52pwynauSkfwAy1ExTUpfQmL5VbZ1TTs5/AFXdqh7ss4Q6LPjRiX0= Received: by 10.38.83.22 with SMTP id g22mr1119458rnb; Sun, 12 Dec 2004 00:18:17 -0800 (PST) Received: by 10.38.96.35 with HTTP; Sun, 12 Dec 2004 00:18:16 -0800 (PST) Message-ID: <1e58dbf604121200182c82c95c@mail.gmail.com> Date: Sun, 12 Dec 2004 02:18:16 -0600 From: Mike Oliveri To: mrb@bmyster.com, freebsd-questions@freebsd.org In-Reply-To: <20041212024530.M53937@bmyster.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <1e58dbf604121114253bc31694@mail.gmail.com> <20041212024530.M53937@bmyster.com> Subject: Re: SquirrelMail woes X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Mike Oliveri List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Dec 2004 08:18:18 -0000 > LoadModule php4_module libexec/libphp4.so > AddModule mod_php4.c > AddType application/x-httpd-php .php These were still on and okay. PHP in general still works, as when I made a phpinfo() file to test PHP, it came up just fine and displayed the info. > 2. i would also check /usr/local/etc/ and make sure theres a php.ini , by > default it gets named php.ini-dist when first installed , you have to rename > it php.ini for it to work .,..might also want to check for a setting in that file > > register_globals = On > > usually its Off by default My php.ini file is /usr/local/etc/php.ini and it appears to be unchanged from the previous one before the upgrade. However, register_globals was Off. I turned it on and restarted Apache via '/usr/local/etc/rc.d/apache.sh restart' and tried again, but I'm still getting the same error related to the sessions: [Sun Dec 12 02:13:59 2004] [error] PHP Fatal error: Call to undefined function: session_id() in /usr/local/www/data/webmail/functions/global.php on line 293 Take care, Mike > > hope this helps > -- > Brent Bailey CCNA > Bmyster LLC > Computer Networking and Webhosting > Network Engineer, Webmaster, President > http://www.bmyster.com > mrb@bmyster.com > 207-490-5992 > > On Sat, 11 Dec 2004 16:25:30 -0600, Mike Oliveri wrote > > > > I've been trying to upgrade SquirrelMail and PHP from the ports (I'm > > on FreeBSD 4.9) and keep running into the following error in my > > Apache error log: > > > > [Sat Dec 11 16:14:58 2004] [error] PHP Fatal error: Call to > > undefined function: session_id() in > > /usr/local/www/data/webmail/functions/global.php on line 293 > > > > The SquirrelMail wiki says to rebuild PHP with --enable-session, and > > also has the suggestion session.file_handler set to "files" (I assume > > it means session-save_handler as that's all I found). If I run > > pkg_version -v, here's what it has to say about PHP, so I assume > > php-session is the equivalent of compiling with --enable-session: > > > > php4-4.3.9_1 = up-to-date with port > > php4-gettext-4.3.9_1 = up-to-date with port > > php4-mbstring-4.3.9_1 = up-to-date with port > > php4-mhash-4.3.9_1 = up-to-date with port > > php4-openssl-4.3.9_1 = up-to-date with port > > php4-pcre-4.3.9_1 = up-to-date with port > > php4-session-4.3.9_1 = up-to-date with port > > php4-xml-4.3.9_1 = up-to-date with port > > > > Everything worked fine before the upgrade. Everything appears okay > > with Apache (1.33 also just upgraded from ports) and PHP in general > > (a phpinfo() file works fine). Any help or insight would be greatly appreciated! > > > > Take care, > > Mike > > moliveri@gmail.com > > _______________________________________________ > > 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" > >