• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Issue Unable to install memcached on Plesk Onyx

Zoinkz

New Pleskian
Hello,

I am using a server which has Ubuntu 14.04 LTS by default and has MySQL 5.5 I have done following upgrades.
-- Mysql 5.5 >> 5.6 >> 5.7
-- Plesk 12.5 to Plesk 17.0 onyx using port 8447


I have problem is that I am unable to install memcached on php 7.1 (used as Nginx FPM). I want to use memcached with Wordpress with W3 Total Cache to speed up loadtimes,

I have tried tons of guides available for Debian, also the ones posted on this forum. But they do not work.

Also, I have read that I can run memcached using Docker but still there is no tutorial available.

I would be really grateful if someone provides me SSH commands for memcached that works on Wordpress.

I have already reinstalled my server's image about 7 times hoping to get it fixed
 
The common errors I receive after trying different procedures:

- unable to locate libmemcached11
- docker memcached image after setting proxy port (it broke down my site - bad gateway error)
- one time installation completed but memcached did not show up in php module list (W3 total cache didnt detect either)

I am willing to give a few more chance before I say good bye to memcached :'(
 
Try to install memcached as it is described in this thread - Resolved - php7 and memcached - again

root@serv:~# yum install make plesk-php70-devel gcc glibc-devel libmemcached-devel zlib-devel git
There are no enabled repos.
Run "yum repolist all" to see the repos you have.
You can enable repos with yum-config-manager --enable <repo>
root@serv:~#

I am running Ubuntu 14.04 - Do CentOS CLI commands work on Debian?
 
I am running Ubuntu 14.04 - Do CentOS CLI commands work on Debian?
For Ubuntu you should use apt-get package manager instead of yum.
Names of installed packages also may be different for Ubuntu. You need to find appropriate names.
 
I was able to successfully install memcached. It can be seen in PHP modules but for some reason my php application (W3 Total cache) cannot detect it.

When I try "service memcached restart" - it says unrecognized service
 
You have installed PHP module for communication your PHP code with Memcached service. But the corresponding service is not installed as I understand?
 
You have installed PHP module for communication your PHP code with Memcached service. But the corresponding service is not installed as I understand?

It said memcached service is not running. So I went ahead and did "apt-get install memcached" - Now it is being detected.

But I fear I have installed older version of it (2.x.x) which does not support PHP 7.1

Is there any way I can make sure I have installed everything correctly?
 
But I fear I have installed older version of it (2.x.x) which does not support PHP 7.1
Do you mean PHP module?
For service, it doesn't matter which module version communicate with it.
 
You can compare it with output of phpinfo() of my own project with working memcached :)

Screen Shot 2017-05-16 at 10.38.29.png
 
Hi Zoinkz,

But I fear I have installed older version of it (2.x.x) which does not support PHP 7.1
In addition, you are as well able to install another memcached version, which is compatible with the corresponding PHP version, by using the memcached VERSION in your "pecl" - command:

Examples ( with compatible memcached - versions ):
Code:
/opt/plesk/php/5.2/bin/pecl install memcached-2.2.0
/opt/plesk/php/5.3/bin/pecl install memcached-2.2.0
/opt/plesk/php/5.4/bin/pecl install memcached-2.2.0
/opt/plesk/php/5.5/bin/pecl install memcached-2.2.0
/opt/plesk/php/5.6/bin/pecl install memcached-2.2.0
/opt/plesk/php/7.0/bin/pecl install memcached-3.0.3
/opt/plesk/php/7.1/bin/pecl install memcached-3.0.3


To UN-install an already installed package with "pecl", you would use a command like:
Code:
pecl uninstall PACKAGE-NAME
 
Back
Top