From owner-freebsd-apache@FreeBSD.ORG Mon Aug 28 18:51:56 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 6CC6D16A4DD for ; Mon, 28 Aug 2006 18:51:56 +0000 (UTC) (envelope-from 000.fbsd@quip.cz) Received: from slimak.dkm.cz (slimak.dkm.cz [62.24.64.34]) by mx1.FreeBSD.org (Postfix) with SMTP id 92A6543D53 for ; Mon, 28 Aug 2006 18:51:54 +0000 (GMT) (envelope-from 000.fbsd@quip.cz) Received: (qmail 61010 invoked by uid 0); 28 Aug 2006 18:51:52 -0000 Received: from grimm.quip.cz (HELO ?192.168.1.2?) (213.220.192.218) by slimak.dkm.cz with SMTP; 28 Aug 2006 18:51:52 -0000 Message-ID: <44F33B48.6080606@quip.cz> Date: Mon, 28 Aug 2006 20:51:52 +0200 From: Miroslav Lachman <000.fbsd@quip.cz> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 X-Accept-Language: cs, cz, en, en-us MIME-Version: 1.0 To: up@3.am References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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: Mon, 28 Aug 2006 18:51:56 -0000 Hi, 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 ?? Definitely not. pkg_info command will list installed packages and version. If you want to change something in port configuration dialog (e.g. php5-extensions), just run `make config` in port directory or remove old configuration by `make rmconfig`. Then make install clean and you have what you want (or better use portinstall / protupgrade commands [from /usr/ports/sysutils/portupgrade]) Miroslav Lachman