Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Web Server
  • Search

How to install Memcached and get it to work?

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
4 posts • Page 1 of 1
baijianpeng
Posts: 301
Joined: Tue Dec 22, 2015 2:06 pm

How to install Memcached and get it to work?
  • Quote

Post by baijianpeng » Sun Dec 27, 2015 1:44 am

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.
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

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

Post by skurudo » Mon Dec 28, 2015 7:12 am

memcached looks fine... but what's about php5-memcached? You did install php5-memcached?
Top

baijianpeng
Posts: 301
Joined: Tue Dec 22, 2015 2:06 pm

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

Post by baijianpeng » Mon Dec 28, 2015 10:12 am

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.
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

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

Post by skurudo » Mon Dec 28, 2015 10:52 am

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
Top


Post Reply
  • Print view

4 posts • Page 1 of 1

Return to “Web Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password