• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • 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.

Resolved php plesk and memcache(d) extension

Hi UFHH01

I've tried downloading the file manually, it doesn't look like I'm doing the right URL:

Code:
[root@ufo ~]# wget http://autoinstall.plesk.com/PHP_7.0.11/dist-rpm-CentOS-7-x86_64/extra/plesk-php70-devel-16092110.x86_64.rpm
--2016-09-26 08:49:52--  http://autoinstall.plesk.com/PHP_7.0.11/dist-rpm-CentOS-7-x86_64/extra/plesk-php70-devel-16092110.x86_64.rpm
Resolving autoinstall.plesk.com (autoinstall.plesk.com)... 93.184.221.133
Connecting to autoinstall.plesk.com (autoinstall.plesk.com)|93.184.221.133|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2016-09-26 08:49:52 ERROR 404: Not Found.
 
Thanks IgorG!

Code:
[root@ufo ~]# rpm -Uhv http://autoinstall.plesk.com/PHP_7.0.11/dist-rpm-CentOS-7-x86_64/extra/plesk-php70-devel-7.0.11-centos7.16092110.x86_64.rpm
Retrieving http://autoinstall.plesk.com/PHP_7.0.11/dist-rpm-CentOS-7-x86_64/extra/plesk-php70-devel-7.0.11-centos7.16092110.x86_64.rpm
Preparing...                          ################################# [100%]
Updating / installing...
   1:plesk-php70-devel-7.0.11-centos7.################################# [100%]

How about 5.6 version please?
 
Perfect, that's now installed, too.

Code:
[root@ufo ~]# rpm -Uhv http://autoinstall.plesk.com/PHP_5.6.26/dist-rpm-CentOS-7-x86_64/extra/plesk-php56-devel-5.6.26-centos7.16092110.x86_64.rpm
Retrieving http://autoinstall.plesk.com/PHP_5.6.26/dist-rpm-CentOS-7-x86_64/extra/plesk-php56-devel-5.6.26-centos7.16092110.x86_64.rpm
Preparing...                          ################################# [100%]
Updating / installing...
   1:plesk-php56-devel-5.6.26-centos7.################################# [100%]

Following this link to install memchached, will report back any other issues.

Thanks a lot guys!
 
PHP 5.6 all done, installed, appears on PHP Settings, I've unticked it and tick it back so it appears for all customers.

Now, on the PHP 7.0, I get this error:

Code:
[root@ufo ~]# /opt/plesk/php/7.0/bin/pecl install memcached
pecl/memcached requires PHP (version >= 5.2.0, version <= 6.0.0, excluded versions: 6.0.0), installed version is 7.0.11
No valid packages found
install failed

Code:
[root@ufo ~]# /opt/plesk/php/7.0/bin/pecl config-show
Configuration (channel pecl.php.net):
=====================================
Auto-discover new Channels     auto_discover    <not set>
Default Channel                default_channel  pecl.php.net
HTTP Proxy Server Address      http_proxy       <not set>
PEAR server [DEPRECATED]       master_server    pear.php.net
Default Channel Mirror         preferred_mirror pecl.php.net
Remote Configuration File      remote_config    <not set>
PEAR executables directory     bin_dir          /opt/plesk/php/7.0/bin
PEAR documentation directory   doc_dir          /opt/plesk/php/7.0/share/doc/pear
PHP extension directory        ext_dir          /opt/plesk/php/7.0/lib64/php/modules
PEAR directory                 php_dir          /opt/plesk/php/7.0/share/pear
PEAR Installer cache directory cache_dir        /opt/plesk/php/7.0/var/cache/php-pear
PEAR configuration file        cfg_dir          /opt/plesk/php/7.0/etc/pear
directory
PEAR data directory            data_dir         /opt/plesk/php/7.0/share/pear-data
PEAR Installer download        download_dir     /tmp/pear/download
directory
Systems manpage files          man_dir          /opt/plesk/php/7.0/share/pear/local/man
directory
PEAR metadata directory        metadata_dir     /opt/plesk/php/7.0/var/lib/pear
PHP CLI/CGI binary             php_bin          /opt/plesk/php/7.0/bin/php
php.ini location               php_ini          <not set>
--program-prefix passed to     php_prefix       <not set>
PHP's ./configure
--program-suffix passed to     php_suffix       <not set>
PHP's ./configure
PEAR Installer temp directory  temp_dir         /tmp
PEAR test directory            test_dir         /opt/plesk/php/7.0/share/tests/pear
PEAR www files directory       www_dir          /opt/plesk/php/7.0/var/www/html
Cache TimeToLive               cache_ttl        3600
Preferred Package State        preferred_state  stable
Unix file mask                 umask            22
Debug Log Level                verbose          1
PEAR password (for             password         <not set>
maintainers)
Signature Handling Program     sig_bin          /usr/bin/gpg
Signature Key Directory        sig_keydir       /opt/plesk/php/7.0/etc/pearkeys
Signature Key Id               sig_keyid        <not set>
Package Signature Type         sig_type         gpg
PEAR username (for             username         <not set>
maintainers)
User Configuration File        Filename         /root/.pearrc
System Configuration File      Filename         /opt/plesk/php/7.0/etc/pear.conf

Do I need to select a different config?
 
All sorted now, thanks Igor!

2016-09-26_09-53-54.jpeg


2016-09-26_09-56-13.jpeg



Code:
# git clone https://github.com/php-memcached-dev/php-memcached.git
# cd php-memcached/
# git checkout php7
# /opt/plesk/php/7.0/bin/phpize
# ./configure --disable-memcached-sasl --with-php-config=/opt/plesk/php/7.0/bin/php-config
# make && make install
# echo "extension=memcached.so" > /opt/plesk/php/7.0/etc/php.d/memcached.ini
# plesk bin php_handler --reread
The information about PHP handlers was successfully updated.

Should I be able to see settings like for opcache in each domain / PHP settings?
 
I am curious here, wanted to install memcache, my company websites are five wordpress site, very heavy ones and are very slow, i got this article https://support.plesk.com/hc/en-us/...he-and-memcached-PHP-modules-on-Plesk-server- and don't understand how to do this as stated on the article "Note : http(s) proxy rules should be configured for the container to map to the web application."

Please someone should help
It is related to phrase above - "Since Plesk version 17 (Onyx), Docker support is implemented. So both PHP modules can be installed inside a Docker container."
If you don't want to use Docker and you don't know for what, you can ignore it.
 
It is related to phrase above - "Since Plesk version 17 (Onyx), Docker support is implemented. So both PHP modules can be installed inside a Docker container."
If you don't want to use Docker and you don't know for what, you can ignore it.

Thanks for your quick response.

So if i want to use ssh and follow the command above the phrase "Since Plesk version 17 (Onyx), Docker support is implemented. So both PHP modules can be installed inside a Docker container." it means i don't need to bother about this "Note : http(s) proxy rules should be configured for the container to map to the web application."
 
So if i want to use ssh and follow the command above the phrase "Since Plesk version 17 (Onyx), Docker support is implemented. So both PHP modules can be installed inside a Docker container." it means i don't need to bother about this "Note : http(s) proxy rules should be configured for the container to map to the web application."
Hmm... I didn't catch how usage of ssh is related to these phrases... But anyway, if do not want to use memcached through docker container - you can ignore these phrases.
 
Hmm... I didn't catch how usage of ssh is related to these phrases... But anyway, if do not want to use memcached through docker container - you can ignore these phrases.

what i mean is that if i am not using docker container, because i don't know how to, i think the other way is to use ssh to install it.

Please i just need help, i don't want to do the wrong thing, please help me with a guide to install memcache. Thanks
 
Please i just need help, i don't want to do the wrong thing, please help me with a guide to install memcache. Thanks
Have you tried to use instruction from the mentioned KB article? Any problems, results?
 
While following the instruction on the article, i encounter this problem after running the command line below

Command >>> /opt/plesk/php/5.6/bin/pecl install memcache

OUTPUT
----------------
Enable memcache session handler support? [yes] : yes
building in /tmp/pear-build-rootdBcpMd/memcache-2.2.7
running: /tmp/memcache/configure --enable-memcache-session=yes
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for a sed that does not truncate output... /usr/bin/sed
checking for cc... no
checking for gcc... no
configure: error: in `/tmp/pear-build-rootdBcpMd/memcache-2.2.7':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details
ERROR: `/tmp/memcache/configure --enable-memcache-session=yes' failed
 
You have not installed c compiler. Install it with

# yum install gcc make
Thanks.

I later got this error

[root@li1523-184 ~]# echo "extension=memcache.so" >
-bash: syntax error near unexpected token `newline'
[root@li1523-184 ~]#
 
Please, read carefully. Full command is

# echo "extension=memcache.so" > /opt/plesk/php/5.6/etc/php.d/memcache.ini
 
Back
Top