Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 31 May 2008 21:55:59 +0100
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        kevin kempter <kevin@kevinkempterllc.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: freeBSD PHP issues
Message-ID:  <4841BB5F.5050308@infracaninophile.co.uk>
In-Reply-To: <7B9E3A32-180C-4D24-991A-4EF1950D50E2@kevinkempterllc.com>
References:  <7B9E3A32-180C-4D24-991A-4EF1950D50E2@kevinkempterllc.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4841BB5F.5050308>