You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
753 B

apt-get update && apt-get install gcc make autoconf libc-dev pkg-config plesk-php72-dev zlib1g-dev libmemcached-dev unzip -y &>/dev/null
cd /opt/plesk/php/7.2/include/php/ext
wget -O
cd php-memcached-php7/
./configure --with-php-config=/opt/plesk/php/7.2/bin/php-config
export CFLAGS="-march=native -O2 -fomit-frame-pointer -pipe"
make install
ls -la /opt/plesk/php/7.2/lib/php/modules/
echo "" >/opt/plesk/php/7.2/etc/php.d/memcached.ini
/usr/local/psa/bin/php_handler --reread
service plesk-php72-fpm restart
apt-get install memcached -y
service memcached restart