From owner-freebsd-questions@FreeBSD.ORG Sat May 31 22:09:12 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 844D1106564A for ; Sat, 31 May 2008 22:09:12 +0000 (UTC) (envelope-from jhary@unsane.co.uk) Received: from unsane.co.uk (unsane-pt.tunnel.tserv5.lon1.ipv6.he.net [IPv6:2001:470:1f08:110::2]) by mx1.freebsd.org (Postfix) with ESMTP id 0FCD68FC17 for ; Sat, 31 May 2008 22:09:11 +0000 (UTC) (envelope-from jhary@unsane.co.uk) Received: from crab.unsane.co.uk (crab.unsane.co.uk [10.0.0.111]) (authenticated bits=0) by unsane.co.uk (8.14.0/8.14.0) with ESMTP id m4VM8V9m015384 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 31 May 2008 23:08:31 +0100 (BST) (envelope-from jhary@unsane.co.uk) Message-ID: <4841CC69.5000404@unsane.co.uk> Date: Sat, 31 May 2008 23:08:41 +0100 From: Vince Hoffman User-Agent: Thunderbird 2.0.0.14 (X11/20080507) MIME-Version: 1.0 References: <7B9E3A32-180C-4D24-991A-4EF1950D50E2@kevinkempterllc.com> <4841BB5F.5050308@infracaninophile.co.uk> In-Reply-To: <4841BB5F.5050308@infracaninophile.co.uk> X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org, kevin kempter Subject: Re: freeBSD PHP issues 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: Sat, 31 May 2008 22:09:12 -0000 Matthew Seaman wrote: > kevin kempter wrote: >> Hi List; >> >> I'm fairly new to freeBSD, but a long time Linux biggot. I installed >> freeBSD7, then I installed PHP like this: >> >> # cd /usr/ports/lang/php5 >> # make config >> # make install >> >> Next I installed PostgreSQL and pgFouine >> >> However when I run pgfouine to generate a log report I get this error: >> >> $ php ./pgfouine.php -file $PGDATA/pg_log/postgresql-31.log > rept.html >> PHP Fatal error: Call to undefined function preg_replace() in >> /usr/local/pgsql/pgfouine/include/reporting/geshi/geshi.php on line 474 >> >> preg_replace() I believe is a PHP built-in, anyone know how to correct >> this, or have thoughts on what I may be doing wrong. Maybe I've missed >> some sort of config step? >> > > You need to install the PCRE module: > > # cd /usr/ports/devel/php5-pcre > # make install > > and similarly for all of the other PHP modules you will undoubtedly > find yourself needing. > A quicker way of doing this is cd /usr/ports/lang/php5-extensions make config then choose what extensions you need, and then make install clean Vince > Cheers, > > Matthew >