Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Apr 2005 01:46:33 -0400
From:      Anish Mistry <mistry.7@osu.edu>
To:        freebsd-questions@freebsd.org
Cc:        Stephen Kelly <stephen.kelly@dal.ca>
Subject:   Re: php5, unable to use pcre module
Message-ID:  <200504210146.40714.mistry.7@osu.edu>
In-Reply-To: <1114052870.4267190656695@my2.dal.ca>
References:  <1114052870.4267190656695@my2.dal.ca>

next in thread | previous in thread | raw e-mail | index | archive | help
--nextPart1342837.ZdVMJd1kHI
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

On Wednesday 20 April 2005 11:07 pm, Stephen Kelly wrote:
> Hi All,
>
> I'm using freebsd 5.3, apache2, and php5.  I was getting the
> following error from one of my php scripts:
>
> Fatal error: Call to undefined function preg_match()
>
> So, after looking around on various lists, I determined that I
> needed to install php5-pcre, so I installed the ports
> /usr/port/devel/pcre, and /usr/ports/devel/php5-pcre.
>
> But now I get the following error in my /var/log/httpd-error.log
> file:
>
> PHP Warning:  PHP Startup: pcre: Unable to initialize module
> Module compiled with module API=3D20040412, debug=3D1, thread-safety=3D0
> PHP    compiled with module API=3D20041030, debug=3D1, thread-safety=3D0
> These options need to match in Unknown on line 0
>

It looks like your module versions are out of date.  Try to recompile=20
apache and all your php extensions.

> Can anyone tell me how to solve this problem?
> I also tried installing /usr/ports/lang/php5-extensions but I got
> similar errors for many of the extensions.  I have also recently
> upgraded my ports collection with cvsup.  I've been frigging around
> deinstalling and reinstalling things but I can't find the actual
> problem.
>
> Any help is greatly appreciated.
> Thanks,
> Stephen
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
> "freebsd-questions-unsubscribe@freebsd.org"

=2D-=20
Anish Mistry

--nextPart1342837.ZdVMJd1kHI
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (FreeBSD)

iD8DBQBCZz5AxqA5ziudZT0RAvRSAJ96F6HMBcV9uf5liMoF2GkSFMCTbACfRP9r
WSTACAtMNtWsGZjeORvfHEQ=
=oeD5
-----END PGP SIGNATURE-----

--nextPart1342837.ZdVMJd1kHI--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200504210146.40714.mistry.7>