freeBSD PHP issues

Matthew Seaman m.seaman at infracaninophile.co.uk
Sun Jun 1 09:10:22 UTC 2008


Vince Hoffman wrote:
> 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
> 

Actually, even that is /far/ too much effort.  Now you can just install
the databases/pgfouine port, which by an intriguing coincidence was committed to the ports tree just last night.

	Cheers,

	Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.                   7 Priory Courtyard
                                                  Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey     Ramsgate
                                                  Kent, CT11 9PW

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 258 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20080601/9e7ec916/signature.pgp


More information about the freebsd-questions mailing list