PHP error: Unable to Load Dynamic Library (memcache.so)-Collection of common programming errors

error_log shows the following line on startup:

Unable to load dynamic library ‘/usr/lib/php/extensions/no-debug-non-zts-20060613/memcache.so’ – (null) in Unknown on line 0

The file exists and it compiled properly. PHP version is 5.2.6. After Googling for a couple of hours I managed to find a couple of similar problems, but no solutions.

  1. Turned out that the easiest way to handle this was to update PHP to 5.2.8 with memcache via MacPorts. Everything is working fine now.

Originally posted 2013-11-09 23:32:42.