Cluster three php+memcached cache server

Source: Internet
Author: User
Tags imagemagick mcrypt openldap

nginx+php  installation Yum -y install gcc gcc-c++ autoconf libjpeg libjpeg-devel  libpng libpng-devel freetype freetype-devel libxml2 libxml2-devel zlib  zlib-devel glibc glibc-devel glib2 glib2-devel bzip2 bzip2-devel  Ncurses ncurses-devel gd gd-devel curl curl-devel e2fsprogs e2fsprogs-devel   krb5-devel libidn libidn-devel openssl openssl-devel openldap  openldap-devel nss_ldap openldap-clients openldap-servers pcre pcre-devel  imagemagick imagemagick-devel gitmkdir /hequan && cd /hequanwget  Http://cn2.php.net/distributions/php-5.6.22.tar.bz2wget http://ncu.dl.sourceforge.net/project/mhash/mhash /0.9.9.9/mhash-0.9.9.9.tar.gzwget http://nchc.dl.sourceforge.net/project/mcrypt/libmcrypt/2.5.8/ Libmcrypt-2.5.8.tar.gzwget http://nchc.dl.sourceforge.net/project/mcrypt/mcrypt/2.6.8/mcrypt-2.6.8.tar.gzwget http://ftp.gnu.org/pub/gnu/ libiconv/libiconv-1.14.tar.gzwget http://pecl.php.net/get/memcache-2.2.7.tgzwget http:// xcache.lighttpd.net/pub/releases/3.2.0/xcache-3.2.0.tar.gzwget http://pecl.php.net/get/ imagick-3.1.2.tgzgit clone https://github.com/cfsego/ngx_log_if.gitphp install the simple version./configure --prefix =/usr/local/php --with-config-file-path=/etc --with-mysql --with-mysqli -- with-config-file-scan-dir=/etc/php.d --enable-fpm --with-gd --with-iconv --with-zlib  --enable-xml --enable-inline-optimization --with-openssl --enable-pcntl --enable-zip  --with-curl --with-bz2 --with-jpeg-dir --with-png-dir --enable-mbstringtar -zvxf  libiconv-1.14.tar.gzcd libiconv-1.14/srclibsed -i -e  '/gets is a  Security/d '  ./stdio.in.hcd  /./configure --prefix=/application/makemake installcd /hequantar -zxvf libmcrypt-2.5.8.tar.gzcd libmcrypt-2.5.8 /./configuremakemake installcd libltdl/./configure --enable-ltdl-installmakemake installcd  /hequantar -zxvf mhash-0.9.9.9.tar.gzcd mhash-0.9.9.9/./configuremakemake installln  -s /usr/local/lib/libmcrypt.la /usr/lib/libmcrypt.laln -s /usr/local/lib/ libmcrypt.so /usr/lib/libmcrypt.soln -s /usr/local/lib/libmcrypt.so.4 /usr/lib/ Libmcrypt.so.4ln -s /usr/local/lib/libmcrypt.so.4.4.8 /usr/lib/libmcrypt.so.4.4.8ln -s  /usr/local/lib/libmhash.a /usr/lib/libmhash.aln -s /usr/local/lib/libmhash.la /usr/ lib/libmhash.laln -s /usr/local/lib/libmhash.so /usr/lib/libmhash.soln -s /usr/local/ lib/libmhash.so.2 /usr/lib/libmhash.so.2ln -s /usr/local/lib/libmhash.so.2.0.1 /usr/lib/ Libmhash.so.2.0.1ln -s /usr/local/bin/libmcrypt-config /usr/bin/libmcrypt-configcd /hequantar -zxvf  mcrypt-2.6.8.tar.gzcd mcrypt-2.6.8export ld_library_path=/usr/local/lib: ld_library_path./ configuremakemake installcd /hequan/tar -jxvf php-5.6.22.tar.bz2cd php-5.6.22./ configure --prefix=/usr/local/php --with-config-file-path=/application/php/etc --enable-fpm  --with-fpm-user=www --with-fpm-group=www --with-mysql=mysqlnd --with-mysqli=mysqlnd  --with-pdo-mysql=mysqlnd --with-iconv-dir --with-freetype-dir --with-jpeg-dir -- with-png-dir --with-zlib --with-libxml-dir=/usr --enable-xml --disable-rpath -- Enable-magic-quotes --enable-safe-mode --enable-bcmath --enable-shmop --enable-sysvsem  --enable-inline-optimization --with-curl --with-curlwrappers --enable-mbregex -- Enable-mbstring --with-mcrypt --enable-ftp --with-gd&nBsp;--enable-gd-native-ttf --with-openssl --with-mhash --enable-pcntl --enable-sockets  --with-xmlrpc --enable-zip --enable-soap --without-pear --with-gettext -- disable-fileinfo --enable-maintainer-ztsmake zend_extra_libs= '-liconv ' make installcp  php.ini-production /usr/local/php/etc/php.inicp sapi/fpm/init.d.php-fpm /etc/init.d/ php-fpmchmod u+x /etc/init.d/php-fpmchkconfig --add php-fpmchkconfig php-fpm  ongroupadd wwwuseradd -s /sbin/nologin -g www -m wwwmv /usr/local/php/ etc/php-fpm.conf.default /usr/local/php/etc/php-fpm.confln -s /usr/local/php/etc/php.ini / etc/php.iniln -s /usr/local/php/etc/php-fpm.conf /etc/php-fpm.conf /usr/local/php/sbin/ Php-fpmiptables -i input -s 172.16.10.0/24 -p tcp --dport 9000 -j  acceptzlib==== "provides a function library for data compression pcre====" REwrite Support Library openssl==== "HTTPS support library libiconv====" character encoding Conversion library libxml==== "XML Library libpng====" Picture library freetype==== "Font libmcrypt====" Encryption algorithm mhash==== "Crypto library curl====" url transfer gd==== "drawing yum -y install  nfs vim /etc/exports/ DATA/WEB/      192.168.50.58/24 (Rw,sync)/data/web/       192.168.50.59/24 (Rw,sync)/data/web/      192.168.50.60/24 (R,sync)/data/web /      192.168.50.61/24 (R,sync) systemctl rstart nfs.servicesystemctl  enable nfs.service  yum install nfs-utils  -yshowmount -e   192.168.50.62mkdir -p /data/web/mount -t nfs 192.168.50.62:/data/web/   /data/web echo  "


This article is from the "what-all" blog, please be sure to keep this source http://hequan.blog.51cto.com/5701886/1886309

Cluster three php+memcached cache server

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.