From owner-freebsd-questions@FreeBSD.ORG Thu Apr 21 03:07:51 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 C9C7D16A4CE for ; Thu, 21 Apr 2005 03:07:51 +0000 (GMT) Received: from SXT-SM-1.UCIS.Dal.Ca (SXT-SM-1.UCIS.Dal.Ca [129.173.5.72]) by mx1.FreeBSD.org (Postfix) with ESMTP id 470FB43D39 for ; Thu, 21 Apr 2005 03:07:51 +0000 (GMT) (envelope-from stephen.kelly@dal.ca) Received: from KIL-UPT-2.UCIS.Dal.Ca (KIL-UPT-2.UCIS.Dal.Ca [129.173.1.68]) by SXT-SM-1.UCIS.Dal.Ca (8.12.11/8.12.11) with ESMTP id j3L37owK021165 for ; Thu, 21 Apr 2005 00:07:50 -0300 Received: from KIL-UPT-2.UCIS.Dal.Ca (localhost.localdomain [127.0.0.1]) j3L37oh4022595 for ; Thu, 21 Apr 2005 00:07:50 -0300 Received: (from apache@localhost) by KIL-UPT-2.UCIS.Dal.Ca (8.12.11/8.12.11/Submit) id j3L37oDu022593 for freebsd-questions@freebsd.org; Thu, 21 Apr 2005 00:07:50 -0300 Received: from blk-222-189-156.eastlink.ca (blk-222-189-156.eastlink.ca [24.222.189.156]) by my2.dal.ca (IMP) with HTTP for ; Thu, 21 Apr 2005 00:07:50 -0300 Message-ID: <1114052870.4267190656695@my2.dal.ca> Date: Thu, 21 Apr 2005 00:07:50 -0300 From: Stephen Kelly To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit User-Agent: Internet Messaging Program (IMP) 3.2.4 X-Originating-IP: 24.222.189.156 Subject: 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: Thu, 21 Apr 2005 03:07:51 -0000 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=20040412, debug=1, thread-safety=0 PHP compiled with module API=20041030, debug=1, thread-safety=0 These options need to match in Unknown on line 0 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