Skip to main content

phpize compiles memcache against previous version of PHP

Comments

3 comments

  • kidrobot
    Figured it out. Looks like PHP is installed in two places. I was able to compile the extension properly using the following. root@server1 [~/memcache]# cd memcache-3.0.8 root@server1 [~/memcache/memcache-3.0.8]# /usr/local/bin/phpize root@server1 [~/memcache/memcache-3.0.8]# ./configure --with-php-config=/usr/local/bin/php-config root@server1 [~/memcache/memcache-3.0.8]# make root@server1 [~/memcache/memcache-3.0.8]# make install Installing shared extensions: /usr/local/lib/php/extensions/no-debug-non-zts-20100525/
    0
  • kidrobot
    Restarted Apache, but still no dice. PHP Warning: PHP Startup: memcache: Unable to initialize module Module compiled with module API=20090626 PHP compiled with module API=20100525 These options need to match in Unknown on line 0
    0
  • cPanelMichael
    Hello :) Have you tried installing it through PECL? EX: pecl install memcache
    Note that you may want to uninstall any existing implementations of memcache that you manually installed before running the above command. Thank you.
    0

Please sign in to leave a comment.