From owner-freebsd-questions@FreeBSD.ORG Fri Feb 22 18:10:01 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EBE9316A400 for ; Fri, 22 Feb 2008 18:10:01 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (gate6.infracaninophile.co.uk [IPv6:2001:8b0:151:1::1]) by mx1.freebsd.org (Postfix) with ESMTP id 4BC4013C478 for ; Fri, 22 Feb 2008 18:10:01 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [IPv6:::1]) by smtp.infracaninophile.co.uk (8.14.2/8.14.2) with ESMTP id m1MI8dCE018452; Fri, 22 Feb 2008 18:08:40 GMT (envelope-from m.seaman@infracaninophile.co.uk) X-DKIM: Sendmail DKIM Filter v2.4.4 smtp.infracaninophile.co.uk m1MI8dCE018452 Authentication-Results: smtp.infracaninophile.co.uk; dkim=hardfail (SSP) header.i=unknown Message-ID: <47BF0FA7.4080107@infracaninophile.co.uk> Date: Fri, 22 Feb 2008 18:08:39 +0000 From: Matthew Seaman Organization: Infracaninophile User-Agent: Thunderbird 2.0.0.9 (X11/20080210) MIME-Version: 1.0 To: Forrest Aldrich References: <47BD8BE3.8070209@forrie.com> <200802221744.05717.fbsd.questions@rachie.is-a-geek.net> <47BEFE8A.4050501@forrie.com> <200802221821.12561.fbsd.questions@rachie.is-a-geek.net> <47BF083B.2050405@forrie.com> In-Reply-To: <47BF083B.2050405@forrie.com> X-Enigmail-Version: 0.95.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (smtp.infracaninophile.co.uk [IPv6:::1]); Fri, 22 Feb 2008 18:08:40 +0000 (GMT) X-Virus-Scanned: ClamAV 0.92.1/5937/Fri Feb 22 15:13:41 2008 on happy-idiot-talk.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-3.0 required=5.0 tests=AWL,BAYES_00,NO_RELAYS autolearn=ham version=3.2.4 X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on happy-idiot-talk.infracaninophile.co.uk Cc: freebsd-questions@freebsd.org Subject: Re: 6.3-STABLE Apache 2.0 uses high CPU when restarted.... X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Feb 2008 18:10:02 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Forrest Aldrich wrote: > I took a shortcut and decided to comment out all extensions but these: > > extension=mysql.so > extension=mysqli.so > extension=eaccelerator.so > > Now I run php -v and get this: > > # php -v > PHP Warning: PHP Startup: Unable to load dynamic library > '/usr/local/lib/php/20060613/mysqli.so' - > /usr/local/lib/php/20060613/mysqli.so: Undefined symbol > "spl_ce_RuntimeException" in Unknown on line 0 > /libexec/ld-elf.so.1: /usr/local/lib/php/20060613/eaccelerator.so: > Undefined symbol "php_session_register_module" > > The mysqli.so is there: > > -r--r--r-- 1 root wheel 116892 Feb 21 23:45 > /usr/local/lib/php/20060613/mysqli.so > > Could be I need to enable another extension to satisfy the last issue > with the variable, though I wonder if this is a hint at what might be > wrong... Hmmm... I've been thinking about methods to make sure the load order of PHP modules avoids this sort of problem. Can you try the following and see if it helps? # cp /usr/local/etc/php/extensions.ini{,.bak} # cd /usr/local/lib/php/20060613 # lorder *.so | tsort | tail -r | sed -e 's/^/extension=/' > /usr/local/etc/php/extensions.ini Oh, and yes, you do need the php5-spl module to be installed. Cheers, Matthew - -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHvw+n8Mjk52CukIwRCEbjAJ9EUwIAJ9m9Y8riNvZd/EHIBbt+0wCfat7r /CMlt9c6goJwWKUwIspr1pE= =Oke5 -----END PGP SIGNATURE-----