• 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!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • 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 Install memcache PHP7 error

Bogdan1

Regular Pleskian
Hello,

how can I install memcache(not memcached) for php7?
I tried this:
/opt/plesk/php/7.0/bin/pecl install memcache

but I've got this error:

running: make

/bin/sh /tmp/pear-build-rootbaIglr/memcache-2.2.7/libtool --mode=compile cc -I/opt/plesk/php/7.0/include/php -I. -I/tmp/memcache -DPHP_ATOM_INC -I/tmp/pear-build-rootbaIglr/memcache-2.2.7/include -I/tmp/pear-build-rootbaIglr/memcache-2.2.7/main -I/tmp/memcache -I/opt/plesk/php/7.0/include/php -I/opt/plesk/php/7.0/include/php/main -I/opt/plesk/php/7.0/include/php/TSRM -I/opt/plesk/php/7.0/include/php/Zend -I/opt/plesk/php/7.0/include/php/ext -I/opt/plesk/php/7.0/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/memcache/memcache.c -o memcache.lo

libtool: compile: cc -I/opt/plesk/php/7.0/include/php -I. -I/tmp/memcache -DPHP_ATOM_INC -I/tmp/pear-build-rootbaIglr/memcache-2.2.7/include -I/tmp/pear-build-rootbaIglr/memcache-2.2.7/main -I/tmp/memcache -I/opt/plesk/php/7.0/include/php -I/opt/plesk/php/7.0/include/php/main -I/opt/plesk/php/7.0/include/php/TSRM -I/opt/plesk/php/7.0/include/php/Zend -I/opt/plesk/php/7.0/include/php/ext -I/opt/plesk/php/7.0/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/memcache/memcache.c -fPIC -DPIC -o .libs/memcache.o

/tmp/memcache/memcache.c:40:40: fatal error: ext/standard/php_smart_str.h: No such file or directory

#include "ext/standard/php_smart_str.h"

^

compilation terminated.

make: *** [memcache.lo] Error 1

ERROR: `make' failed

Thanks
 
Hi Bogdan1,

pls. be aware, that not all pecl - packages are compatible with all current ( and feature ) PHP - versions. One reason can be, that they are not maintained anymore, which is likely the case, when you see no updates/patches for several years. Pls. see for example:

=> https://pecl.php.net/package/memcache

... and you will notice, that the last release was at "2013-04-07".


Nevertheless, some extensions have been ported by other users over the internet, which could solve issues/errors/problems, but be aware that since they are no official releases, you would use such ported extensions on your very own risk, without any support!

A ported MEMCACHE - version for PHP 7 can be found at GitHub => websupport-sk/pecl-memcache

... and the steps to use such a ported extension are :
!!! Due to the fact, that this is a PORTED extension, you don't need to run "make install" now... you just COPY the corresponding *.so to your Plesk PHP 7 - MODULES - folder !!!​
  • cp /root/addons/php/extensions/pecl-memcache-NON_BLOCKING_IO_php7/modules/memcache.so /opt/plesk/php/7.0/lib/php/modules/
  • echo "extension = memcache.so" > /opt/plesk/php/7.0/etc/php.d/memcache.ini
  • plesk bin php_handler --reread
  • make clean
  • service apache2 restart ( or for CentOS/RHEL - based systems, pls. use: service httpd restart )
  • service plesk-php70-fpm restart
 
Back
Top