Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Feb 2008 18:08:39 +0000
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        Forrest Aldrich <forrie@forrie.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: 6.3-STABLE Apache 2.0 uses high CPU when restarted....
Message-ID:  <47BF0FA7.4080107@infracaninophile.co.uk>
In-Reply-To: <47BF083B.2050405@forrie.com>
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>

next in thread | previous in thread | raw e-mail | index | archive | help
-----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-----



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?47BF0FA7.4080107>