Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2024-04-28, 14:26:19

Author Topic: How to install Memcache  (Read 5128 times)

0 Members and 1 Guest are viewing this topic.

Offline LotsOfQ

  • Master
  • **
  • Posts: 462
  • Karma: +1/-0
    • View Profile
How to install Memcache
« on: 2016-02-14, 06:42:58 »
Web: ngnixproxy
Use Apache 2.4

Cache: none

I've done this but not working. Doesn't seem to be installed.
Quote
1. Choose 'php54m' for 'php used' in 'webserver configure'
2. Copy '/opt/php54m/etc/php.d/memcached.nonini' to '/opt/php54m/etc/php.d/memcached_used.ini'
3. Restart your web with 'sh /script/restart-web -y'

Note: better update your server with 'yum clean all; yum update -y; sh /script/restart-web -y' before activate memcached.

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: How to install Memcache
« Reply #1 on: 2016-02-14, 07:13:14 »
Need 'yum install memcached -y; chkconfig memcached on; sh /script/restart-web -y'. In 'restart-web' will appear memcached restart also.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline xamer

  • Valuable Member
  • *
  • Posts: 61
  • Karma: +0/-0
    • View Profile
Re: How to install Memcache
« Reply #2 on: 2016-02-14, 09:34:55 »
I installed like this
yum -y install memcached memcached-devel php-pecl-memcache
chkconfig memcached on
Options for memcached in folders  /etc/sysconfig ? ? /etc/rc.d/init.d for memcached files
PORT="11211"
USER="memcached"
MAXCONN="1024"
CACHESIZE="256" //any number you prefer
OPTIONS="-l 127.0.0.1"

Everything works fine several years

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: How to install Memcache
« Reply #3 on: 2016-02-14, 09:45:17 »
Use 'php54-pecl-memcached' instead 'php54-pecl-memcache'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline LotsOfQ

  • Master
  • **
  • Posts: 462
  • Karma: +1/-0
    • View Profile
Re: How to install Memcache
« Reply #4 on: 2016-02-14, 13:39:17 »
So I ran this:
Quote
yum install memcached -y; chkconfig memcached on; sh /script/restart-web -y

For some reasons when restart-web -y I go this:
Quote
Stopping memcached:                                        [FAILED]
Starting memcached: chown: invalid user: `memcached\r'
 to switch toe user memcached
                                                           [FAILED]

Offline LotsOfQ

  • Master
  • **
  • Posts: 462
  • Karma: +1/-0
    • View Profile
Re: How to install Memcache
« Reply #5 on: 2016-02-14, 13:42:21 »
Should I uninstall and reinstall it like xamer suggested? How do you uninstall?
I installed like this
yum -y install memcached memcached-devel php-pecl-memcache
chkconfig memcached on
Options for memcached in folders  /etc/sysconfig ? ? /etc/rc.d/init.d for memcached files
PORT="11211"
USER="memcached"
MAXCONN="1024"
CACHESIZE="256" //any number you prefer
OPTIONS="-l 127.0.0.1"

Everything works fine several years

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: How to install Memcache
« Reply #6 on: 2016-02-14, 13:53:37 »
What's wrong in your server. Install memcached will be add 'memcached' user automatically.

Try 'yum reinstall memcached -y'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline LotsOfQ

  • Master
  • **
  • Posts: 462
  • Karma: +1/-0
    • View Profile
Re: How to install Memcache
« Reply #7 on: 2016-02-14, 14:53:36 »
Tried Try 'yum reinstall memcached -y' still get the same error:
Quote
Stopping memcached:                                        [FAILED]
Starting memcached: chown: invalid user: `memcached\r'
 to switch toe user memcached
                                                           [FAILED]

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: How to install Memcache
« Reply #8 on: 2016-02-14, 15:16:12 »
Inform here 'cat /etc/passwd'
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline LotsOfQ

  • Master
  • **
  • Posts: 462
  • Karma: +1/-0
    • View Profile
Re: How to install Memcache
« Reply #9 on: 2016-02-14, 15:22:11 »

memcached:x:492:491:Memcached daemon:/var/run/memcached:/sbin/nologin
vpopmail:x:89:89::/home/vpopmail:/sbin/nologin

« Last Edit: 2016-02-14, 16:02:52 by LotsOfQ »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: How to install Memcache
« Reply #10 on: 2016-02-14, 15:40:08 »
Did you modified /etc/sysconfig/memcached and or /etc/init.d/memcached?.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline LotsOfQ

  • Master
  • **
  • Posts: 462
  • Karma: +1/-0
    • View Profile
Re: How to install Memcache
« Reply #11 on: 2016-02-14, 15:43:55 »
Quote
Options for memcached in folders  /etc/sysconfig ? ? /etc/rc.d/init.d for memcached files
PORT="11211"
USER="memcached"
MAXCONN="1024"
CACHESIZE="256" //any number you prefer
OPTIONS="-l 127.0.0.1"

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: How to install Memcache
« Reply #12 on: 2016-02-14, 15:53:56 »
Look like /etc/sysconfig/memcached save in Windows OS (that why appear " invalid user: memcached\r'" when start service;  see '\r').
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline LotsOfQ

  • Master
  • **
  • Posts: 462
  • Karma: +1/-0
    • View Profile
Re: How to install Memcache
« Reply #13 on: 2016-02-14, 16:04:27 »
So I deleted those files and reinstall:
Quote
yum reinstall memcached -y

And it looks like it's working so far so good.

Offline LotsOfQ

  • Master
  • **
  • Posts: 462
  • Karma: +1/-0
    • View Profile
Re: How to install Memcache
« Reply #14 on: 2016-02-14, 16:07:47 »
When run 'sh /script/restart-web'
Quote
Stopping memcached:                                        [  OK  ]
Starting memcached:                                        [  OK  ]

Show it's running but application show not install.

 


Top 10 Social Networking:    Facebook    Twitter    LinkedIn    Pinterest    Google Plus    Tumblr    Instagram    VK    Flickr    Vine

Page created in 0.032 seconds with 18 queries.

web stats analysis