[afnog] Fatal Error with Squirrelmail

Ismail M. Settenda ismail at habari.co.tz
Tue Jul 31 05:22:22 UTC 2007


>Did you restart Apache ? I did "apachectl graceful"

>What does the following say: pkg_info |grep php4

[root at mail ~]# pkg_info |grep php4
php4-4.4.6          PHP Scripting Language (Apache Module and CLI)
php4-bcmath-4.4.6   The bcmath shared extension for php
php4-bz2-4.4.6      The bz2 shared extension for php
php4-calendar-4.4.6 The calendar shared extension for php
php4-ctype-4.4.4_1  The ctype shared extension for php
php4-ctype-4.4.6    The ctype shared extension for php
php4-dbase-4.4.6    The dbase shared extension for php
php4-extensions-1.0 A "meta-port" to install PHP extensions
php4-ftp-4.4.6      The ftp shared extension for php
php4-gettext-4.4.6  The gettext shared extension for php
php4-imap-4.4.6     The imap shared extension for php
php4-ldap-4.4.6     The ldap shared extension for php
php4-mbstring-4.4.6 The mbstring shared extension for php
php4-mhash-4.4.6    The mhash shared extension for php
php4-mysql-4.4.4_1  The mysql shared extension for php
php4-mysql-4.4.6    The mysql shared extension for php
php4-openssl-4.4.6  The openssl shared extension for php
php4-overload-4.4.4_1 The overload shared extension for php
php4-overload-4.4.6 The overload shared extension for php
php4-pcre-4.4.6     The pcre shared extension for php
php4-posix-4.4.4_1  The posix shared extension for php
php4-posix-4.4.6    The posix shared extension for php
php4-session-4.4.4_1 The session shared extension for php
php4-session-4.4.6  The session shared extension for php
php4-tokenizer-4.4.4_1 The tokenizer shared extension for php
php4-tokenizer-4.4.6 The tokenizer shared extension for php
php4-xml-4.4.6      The xml shared extension for php
php4-zlib-4.4.4_1   The zlib shared extension for php
php4-zlib-4.4.6     The zlib shared extension for php

>Also, try to create a test.php page with just "<?php phpinfo();?>" not <?
phpinfo(); ?> (this brought up a blank page)... and see if the pcre
extension shows up in the test output.

It shows up;
pcre PCRE (Perl Compatible Regular Expressions) Support enabled PCRE Library
Version 7.0 18-Dec-2006

--
Ismail

On 7/30/07, Phil Regnauld <regnauld at x0.dk> wrote:
>
> Ismail M. Settenda (ismail) writes:
> >
> > Need some help with my squirrelmail installation. I had already
> installed
> > apache13 and PHP4 with extension and support for imap,mysql and
> pcre..e.t.c.
>
> >
> > But I keep getting the below error when I access squirrelmail.
> >
> > Fatal error: Call to undefined function: preg_replace() in
> > /usr/local/www/webmail/data/functions/global.php on line 165
> >
> > I did some research on this error and came up with this site:
> >
> >
> http://freebsdrocks.net/index.php?option=com_content&task=view&id=44&Itemid=1
> >
> > To no avail, what could be wrong?
>
>         Sounds like php4-pcre didn't get installed anyway.  Did you
> restart
>         Apache ?
>
>         What does the following say:
>
> pkg_info |grep php4
>
>         Also, try to create a test.php page with just <? phpinfo(); ?>
>
>         ... and see if the pcre extension shows up in the test output.
>



-- 
Ismail
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://afnog.org/pipermail/afnog/attachments/20070731/a0f03b34/attachment-0001.html 


More information about the afnog mailing list