Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

php not picking up memcache.so

Discussion in 'General Discussion' started by zamrg, Nov 14, 2010.

  1. zamrg

    zamrg Active Member

    Joined:
    Oct 17, 2010
    Messages:
    34
    Likes Received:
    0
    Trophy Points:
    56
    I've compiled the pecl memcache extension using

    Code:
    cd /usr/src
    wget http://pecl.php.net/get/memcache-2.2.6.tgz
    tar zxvf memcache-2.2.6.tgz
    cd memcache-2.2.6
    phpize
    ./configure
    make
    make install
    
    which installs the extension to /usr/lib/php/extensions/no-debug-non-zts-20090626/memcache.so

    I then added 'extension = memcache.so' to /usr/local/lib/php.ini and restarted httpd.

    When I access a phpinfo.php (interpreted by suphp), the extension doesn't come. If I try do a php -i | grep memcache, it also doesn't show as loaded.

    I can't seem to find any related errors in any syslogs.
     
  2. zamrg

    zamrg Active Member

    Joined:
    Oct 17, 2010
    Messages:
    34
    Likes Received:
    0
    Trophy Points:
    56
    problem fixed.

    The correct path for the extension is /usr/local/lib/php/extensions/no-debug-non-zts-20090626 , not [/usr/lib/php/extensions/no-debug-non-zts-20090626

    Any idea why there are two directories for this?
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice