Browse Source

Mise à jour de 'memcached.sh'

master
virtubox 4 months ago
parent
commit
83b8300974
1 changed files with 9 additions and 9 deletions
  1. +9
    -9
      memcached.sh

+ 9
- 9
memcached.sh View File

@@ -1,17 +1,17 @@
#!/bin/bash
apt-get update && apt-get install gcc make autoconf libc-dev pkg-config plesk-php70-dev zlib1g-dev libmemcached-dev unzip -y &>/dev/null
cd /opt/plesk/php/7.0/include/php/ext
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 phpmemcached-php7.zip https://github.com/php-memcached-dev/php-memcached/archive/php7.zip
unzip phpmemcached-php7.zip
cd php-memcached-php7/
/opt/plesk/php/7.0/bin/phpize
./configure --with-php-config=/opt/plesk/php/7.0/bin/php-config
/opt/plesk/php/7.2/bin/phpize
./configure --with-php-config=/opt/plesk/php/7.2/bin/php-config
export CFLAGS="-march=native -O2 -fomit-frame-pointer -pipe"
make
make install
ls -la /opt/plesk/php/7.0/lib/php/modules/
echo "extension=memcached.so" >/opt/plesk/php/7.0/etc/php.d/memcached.ini
ls -la /opt/plesk/php/7.2/lib/php/modules/
echo "extension=memcached.so" >/opt/plesk/php/7.2/etc/php.d/memcached.ini
/usr/local/psa/bin/php_handler --reread
service plesk-php70-fpm restart
apt-get install memcached
service memcached start
service plesk-php72-fpm restart
apt-get install memcached -y
service memcached restart

Loading…
Cancel
Save