24x7server

Well-Known Member
Apr 17, 2013
1,911
96
78
India
cPanel Access Level
Root Administrator
Twitter
Hi,

Try using the below command:
---------- ----------
yum install memcached
pecl install memcache
php -m | grep memcache
---------- ----------
OR
check what version of PHP is install and use appropriate pecl package to install it..
---------- ----------
/opt/cpanel/ea-php56/root/usr/bin/pecl install memcache
/opt/cpanel/ea-php56/root/usr/bin/php -m | grep memcache
---------- ----------
 
May 4, 2015
8
0
1
Iran
cPanel Access Level
DataCenter Provider
Hi,

Try using the below command:
---------- ----------
yum install memcached
pecl install memcache
php -m | grep memcache
---------- ----------
OR
check what version of PHP is install and use appropriate pecl package to install it..
---------- ----------
/opt/cpanel/ea-php56/root/usr/bin/pecl install memcache
/opt/cpanel/ea-php56/root/usr/bin/php -m | grep memcache
---------- ----------
[[email protected] ~]# pecl install memcache
-bash: pecl: command not found
 

SysSachin

Well-Known Member
Aug 23, 2015
604
48
28
India
cPanel Access Level
Root Administrator
Twitter
Hi Saeed,

First install php and other required php modules and then use PECL to install using following commands.
Code:
yum groupinstall "Development tools"
yum install zlib zlib-devel
yum install  php-devel php-pear
After installing php-pear package install PECL extension using command below.

Code:
 pecl install memcache
 
Last edited: