I've been wrestling with mac os x + php 5.2.6 off and on for a few months to
get it to load the memcache.so and imagick.so extensions.  When I executed
php on the command line `php -i | grep imagick` or `php -i | grep memcache`
the output shows that imagick and memcache are both being loaded
successfully, and I can successfully use both libraries..from the command
line.

However, when I restart apache, the logs show that both extensions can not
be loaded:

PHP Warning:  PHP Startup: Unable to load dynamic library
'/usr/lib/php/extensions/no-debug-non-zts-20060613/memcache.so' - (null) in
Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library
'/usr/lib/php/extensions/no-debug-non-zts-20060613/imagick.so' - (null) in
Unknown on line 0

Both files are obviously there (as they are being loaded via the CLI
execution of php).  I've checked, both apache and php-cli are using the same
php.ini configuration.  I've thought it was some kind of permission or
environment issue for the _www user, but i've managed to change my env
information to the same as the _www user's (or, at least, as well as I know
how) and I am still able to execute php from the CLI and have successfully
loaded imagick and memcache.

Again, I'm using OS X Leopard, and PHP 5.2.6, and Apache 2.2.9

Any help would be much appreciated.

Thanks!

stutter.

Reply via email to