Installing memcache and memcached EA4 instructions
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:
I get the following response from the command line (logged in as root)
And I cannot or dare not to go ahead with the next instruction
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.
./configure --with-php-config=/opt/cpanel/ea-php56/root/usr/bin/php-configI get the following response from the command line (logged in as root)
configure: error: no, sasl.h is not available. Run configure with --disable-memcached-sasl to disable this checkAnd I cannot or dare not to go ahead with the next instruction
make &&& make installPS 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.
-
Hello, Run: yum install cyrus-sasl-devel before the ./configure command 0 -
Hello, Run: yum install cyrus-sasl-devel before the ./configure command
Thanks for posting but that did not (re)solve my issuechecking whether libmemcached supports sasl... no configure: error: no, libmemcached sasl support is not enabled. Run configure with --disable-memcached-sasl to disable this check0 -
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 0 -
Did the package installation went through fine?
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.0 -
NOPE BUMMER I am getting a lots of errors with the command make && make install0 -
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 " 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 thismake && make install0 -
I believe mm 3.0 it's not compatible with PHP 5.6, try installing 2.2. 0 -
I believe mm 3.0 it's not compatible with PHP 5.6, try installing 2.2.
Bummer. How do reverse or undo the steps I have taken ?0 -
@Mangoose, Please can you do try this thread: New Thread - Installing memcached with CentOS 7 (EasyApache4) 0 -
@Mangoose, Please can you do try this thread: New Thread - Installing memcached with CentOS 7 (EasyApache4)
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" ?0 -
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. 0 -
Hello @Mangoose, Were you able to complete the installation with the updated instructions? Thank you. 0 -
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. 0
Please sign in to leave a comment.
Comments
13 comments