From de972b674829d24ee6767d2b8fe0be99e686ef0d Mon Sep 17 00:00:00 2001 From: Thijs Kinkhorst <thijs@kinkhorst.com> Date: Thu, 9 Jun 2016 08:32:16 +0000 Subject: [PATCH] Update memcacheSync advice to current way of enabling the module. Based on patch by Nishanth Aravamudan <nish.aravamudan@canonical.com> --- bin/memcacheSync.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/memcacheSync.php b/bin/memcacheSync.php index 6e3ae4ad7..50da31774 100755 --- a/bin/memcacheSync.php +++ b/bin/memcacheSync.php @@ -9,9 +9,9 @@ if (!class_exists('Memcache')) { echo("This is most likely because PHP doesn't load it for the command line\n"); echo("version. You probably need to enable it somehow.\n"); echo("\n"); - if (is_dir('/etc/php5/cli/conf.d')) { + if(is_executable('/usr/sbin/phpenmod')) { echo("It is possible that running the following command as root will fix it:\n"); - echo(" echo 'extension=memcache.so' >/etc/php5/cli/conf.d/memcache.ini\n"); + echo(" phpenmod -s cli memcache\n"); } exit(1); -- GitLab