From owner-freebsd-apache@FreeBSD.ORG Thu Aug 31 07:47:37 2006 Return-Path: X-Original-To: freebsd-apache@freebsd.org Delivered-To: freebsd-apache@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 73A5916A4DD for ; Thu, 31 Aug 2006 07:47:37 +0000 (UTC) (envelope-from mv@thebeastie.org) Received: from p4.roq.com (ns1.ecoms.com [207.44.130.137]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0F92A43D45 for ; Thu, 31 Aug 2006 07:47:34 +0000 (GMT) (envelope-from mv@thebeastie.org) Received: from p4.roq.com (localhost.roq.com [127.0.0.1]) by p4.roq.com (Postfix) with ESMTP id 2D7864CD1D for ; Thu, 31 Aug 2006 07:49:05 +0000 (GMT) Received: from vaulte.jumbuck.com (ppp166-27.static.internode.on.net [150.101.166.27]) by p4.roq.com (Postfix) with ESMTP id C56204CCCC for ; Thu, 31 Aug 2006 07:49:04 +0000 (GMT) Received: from vaulte.jumbuck.com (localhost [127.0.0.1]) by vaulte.jumbuck.com (Postfix) with ESMTP id BCA7B8A065; Thu, 31 Aug 2006 17:47:32 +1000 (EST) Received: from [192.168.46.102] (unknown [192.168.46.250]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by vaulte.jumbuck.com (Postfix) with ESMTP id 99FE88A029; Thu, 31 Aug 2006 17:47:32 +1000 (EST) Message-ID: <44F69414.8060503@thebeastie.org> Date: Thu, 31 Aug 2006 17:47:32 +1000 From: Michael Vince User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.7.13) Gecko/20060727 X-Accept-Language: en-us, en MIME-Version: 1.0 To: up@3.am References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP X-Virus-Scanned: ClamAV using ClamSMTP Cc: freebsd-apache@freebsd.org Subject: Re: Apache 2.2 with mod_php5.1.5 problem X-BeenThere: freebsd-apache@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Support of apache-related ports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 Aug 2006 07:47:37 -0000 up@3.am wrote: >Hi: > >I just installed Apache/2.2.3 and php_5.1.5 (from ports) on a server >that's going to replace much older versions of both. It works for the >most part, except users with phpMyAdmin aren't. The following error is >occuring: > >Fatal error: Call to undefined function preg_match() in > >/home/servers/sitename/source/phpMyAdminStories/libraries/defines.lib.php >on line 36 > >I did a google on it, and found a recommendation to install >/var/db/ports/php5-extensions. I attempted that, and the problems began: > >1st attempt: got a nice color screen giving me checkbox options. I check >everything I could worry about wanting some day, but if fails trying to >install something for a calender extension. Ok, I figure I can do >without. > >2nd attempt: even after a "make clean" and a "make distclean" the port >attempted to build it without giving me that screen, and it eventually >stops with a complaint that php5 itself is already installed and asks me >to deinstall and reinstall it. It also seems to think that an older >version of php5 is installed (5.1.4 instead of 5.1.5), even though I had >properly deinstalled the old one, cleaned, etc. > >Do I have to deinstall php_5.1.5 and all of the modules for it then >install these extensions, THEN install php5 ?? > >Thanks in Advance, > >James Smallacombe PlantageNet, Inc. CEO and Janitor > > Do this Nuke your whole php install using: pkg_delete -f /var/db/pkg/php* Nuke your already chosen port options on php: rm -rf /var/db/ports/php* Place "BATCH=yes" into /etc/make.conf (you may need to create this file) This should choose all the options you need which are normally default. Then install phpmyadmin directly. Don't install the php5 first, this way phpmyadmin will get the dependencies it needs portupgrade -N /usr/ports/databases/phpmyadmin Plan B If this doesn't work do a -kfa in portupagrade (which deliberately stands for "Kick Fckin Ass", like like the old Doom cheats) portupgrade -Nkfa /usr/ports/databases/phpmyadmin And everything should be good. Also note that "a" stands for everything so it might be safer to first try it without it in the plan B option and try it as a plan C option. Regards, Mike