Re: Mac OS X + Apache2 + Dynamic Libraries

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Stutter Stutters wrote:
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!

I believe leopard has a custom PHP build (universal build) that
runs in 64bit by default.

Is there a bit architecture incompatibility issue with the
libraries?

Donovan


--
  =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o
  D. BROOKE                       EUCA Design Center
                               WebDNA Software Corp.
  WEB:> http://www.euca.us  |   http://www.webdna.us
  =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux