6.3-STABLE Apache 2.0 uses high CPU when restarted....

Matthew Seaman m.seaman at infracaninophile.co.uk
Fri Feb 22 18:10:02 UTC 2008


-----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-----


More information about the freebsd-questions mailing list