Ajouter 'redis-cache.sh'

virtubox 2016-10-22 19:15:45 +00:00
parent 41e74202bd
commit 52b34d2b0c
1 changed files with 16 additions and 0 deletions

redis-cache.sh Normal file
View File

@ -0,0 +1,16 @@
#! /bin/bash
apt-get update
apt-get install gcc make autoconf libc-dev pkg-config plesk-php70-dev gcc make autoconf libc-dev pkg-config zlib1g-dev libmemcached-dev unzip -y &>/dev/null
cd /opt/plesk/php/7.0/include/php/ext
wget -O phpredis-php7.zip https://github.com/phpredis/phpredis/archive/php7.zip
unzip phpredis-php7.zip
cd phpredis-php7
./configure --with-php-config=/opt/plesk/php/7.0/bin/php-config
export CFLAGS="-march=native -O2 -fomit-frame-pointer -pipe"
make install
ls -la /opt/plesk/php/7.0/lib/php/modules/
echo "extension=redis.so" >/opt/plesk/php/7.0/etc/php.d/redis.ini
/usr/local/psa/bin/php_handler --reread
service plesk-php70-fpm restart