安裝php擴充

來源:互聯網
上載者:User

標籤:php擴充

   入職後第二個任務:安裝php擴充:memcache,redis,imagick,magickwand,scws

#!/bin/bash#php擴充指令碼#Email:[email protected]#autor:fujinzhou#create time:  2016-11-29#安裝php-memecache擴充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#安裝phpredis擴充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#安裝imagick擴充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#安裝magickwand擴充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#安裝scws擴充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#刪除安裝目錄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/‘‘‘


本文出自 “不拋棄!不放棄” 部落格,請務必保留此出處http://thedream.blog.51cto.com/6427769/1878049

安裝php擴充

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.