• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Resolved memcache 3.0.8 for PHP 5.6 on Ubuntu 16.04

remy

Basic Pleskian
Hi there,

I tried this to install memcache for PHP 5.6:

How to install/uninstall memcached or memcache extension for PHP on Plesk server?

This installs the stable v2.2 of memcache (works), but I need the latest one. When I uninstall it and try it with /opt/plesk/php/5.6/bin/pecl install memcache-beta, it installs the correct one, but it won't show up in the phpinfo - seems it won't be loaded (although it is found in "Additional .ini files parsed:" /opt/plesk/php/5.6/etc/php.d/memcache.ini).

Someone can help me?
 
What is output of command

# /opt/plesk/php/5.6/bin/php -m | grep memca

?
 
BTW, compiled without any problems with

# yum install plesk-php56-devel make gcc
# /opt/plesk/php/5.6/bin/pecl install memcache-beta
# echo "extension=memcache.so" > /opt/plesk/php/5.6/etc/php.d/memcache.ini
# /usr/local/psa/bin/php_handler --reread

# /opt/plesk/php/5.6/bin/php -m | grep memca
memcache
 
This is the result:

Code:
root@stage3:~# /opt/plesk/php/5.6/bin/php -m | grep memca

PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/plesk/php/5.6/lib/php/modules/memcache.so' - /opt/plesk/php/5.6/lib/php/modules/memcache.so: undefined symbol: mmc_queue_remove in Unknown on line 0

And the whole installation progress (with some more output and too long to post here): root@stage3:~# /opt/plesk/php/5.6/bin/pecl install memcache-beta downloading me - Pastebin.com
 
Try to remove

/tmp/memcache
/opt/plesk/php/5.6/lib/php/modules/memcache.so
/opt/plesk/php/5.6/etc/php.d/memcache.ini

run

/usr/local/psa/bin/php_handler --reread
yum update plesk-php56-devel make gcc

and repeat module installation again.
 
files/folder didn't exists anymore after the remove-process described by plesk.

I tried updating with

Code:
apt-get install --only-upgrade plesk-php56-dev make gcc

and got

Code:
»gcc« ist bereits die neuste Version (4:5.3.1-1ubuntu1).
»make« ist bereits die neuste Version (4.1-6).
»plesk-php56-dev« ist bereits die neuste Version (5.6.37-ubuntu16.04.18072014).

Everything seems up-to-date
 
Maybe something with my gcc-version? It is:

gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.10)
 
Unfortunately no Ubuntu 16.04 with Plesk for testing, but I have compiled memcache module on Plesk Ubuntu 18.04 without any problems. Do you have enabled any third-party apt repos?
 
You got it, thank you very much! Next beer is on me :)

This did the trick:
Code:
CFLAGS="-fgnu89-inline" /opt/plesk/php/5.6/bin/pecl install memcache-beta
 
Back
Top