Page 1 of 1

How to install Memcached and get it to work?

Posted: Sun Dec 27, 2015 1:44 am
by baijianpeng
hi, I am using VestaCP v0.9.8 on CentOS 7 now. Before posting this topic, I had searched this forum about "memcached' but there was not enough information here.

I followed this command to install Memcached (from one of those posts on this forum):

Code: Select all

yum install --enablerepo=remi php-pecl-memcache memcached libmemcached -y
Then I restarted httpd with this command:

Code: Select all

systemctl  restart httpd
Next, I checked my Memcached status with:

Code: Select all

systemctl status memcached
And got following result:
● memcached.service - Memcached
Loaded: loaded (/usr/lib/systemd/system/memcached.service; disabled; vendor preset: disabled)
Active: active (running) since Sat 2015-12-26 20:42:08 CST; 12h ago
Main PID: 18437 (memcached)
CGroup: /system.slice/memcached.service
└─18437 /usr/bin/memcached -u memcached -p 11211 -m 64 -c 1024 -l 127.0.0.1

Dec 26 20:42:08 joomlacloud systemd[1]: Started Memcached.
Dec 26 20:42:08 joomlacloud systemd[1]: Starting Memcached...
If you can not read above message clear, see the screenshot below:

Image

My question is: Does this means I have installed Memcached correctly? Does this means my Memcached is running properly?

Why there were "diabled" in the status check?

My Joomla caching component JotCache still can not work well if I choose Memcached as its Cache Storage. It seems that something is wrong with my Memcached.

Hope someone here will point out where is wrong in my opration.

Thank you.

Re: How to install Memcached and get it to work?

Posted: Mon Dec 28, 2015 7:12 am
by skurudo
memcached looks fine... but what's about php5-memcached? You did install php5-memcached?

Re: How to install Memcached and get it to work?

Posted: Mon Dec 28, 2015 10:12 am
by baijianpeng
What is "php5-memcached"? Is memcahced php-version specific? I don't know. I only know that my Joomla CMS needs memcached.

Do I need to install another "php5-memcached"? If I need, how to install it?

Thank you.

Re: How to install Memcached and get it to work?

Posted: Mon Dec 28, 2015 10:52 am
by skurudo
Oh... php5-memcached it's php extension, which can work with memcached (it's like php5-myql, php5-gd or others)

Code: Select all

yum -y install php-pecl-memcache
and then

Code: Select all

service httpd restart