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!

Memcache Issues / Errors

Discussion in 'Workarounds and Optimization' started by Bashed, Dec 27, 2016.

  1. Bashed

    Bashed Well-Known Member

    Joined:
    Dec 18, 2013
    Messages:
    112
    Likes Received:
    3
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Getting these errors in Xenforo admin panel.

    Code:
    ErrorException: MemcachePool::get(): Server 127.0.0.1 (tcp 11211, udp 0) failed with: Connection timed out (110) - library/Zend/Cache/Backend/Memcached.php:180
    Generated By: Unknown Account, 3 minutes ago
    Stack Trace
    
    #0 [internal function]: XenForo_Application::handlePhpError(8, 'MemcachePool::g...', '/home/user/p...', 180, Array)
    #1 /home/user/public_html/library/Zend/Cache/Backend/Memcached.php(180): MemcachePool->get('xf_data_options')
    #2 /home/user/public_html/library/Zend/Cache/Core.php(303): Zend_Cache_Backend_Memcached->load('xf_data_options', false)
    #3 /home/user/public_html/library/XenForo/Model/DataRegistry.php(87): Zend_Cache_Core->load('xf_data_options')
    #4 /home/user/public_html/library/XenForo/Dependencies/Abstract.php(147): XenForo_Model_DataRegistry->getMulti(Array)
    #5 /home/user/public_html/library/XenForo/FrontController.php(127): XenForo_Dependencies_Abstract->preLoadData()
    #6 /home/user/public_html/index.php(13): XenForo_FrontController->run()
    #7 {main}
    
    Request State
    
    array(3) {
      ["url"] => string(178) "http://www.domain.com/misc/style?do=finduser&redirect=/search.php%3Fcontenttype%3DvBForum_Post&s=123c14c14d333ef36c9eb3bbd749834b&searchthreadid=50002&showposts=1&userid=29367"
      ["_GET"] => array(6) {
        ["do"] => string(8) "finduser"
        ["redirect"] => string(36) "/search.php?contenttype=vBForum_Post"
        ["s"] => string(32) "123c14c14d333ef36c9eb3bbd749834b"
        ["searchthreadid"] => string(5) "50002"
        ["showposts"] => string(1) "1"
        ["userid"] => string(5) "29367"
      }
      ["_POST"] => array(0) {
      }
    }
    
    
    Xenforo Config:

    Code:
    // BACKEND CACHING
    
    $config['cache']['backend'] = 'Memcached';
    $config['cache']['backendOptions'] = array(
    'compression' => false,
    'servers' => array(
    array(
    // your memcached server IP /address
    'host' => 'localhost',
    
    // memcached port
    'port' => 11211,
    )
    )
    );

    Server Memcache Info:

    Code:
    [root@server ~]# netstat -tap | grep memcached
    tcp 0 0 0.0.0.0:memcache 0.0.0.0:* LISTEN 1320/memcached
    tcp6 0 0 [::]:memcache [::]:* LISTEN 1320/memcached
    
    [root@server ~]# php -m | grep memcache
    memcache
    ---

    Memcache Config:

    Code:
    PORT="11211"
    USER="memcached"
    MAXCONN="2048"
    CACHESIZE="1024"
    OPTIONS="-l 127.0.0.1"
     
  2. Bashed

    Bashed Well-Known Member

    Joined:
    Dec 18, 2013
    Messages:
    112
    Likes Received:
    3
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    More issues related to installing memcache on Centos 7 / PHP 7.

    Code:
    [root@server php-memcached-php7]# phpize    
    -bash: phpize: command not found
    
    [root@server php-memcached-php7]# yum install php-devel
    Loaded plugins: fastestmirror, universal-hooks
    Loading mirror speeds from cached hostfile
     * EA4: 69.72.212.10
     * base: mirror.math.princeton.edu
     * extras: mirrors.centos.webair.com
     * updates: mirror.cs.pitt.edu
    No package php-devel available.
    Error: Nothing to do
    
    [root@server php-memcached-php7]# which phpize
    /usr/bin/which: no phpize in (/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/opt/cpanel/composer/bin:/root/bin)
     
  3. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,309
    Likes Received:
    393
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. Bashed

    Bashed Well-Known Member

    Joined:
    Dec 18, 2013
    Messages:
    112
    Likes Received:
    3
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Same stinking error...


    Code:
    [root@server memcached-2.2.0]# ./configure --with-php-config=/opt/cpanel/ea-php56/root/usr/bin/php-config
    checking for grep that handles long lines and -e... /usr/bin/grep
    checking for egrep... /usr/bin/grep -E
    checking for a sed that does not truncate output... /usr/bin/sed
    checking for cc... cc
    checking whether the C compiler works... yes
    checking for C compiler default output file name... a.out
    checking for suffix of executables...
    checking whether we are cross compiling... no
    checking for suffix of object files... o
    checking whether we are using the GNU C compiler... yes
    checking whether cc accepts -g... yes
    checking for cc option to accept ISO C89... none needed
    checking how to run the C preprocessor... cc -E
    checking for icc... no
    checking for suncc... no
    checking whether cc understands -c and -o together... yes
    checking for system library directory... lib
    checking if compiler supports -R... no
    checking if compiler supports -Wl,-rpath,... yes
    checking build system type... x86_64-unknown-linux-gnu
    checking host system type... x86_64-unknown-linux-gnu
    checking target system type... x86_64-unknown-linux-gnu
    configure: error: Cannot find php-config. Please use --with-php-config=PATH
     
  5. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,367
    Likes Received:
    1,856
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Could you verify if this system uses EasyApache 3, or EasyApache 4?

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
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