Post-Entry second task: Install PHP Extensions: MEMCACHE,REDIS,IMAGICK,MAGICKWAND,SCWS
#!/bin/bash#php extension Script #email:[email protected] #autor: fujinzhou#create time: 2016-11-29# Installing the Php-memecache extension wget https://pecl.php.net/get/memcache-3.0.8.tgztar zxvf memcache-3.0.8.tgz && mv /usr/local/memcachecd /usr/local/memcache/usr/local/php/bin/phpize ./configure --enable-memcache --with-php-config=/usr/local/php/bin/php-config -- with-zlib-dirmake && make install# Installing Phpredis Extensions wget https://github.com/nicolasff/ phpredis/archive/2.2.4.tar.gztar -xf phpredis-2.2.4.tar.gz && cd Phpredis-2.2.4/usr/local/php/bin/phpize./configure --with-php-config=/usr/local/php/bin/php-configmake && make install# Installing Imagick Extensions wget http://nchc.dl.sourceforge.net/project/ Imagemagick/old-sources/6.x/6.8/imagemagick-6.8.9-10.tar.gztar -xf imagemagick-6.8.9-10.tar.gzcd imagemagick-6.8.9-10./configure --prefix=/usr/locaL/imagemagickmake && make installwget http://pecl.php.net/get/imagick-3.1.2.tgzcd imagick-3.1.2/usr/local/php/bin/phpize./configure --with-php-config=/usr/local/php/bin/php-config --with-imagick=/usr/local/imagemagick/make && make install# Installing the Magickwand extension wget ftp://ftp.fifi.org/imagemagick/php/releases/magickwandforphp-1.0.9-2.tar.gztar - Xf magickwandforphp-1.0.9-2.tar.gzcd magickwandforphp-1.0.9/usr/local/php/bin/phpize./configure --with-php-config=/usr/local/php/bin/php-config --enable-shared --with-magickwand= /usr/local/imagemagickmake && make install# Installing SCWS Extensions wget http://www.ftphp.com/scws/ down/scws-1.2.0.tar.bz2tar -xjf scws-1.2.0.tar.bz2cd scws-1.2.0./configure --prefix= /usr/local/scwsmake && make installcd phpext//usr/local/php/bin/phpize./configure --with-scws=/usr/local/scws/ --with-php-config=/usr/local/php/bin/php-configmake && make install# removing the installation directory RM phpredis-2.2.4 -rfrm ImageMagick-6.8.9-10 -rfrm imagick-3.1.2 -rfrm MAGICKWANDFORPHP-1.0.9 -RFRM SCWS-1.2.0 -RF "[Scws]extension = scws.soextension_dir = /usr/local/php/lib/php/extensions/no-debug-non-zts-20131226/scws.default.charset = utf8scws.default.fpath = /usr/local/scws/etc[redis]extension = Redis.soextension_dir = /usr/local/php/lib/php/extensions/no-debug-non-zts-20131226/[memcache] extension = memcache.soextension_dir = /usr/local/php/lib/php/extensions/ no-debug-non-zts-20131226/[imagick]extension = imagick.soextension_dir = /usr/local/php/ Lib/php/extensions/no-debug-non-zts-20131226/[magickwand]extension = magickwand.soextension_dir = /usr/local/php/lib/php/extensions/no-debug-non-zts-20131226/' '
This article from "Do not abandon!" Do not give up "blog, be sure to keep this source http://thedream.blog.51cto.com/6427769/1878049
Installing PHP Extensions