Greetings,
I searched the users FAQ and list archive and did not find any relevant responses.

1. Server is running Freebsd 6.0-release.
2. I have apache 1.13 installed.
3. I installed php4-4.0 on the machine. 
4. I installed squirrelmail 1.4.6

When I first tried to browse to http://mydomain.com/squirrelmail/  I got an error
"session_id()"  blah blah.  Googled it and found that I had to recompile php with
--enable-session.  Did that and revisited http://mydomain.com/squirrelmail and
got the following error:
 Fatal error: Call to undefined function: preg_replace() in /usr/local/www/data-dist/squirrelmail/functions/global.php on line 85

I searched for a solution and came up emtpy.  Saw one reference in the archives but no solution.

Tried with Mozilla 1.5.0.1 and IE 6.0.2800.1106.

Any help would be greatly appreciated.

-Darryl