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!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Installing memcache and memcached EA4 instructions

Discussion in 'EasyApache' started by Mangoose, Feb 24, 2017.

Tags:
  1. Mangoose

    Mangoose Active Member

    Joined:
    Aug 5, 2014
    Messages:
    28
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    I have been following the instructions as layout in this thread

    Installing memcache and memcached with EasyApache4

    However in the instructions given previously by cPGeoffs/Cpanel TA I am stuck in the first part of the process where he/she instructs to download the PECL Memcached extension:

    Code:
    ./configure --with-php-config=/opt/cpanel/ea-php56/root/usr/bin/php-config
    I get the following response from the command line (logged in as root)

    Code:
    configure: error: no, sasl.h is not available. Run configure with --disable-memcached-sasl to disable this check
    And I cannot or dare not to go ahead with the next instruction

    Code:
    make &&& make install
    PS

    there more questions that might come after this point but let's wait untill some of the specialists here can point me in right direction.
     
  2. SB-Nick

    SB-Nick Well-Known Member

    Joined:
    Aug 26, 2008
    Messages:
    175
    Likes Received:
    9
    Trophy Points:
    68
    cPanel Access Level:
    Root Administrator
    Hello,

    Run:
    yum install cyrus-sasl-devel

    before the ./configure command
     
  3. Mangoose

    Mangoose Active Member

    Joined:
    Aug 5, 2014
    Messages:
    28
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Thanks for posting but that did not (re)solve my issue

    Code:
    checking whether libmemcached supports sasl... no
    configure: error: no, libmemcached sasl support is not enabled. Run configure with --disable-memcached-sasl to disable this check
    
     
  4. SB-Nick

    SB-Nick Well-Known Member

    Joined:
    Aug 26, 2008
    Messages:
    175
    Likes Received:
    9
    Trophy Points:
    68
    cPanel Access Level:
    Root Administrator
    Did the package installation went through fine?

    If you don't need SASL support for memcache then you may want to configure it without it by running,

    ./configure --with-php-config=/opt/cpanel/ea-php56/root/usr/bin/php-config --disable-memcached-sasl
     
  5. Mangoose

    Mangoose Active Member

    Joined:
    Aug 5, 2014
    Messages:
    28
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Yes it did only the SASL notification that struck me. But I am guessing I will not be needing it.
    Let's go forward to the next step.
     
  6. Mangoose

    Mangoose Active Member

    Joined:
    Aug 5, 2014
    Messages:
    28
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    NOPE BUMMER

    I am getting a lots of errors with the command

    Code:
    make && make install
     
  7. Mangoose

    Mangoose Active Member

    Joined:
    Aug 5, 2014
    Messages:
    28
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Code:
    root@slideend [~/memcached-3.0.3]# make && make install
    /bin/sh /root/memcached-3.0.3/libtool --mode=compile cc -I/opt/cpanel/ea-php56/root/usr/include/php    -I. -I/root/memcached-3.0.3 -DPHP_ATOM_INC -I/root/memcached-3.0.3/include -I/root/memcached-3.0.3/main -I/root/memcached-3.0.3 -I/opt/cpanel/ea-php56/root/usr/include/php -I/opt/cpanel/ea-php56/root/usr/include/php/main -I/opt/cpanel/ea-php56/root/usr/include/php/TSRM -I/opt/cpanel/ea-php56/root/usr/include/php/Zend -I/opt/cpanel/ea-php56/root/usr/include/php/ext -I/opt/cpanel/ea-php56/root/usr/include/php/ext/date/lib -I/usr/local/include  -DHAVE_CONFIG_H  -g -O2 -I/opt/cpanel/ea-php56/root/usr/include/php -I/opt/cpanel/ea-php56/root/usr/include/php/main -I/opt/cpanel/ea-php56/root/usr/include/php/TSRM -I/opt/cpanel/ea-php56/root/usr/include/php/Zend -I/opt/cpanel/ea-php56/root/usr/include/php/ext -I/opt/cpanel/ea-php56/root/usr/include/php/ext/date/lib -I/usr/local/include   -c /root/memcached-3.0.3/php_memcached.c -o php_memcached.lo
    libtool: compile:  cc -I/opt/cpanel/ea-php56/root/usr/include/php -I. -I/root/memcached-3.0.3 -DPHP_ATOM_INC -I/root/memcached-3.0.3/include -I/root/memcached-3.0.3/main -I/root/memcached-3.0.3 -I/opt/cpanel/ea-php56/root/usr/include/php -I/opt/cpanel/ea-php56/root/usr/include/php/main -I/opt/cpanel/ea-php56/root/usr/include/php/TSRM -I/opt/cpanel/ea-php56/root/usr/include/php/Zend -I/opt/cpanel/ea-php56/root/usr/include/php/ext -I/opt/cpanel/ea-php56/root/usr/include/php/ext/date/lib -I/usr/local/include -DHAVE_CONFIG_H -g -O2 -I/opt/cpanel/ea-php56/root/usr/include/php -I/opt/cpanel/ea-php56/root/usr/include/php/main -I/opt/cpanel/ea-php56/root/usr/include/php/TSRM -I/opt/cpanel/ea-php56/root/usr/include/php/Zend -I/opt/cpanel/ea-php56/root/usr/include/php/ext -I/opt/cpanel/ea-php56/root/usr/include/php/ext/date/lib -I/usr/local/include -c /root/memcached-3.0.3/php_memcached.c  -fPIC -DPIC -o .libs/php_memcached.o
    In file included from /root/memcached-3.0.3/php_memcached.c:24:
    /root/memcached-3.0.3/php_memcached.h:23:33: error: Zend/zend_smart_str.h: No such file or directory
    In file included from /root/memcached-3.0.3/php_memcached_private.h:28,
                     from /root/memcached-3.0.3/php_memcached.c:25:
    /root/memcached-3.0.3/php_libmemcached_compat.h:23: error: expected declaration specifiers or ‘...’ before ‘zend_string’
    In file included from /root/memcached-3.0.3/php_memcached.c:25:
    /root/memcached-3.0.3/php_memcached_private.h:44:43: error: ext/standard/php_smart_string.h: No such file or directory
    In file included from /root/memcached-3.0.3/php_memcached.c:25:
    /root/memcached-3.0.3/php_memcached_private.h:145: error: expected specifier-qualifier-list before ‘zend_long’
    /root/memcached-3.0.3/php_memcached_private.h:171: error: expected specifier-qualifier-list before ‘zend_long’
    /root/memcached-3.0.3/php_memcached_private.h:193: error: expected specifier-qualifier-list before ‘zend_long’
    structure or union
    /root/memcached-3.0.3/php_memcached.c:4101: error: ‘struct <anonymous>’ has no member named ‘default_behavior’
    /root/memcached-3.0.3/php_memcached.c:4101: error: request for member ‘connect_timeout’ in something not a structure or union
    /root/memcached-3.0.3/php_memcached.c: In function ‘zm_startup_memcached’:
    /root/memcached-3.0.3/php_memcached.c:4362: error: ‘zend_object_handlers’ has no member named ‘offset’
    /root/memcached-3.0.3/php_memcached.c:4364: error: ‘zend_object_handlers’ has no member named ‘free_obj’
    /root/memcached-3.0.3/php_memcached.c:4370: warning: assignment from incompatible pointer type
    /root/memcached-3.0.3/php_memcached.c:4384: error: too few arguments to function ‘zend_register_internal_class_ex’
    /root/memcached-3.0.3/php_memcached.c:4384: warning: assignment from incompatible pointer type
    make: *** [php_memcached.lo] Error 1
    
    That is the mess I am getting just right after this

    Code:
    
    make && make install
    
     
  8. SB-Nick

    SB-Nick Well-Known Member

    Joined:
    Aug 26, 2008
    Messages:
    175
    Likes Received:
    9
    Trophy Points:
    68
    cPanel Access Level:
    Root Administrator
    I believe mm 3.0 it's not compatible with PHP 5.6, try installing 2.2.
     
  9. Mangoose

    Mangoose Active Member

    Joined:
    Aug 5, 2014
    Messages:
    28
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Bummer.

    How do reverse or undo the steps I have taken ?
     
  10. Nirjonadda

    Nirjonadda Well-Known Member

    Joined:
    May 8, 2013
    Messages:
    418
    Likes Received:
    10
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
  11. Mangoose

    Mangoose Active Member

    Joined:
    Aug 5, 2014
    Messages:
    28
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Looks okay but I am still on CentOS 6.8 not 7. Are you sure this works ? I am also using MultiPHP Manager in order to have one account work with PHP 7.0 and another with PHP 5.6.

    PS what do I do with the install I have done sofar ? Don;t I need to do a "rollback" ?
     
  12. SB-Nick

    SB-Nick Well-Known Member

    Joined:
    Aug 26, 2008
    Messages:
    175
    Likes Received:
    9
    Trophy Points:
    68
    cPanel Access Level:
    Root Administrator
    The source compilation didn't success so you haven't installed anything yet, just follow the steps again but download the 2.2 version instead.
     
  13. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,427
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello @Mangoose,

    Were you able to complete the installation with the updated instructions?

    Thank you.
     
  14. Jack Hayhurst

    Jack Hayhurst Member
    PartnerNOC

    Joined:
    Aug 18, 2011
    Messages:
    6
    Likes Received:
    3
    Trophy Points:
    53
    Unless you actually need SASL, or multiple memcached daemons, it's probably easier to just enable the ea4-experimental repository and install ea-memcached, ea-php56-memcached, and ea-php56-memcache (or whatever PHP version you need).

    If you enable the ea4-experimental repository, you can even find the PHP extensions in the EA4 cPanel interface.
     
    cPanelMichael likes this.
Loading...

Share This Page