From owner-freebsd-questions@FreeBSD.ORG Thu Jul 6 20:17:27 2006 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 6FAED16A4DA for ; Thu, 6 Jul 2006 20:17:27 +0000 (UTC) (envelope-from heli@mikestammer.com) Received: from smtp103.sbc.mail.re2.yahoo.com (smtp103.sbc.mail.re2.yahoo.com [68.142.229.102]) by mx1.FreeBSD.org (Postfix) with SMTP id D63AD43D55 for ; Thu, 6 Jul 2006 20:17:26 +0000 (GMT) (envelope-from heli@mikestammer.com) Received: (qmail 22835 invoked from network); 6 Jul 2006 20:17:26 -0000 Received: from unknown (HELO gondolin.mikestammer.com) (mikestammer@sbcglobal.net@68.251.71.132 with login) by smtp103.sbc.mail.re2.yahoo.com with SMTP; 6 Jul 2006 20:17:26 -0000 Received: from localhost (localhost [127.0.0.1]) by gondolin.mikestammer.com (Postfix) with ESMTP id 8B5FD274 for ; Thu, 6 Jul 2006 15:17:25 -0500 (CDT) X-Virus-Scanned: amavisd-new at mikestammer.com Received: from gondolin.mikestammer.com ([127.0.0.1]) by localhost (gondolin.middleearth.mikestammer.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id S2ovscQd--PR for ; Thu, 6 Jul 2006 15:17:23 -0500 (CDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: eric) by gondolin.mikestammer.com (Postfix) with ESMTP id 575C2C9 for ; Thu, 6 Jul 2006 15:17:23 -0500 (CDT) Message-ID: <44AD6FD3.50008@mikestammer.com> Date: Thu, 06 Jul 2006 15:17:23 -0500 From: Eric User-Agent: Thunderbird 1.5.0.2 (Windows/20060308) MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <001601c6a11e$7c9295b0$0501a8c0@Mike8500> <44AD6C48.9040001@cs.earlham.edu> In-Reply-To: <44AD6C48.9040001@cs.earlham.edu> X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: php5-extentsions broken 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 Jul 2006 20:17:27 -0000 Skylar Thompson wrote: > Mike Loiterman wrote: >> After installing the php5-extensions port, I get lots of the following >> errors when trying to start Apache: >> >> PHP Warning: PHP Startup: U\x89\xe5WVS\x83\xec\x14\xe8: Unable to >> initialize module\nModule compiled with module API=20020429, debug=0, >> thread-safety=0\nPHP compiled with module API=20050922, debug=0, >> thread-safety=0\nThese options need to match\n in Unknown on line 0 >> Apache and php are working fine - I can get to the phpinfo page without >> problems. Its just that the extensions aren't being found for >> somereason. >> >> I have treid adding their location to the extensions_dir directive in >> php.ini with no luck. >> >> I have done a portupgrade rRfo lang/php5 php5 which should upgrade >> everything related to php5 and it does, but somehow the extension are not >> being found. >> >> Any ideas? >> > Is your extensions_dir variable set properly in php.ini? last i read extensions_dir is supposed to be commented out. See if commenting it out works. I JUST now updated from php4 to php5 and its working fine. >From /usr/ports/UPDATING: 20040719: AFFECTS: users of PHP AUTHOR: ale@FreeBSD.org The old lang/php4 and lang/php5 ports have been split into 'base' PHP, PEAR, and shared extensions to allow more flexibility and add new features. Upgrading your current PHP installation will result in a 'base' PHP installation (no PEAR and no extensions). PEAR can be found in the new devel/php4-pear and devel/php5-pear ports, while the set of PHP extensions to install can be chosen via the meta-ports lang/php4-extensions and lang/php5-extensions, or installing singular extensions individually. If you have a previous php.ini configuration file, be sure to comment out the extension_dir parameter, since the correct path is statically compiled into the PHP binary. For an overview of the modules used with the old PHP binary, use the command "php -m".