Hi Madness,
first of all, pls. get rid of your first error:
Command to use over the command line: /opt/plesk/php/5.6/bin/pecl uninstall memcache
... and don't forget to delete the depending *.ini - file, which automatically loads, when you placed it inside the folder "/opt/plesk/php/5.6/etc/php.d/"
Command to use over the command line: rm /opt/plesk/php/5.6/etc/php.d/memcache.ini
IMPORTANT:
If you placed the call of a module directly inside your "php.ini" , as for example with an entry like "extension=memcache.so" , pls. don't forget to delete such a manual entry from the "php.ini" !
Second, to clean up your installation - mess, pls. consider to
uninstall as well your previously ( unsuccessfully ) installed
memcached - package:
Command to use over the command line: /opt/plesk/php/5.6/bin/pecl uninstall memcached
... and don't forget to delete the depending *.ini - file, which automatically loads, when you placed it inside the folder "/opt/plesk/php/5.6/etc/php.d/"
Command to use over the command line: rm /opt/plesk/php/5.6/etc/php.d/memcached.ini
IMPORTANT:
If you placed the call of a module directly inside your "php.ini" , as for example with an entry like "extension=memcached.so" , pls. don't forget to delete such a manual entry from the "php.ini" !
Third, pls. keep an eye on your typing, because
memcache and
memcached are different packages.
Fourth, pls. be informed, that you don't necessarily have to compile an existent pecl - package manually, if the latest release might not suit your environment or needs. You are always able to DOWNGRADE an installed pecl - package with for example:
/opt/plesk/php/5.6/bin/pecl install memcached-2.2.0RC1
( With this command, a previously installed "memcached" - package will be DOWNGRADED to the version "2.20RC1". The version can be choosen with the additional string marked in RED )
Additional notes:
PECL has as well
additional install options, as for example the "
-f" string, which
forces an installation ( in case the requirements are not met, which are defined by the package maintainer ). Example:
/opt/plesk/php/5.6/bin/pecl install -f memcached-2.2.0RC1
Another good idea is to use the install "
-a" - string, which installs "
all required and optional dependencies". Example:
/opt/plesk/php/5.6/bin/pecl install -a memcached-2.2.0RC1
or
if you just desire to install only the "
all required dependencies", you could use the install "
-o" - string. Example:
/opt/plesk/php/5.6/bin/pecl install -o memcached-2.2.0RC1
Pls. use the command "
pecl help", or "
pecl help COMMAND-NAME", to inform yourself about additional options, when you use
PECL. Example:
/opt/plesk/php/5.6/bin/pecl help install