From owner-freebsd-questions@FreeBSD.ORG Sat May 31 20:56:17 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 311E8106566C for ; Sat, 31 May 2008 20:56:17 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (gate6.infracaninophile.co.uk [IPv6:2001:8b0:151:1::1]) by mx1.freebsd.org (Postfix) with ESMTP id 760D48FC21 for ; Sat, 31 May 2008 20:56:16 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [IPv6:::1]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.2/8.14.2) with ESMTP id m4VKu7bW069310; Sat, 31 May 2008 21:56:08 +0100 (BST) (envelope-from m.seaman@infracaninophile.co.uk) X-DKIM: Sendmail DKIM Filter v2.5.5 smtp.infracaninophile.co.uk m4VKu7bW069310 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=infracaninophile.co.uk; s=200708; t=1212267368; bh=gDE+uK1PmfS2Lu xw2YY8PBLJIOQY4bRHn4A3qOofnjg=; h=Message-ID:Date:From:MIME-Version: To:CC:Subject:References:In-Reply-To:Content-Type:Cc:Content-Type: Date:From:In-Reply-To:Message-ID:Mime-Version:References:To; z=Mes sage-ID:=20<4841BB5F.5050308@infracaninophile.co.uk>|Date:=20Sat,=2 031=20May=202008=2021:55:59=20+0100|From:=20Matthew=20Seaman=20|Organization:=20Infracaninophile|User -Agent:=20Thunderbird=202.0.0.14=20(X11/20080503)|MIME-Version:=201 .0|To:=20kevin=20kempter=20|CC:=20freebs d-questions@freebsd.org|Subject:=20Re:=20freeBSD=20PHP=20issues|Ref erences:=20<7B9E3A32-180C-4D24-991A-4EF1950D50E2@kevinkempterllc.co m>|In-Reply-To:=20<7B9E3A32-180C-4D24-991A-4EF1950D50E2@kevinkempte rllc.com>|X-Enigmail-Version:=200.95.6|Content-Type:=20multipart/si gned=3B=20micalg=3Dpgp-sha256=3B=0D=0A=20protocol=3D"application/pg p-signature"=3B=0D=0A=20boundary=3D"------------enig31E77EA3B929181 5BC8666C3"; b=Z6ui/wR/jbdnmJ3j7QmrZMLhvnGo5+srpHLvdY5qlY/9KAQeeOmeo 5c+KjfD7bpt9u4v6OXFom5Mpe2SEGqt7ISCYDfuJEWX+qlQ2olg6ofxCs+K8yr+2109 otIQWYc+gz/sf+5tITpShQK3yL/m0P9p6c/scLwXlJrKSw6MrsU= Message-ID: <4841BB5F.5050308@infracaninophile.co.uk> Date: Sat, 31 May 2008 21:55:59 +0100 From: Matthew Seaman Organization: Infracaninophile User-Agent: Thunderbird 2.0.0.14 (X11/20080503) MIME-Version: 1.0 To: kevin kempter References: <7B9E3A32-180C-4D24-991A-4EF1950D50E2@kevinkempterllc.com> In-Reply-To: <7B9E3A32-180C-4D24-991A-4EF1950D50E2@kevinkempterllc.com> X-Enigmail-Version: 0.95.6 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enig31E77EA3B9291815BC8666C3" X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0 (smtp.infracaninophile.co.uk [IPv6:::1]); Sat, 31 May 2008 21:56:08 +0100 (BST) X-Virus-Scanned: ClamAV version 0.93, clamav-milter version 0.93 on happy-idiot-talk.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-3.0 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VERIFIED,NO_RELAYS autolearn=ham version=3.2.4 X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on happy-idiot-talk.infracaninophile.co.uk Cc: freebsd-questions@freebsd.org 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 20:56:17 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig31E77EA3B9291815BC8666C3 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable kevin kempter wrote: > Hi List; >=20 > I'm fairly new to freeBSD, but a long time Linux biggot. I installed=20 > freeBSD7, then I installed PHP like this: >=20 > # cd /usr/ports/lang/php5 > # make config > # make install >=20 > Next I installed PostgreSQL and pgFouine >=20 > However when I run pgfouine to generate a log report I get this error: >=20 > $ php ./pgfouine.php -file $PGDATA/pg_log/postgresql-31.log > rept.html= > PHP Fatal error: Call to undefined function preg_replace() in=20 > /usr/local/pgsql/pgfouine/include/reporting/geshi/geshi.php on line 474= >=20 > 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. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW --------------enig31E77EA3B9291815BC8666C3 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEAREIAAYFAkhBu2cACgkQ8Mjk52CukIxntQCfQgEv7Etu8D8QDAst4U7AkvSu bZYAn2lhnCuxoYq0tk5OntT6WlfbEcFe =5Jko -----END PGP SIGNATURE----- --------------enig31E77EA3B9291815BC8666C3--