Thanks for the reply. It shows up in ports (below), but that's the only place I see it. I'd welcome your advice on how to install preg at this point. I'm very new to FreeBSD. <br><br># locate pcre.c <br>/usr/ports/lang/php5/work/php-
5.1.4/ext/pcre/php_pcre.c<br><br>Tom<br><br><br><div><span class="gmail_quote">On 5/13/06, <b class="gmail_sendername">Ben Wilson</b> <<a href="mailto:dausha@gmail.com">dausha@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hmm. Sounds like PHP got compiled without preg. You should check what<br>flags were used to compile, and if the perl-based regular expressions<br>were compiled in. See if pcre.c is there.[1] If not, then maybe it<br>can't link. Maybe your PHP expects that other regex protocol, but I
<br>thought that was deprecated. (I use Gentoo, though I have a marginal<br>recollection of FreeBSD.)<br><br>[1]: <a href="http://www.pcre.org/">http://www.pcre.org/</a><br><br><br>On 5/13/06, Tom Rue <<a href="mailto:tomrue@gmail.com">
tomrue@gmail.com</a>> wrote:<br>> I'm in the process of migrating my entire website from Windows 2003 Server<br>> to a FreeBSD machine. When I copy the PmWiki files to the FreeBSD box, I get<br>> the following error upon attempting to open the base page at:
<br>><br>> <a href="http://wiki.tomrue.net:82/pmwiki.php">http://wiki.tomrue.net:82/pmwiki.php</a> :<br>><br>> Fatal error: Call to undefined function preg_replace() in<br>> /usr/www/tomrue.net/wiki/pmwiki/pmwiki.php on line 68
<br>><br>> I have PHP5 installed, though it probably needs configuration tweaking.<br>> Advice on this would be appreciated. Note that the FreeBSD box is running on<br>> port 82 until I get it running with no hitches; the Win2k3 box is on port
<br>> 80.<br>><br>> Thanks.<br>></blockquote></div><br>