• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

Issue MEMCACHED & APCPHP 7.2 -- NGINX STANDALONE

Cero

New Pleskian
Hi Everybody!

Can you help me please?


/opt/plesk/php/7.2/bin/pecl install memcached
/opt/plesk/php/7.2/bin/pecl install apcu-4.0.11
Code:
root@localhost /opt/plesk/php/7.2/bin # /opt/plesk/php/7.2/bin/pecl install memcached
PHP Warning:  PHP Startup: Unable to load dynamic library 'apcu.so' (tried: /opt/plesk/php/7.2/lib/php/modules/apcu.so (/opt/plesk/php/7.2/lib/php/modules/apcu.so: cannot open shared object file: No such file or directory), /opt/plesk/php/7.2/lib/php/modules/apcu.so.so (/opt/plesk/php/7.2/lib/php/modules/apcu.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
WARNING: channel "pecl.php.net" has updated its protocols, use "pecl channel-update pecl.php.net" to update
pecl/memcached can optionally use PHP extension "igbinary" (version >= 2.0)
pecl/memcached can optionally use PHP extension "msgpack" (version >= 2.0)
downloading memcached-3.0.4.tgz ...
Starting to download memcached-3.0.4.tgz (78,776 bytes)
..................done: 78,776 bytes
15 source files, building
running: phpize
Configuring for:
PHP Api Version:         20170718
Zend Module Api No:      20170718
Zend Extension Api No:   320170718
libmemcached directory [no] :
building in /tmp/pear-build-root41wkE4/memcached-3.0.4
running: /tmp/memcached/configure --with-php-config=/opt/plesk/php/7.2/bin/php-config --with-libmemcached-dir=no
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking for cc... no
checking for gcc... no
configure: error: in `/tmp/pear-build-root41wkE4/memcached-3.0.4':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details
ERROR: `/tmp/memcached/configure --with-php-config=/opt/plesk/php/7.2/bin/php-config --with-libmemcached-dir=no' failed
root@localhost /opt/plesk/php/7.2/bin #[/QUOTE]
/opt/plesk/php/7.2/bin/pecl install apcu-4.0.11
 
Hi Everybody!

Can you help me please?


/opt/plesk/php/7.2/bin/pecl install memcached

Code:
root@localhost /opt/plesk/php/7.2/bin # /opt/plesk/php/7.2/bin/pecl install memcached                                                                                PHP Warning:  PHP Startup: Unable to load dynamic library 'apcu.so' (tried: /opt/plesk/php/7.2/lib/php/modules/apcu.so (/opt/plesk/php/7.2/lib/php/modules/apcu.so: cannot open shared object file: No such file or directory), /opt/plesk/php/7.2/lib/php/modules/apcu.so.so (/opt/plesk/php/7.2/lib/php/modules/apcu.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
WARNING: channel "pecl.php.net" has updated its protocols, use "pecl channel-update pecl.php.net" to update
pecl/memcached can optionally use PHP extension "igbinary" (version >= 2.0)
pecl/memcached can optionally use PHP extension "msgpack" (version >= 2.0)
downloading memcached-3.0.4.tgz ...
Starting to download memcached-3.0.4.tgz (78,776 bytes)
..................done: 78,776 bytes
15 source files, building
running: phpize
Configuring for:
PHP Api Version:         20170718
Zend Module Api No:      20170718
Zend Extension Api No:   320170718
libmemcached directory [no] :
building in /tmp/pear-build-rootVkdR9B/memcached-3.0.4
running: /tmp/memcached/configure --with-php-config=/opt/plesk/php/7.2/bin/php-config --with-libmemcached-dir=no
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking for cc... no
checking for gcc... no
configure: error: in `/tmp/pear-build-rootVkdR9B/memcached-3.0.4':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details
ERROR: `/tmp/memcached/configure --with-php-config=/opt/plesk/php/7.2/bin/php-config --with-libmemcached-dir=no' failed
root@localhost /opt/plesk/php/7.2/bin #
/opt/plesk/php/7.2/bin/pecl install apcu-4.0.11


Code:
root@localhost /opt/plesk/php/7.2/bin # /opt/plesk/php/7.2/bin/pecl install memcached
PHP Warning:  PHP Startup: Unable to load dynamic library 'apcu.so' (tried: /opt/plesk/php/7.2/lib/php/modules/apcu.so (/opt/plesk/php/7.2/lib/php/modules/apcu.so: cannot open shared object file: No such file or directory), /opt/plesk/php/7.2/lib/php/modules/apcu.so.so (/opt/plesk/php/7.2/lib/php/modules/apcu.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
WARNING: channel "pecl.php.net" has updated its protocols, use "pecl channel-update pecl.php.net" to update
pecl/memcached can optionally use PHP extension "igbinary" (version >= 2.0)
pecl/memcached can optionally use PHP extension "msgpack" (version >= 2.0)
downloading memcached-3.0.4.tgz ...
Starting to download memcached-3.0.4.tgz (78,776 bytes)
..................done: 78,776 bytes
15 source files, building
running: phpize
Configuring for:
PHP Api Version:         20170718
Zend Module Api No:      20170718
Zend Extension Api No:   320170718
libmemcached directory [no] :
building in /tmp/pear-build-root41wkE4/memcached-3.0.4
running: /tmp/memcached/configure --with-php-config=/opt/plesk/php/7.2/bin/php-config --with-libmemcached-dir=no
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking for cc... no
checking for gcc... no
configure: error: in `/tmp/pear-build-root41wkE4/memcached-3.0.4':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details
ERROR: `/tmp/memcached/configure --with-php-config=/opt/plesk/php/7.2/bin/php-config --with-libmemcached-dir=no' failed
root@localhost /opt/plesk/php/7.2/bin #[/QUOTE]
/opt/plesk/php/7.2/bin/pecl install apcu-4.0.11
 
&& FIXED -

IF U HAVE IT TOO:


Install MEMCACHED PHP 7.2 – SERVER PLESK 17 UBUNTU 16.04



# apt-get install zlib1g-dev

# apt-get install libmemcached-dev


Code:
Build process completed successfully

Installing '/opt/plesk/php/7.2/lib/php/modules/memcached.so'

install ok: channel://pecl.php.net/memcached-3.0.4

configuration option "php_ini" is not set to php.ini location

You should add "extension=memcached.so" to php.ini
 
Back
Top