Re: [PHP-INSTALL] Mac OS X + Apache2 + Dynamic Libraries

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

 



On Mar 30, 2009, at 09:22 AM, 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

Let me take a wild guess, you built the modules and they don't include the x86_64 architecture?

The following command will show the available architectures:
file /usr/lib/php/extensions/no-debug-non-zts-20060613/memcache.so

The good news is you can rebuild all of your dependent libraries for multi architecture and rebuild all of your modules to be multi architecture and you will have solved your problem.


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.

-- BuildSmart



Attachment: PGP.sig
Description: This is a digitally signed message part


[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