From owner-freebsd-questions@FreeBSD.ORG Fri Apr 22 04:56:33 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3E98116A4CE for ; Fri, 22 Apr 2005 04:56:33 +0000 (GMT) Received: from crumpet.united-ware.com (ddsl-66-42-172-210.fuse.net [66.42.172.210]) by mx1.FreeBSD.org (Postfix) with ESMTP id A017B43D48 for ; Fri, 22 Apr 2005 04:56:32 +0000 (GMT) (envelope-from mistry.7@osu.edu) Received: from [192.168.1.100] (adsl-68-75-18-7.dsl.wotnoh.ameritech.net [68.75.18.7]) (authenticated bits=0)j3M4O4jO024436 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO); Fri, 22 Apr 2005 00:24:05 -0400 (EDT) (envelope-from mistry.7@osu.edu) From: Anish Mistry To: Stephen Kelly Date: Fri, 22 Apr 2005 00:56:37 -0400 User-Agent: KMail/1.8 References: <1114052870.4267190656695@my2.dal.ca> <200504210146.40714.mistry.7@osu.edu> <1114138795.426868aba7d26@my4.dal.ca> In-Reply-To: <1114138795.426868aba7d26@my4.dal.ca> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart2061101.V6RyNDJdVS"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200504220056.54375.mistry.7@osu.edu> X-Spam-Status: No, hits=0.0 required=5.0 tests=none autolearn=no version=2.64 X-Spam-Checker-Version: SpamAssassin 2.64 (2004-01-11) on crumpet.united-ware.com cc: freebsd-questions@freebsd.org Subject: Re: php5, unable to use pcre module X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Apr 2005 04:56:33 -0000 --nextPart2061101.V6RyNDJdVS Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Thursday 21 April 2005 10:59 pm, you wrote: > Hi. Thanks for the suggestion: > > It looks like your module versions are out of date. Try to > > recompile apache and all your php extensions. > > I tried to accomplish this by doing: > cd /usr/ports/lang/php5 > make deinstall > cd /usr/ports/lang/php5-extensions extensions is a meta port. Make sure that all the php5 extensions are=20 actually removed and you've done a make clean so they all get rebuilt=20 just not reinstalled. pkg_delete php5\* > make deinstall > cd /usr/ports/www/apache2 > make deinstall > make reinstall > cd /usr/ports/lang/php5 > make reinstall > cd /usr/ports/lang/php5-extensions > make reinstall > > This didn't seem to change anything. I also tried installing > /usr/ports/www/mod_php5 but that seemed to conflict with the php5 > installation. > > Am I doing this right? Any other suggestions? > > Thanks > > Quoting Anish Mistry : > > 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 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" > > > > -- > > Anish Mistry =2D-=20 Anish Mistry --nextPart2061101.V6RyNDJdVS Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQBCaIQWxqA5ziudZT0RAvW0AKDLhnlo8kCa9QuhRxXIkFUBh3npngCZAahI dFQsu1rFx5IfMkWVhdCtRCo= =aKYJ -----END PGP SIGNATURE----- --nextPart2061101.V6RyNDJdVS--