PHP Environment Installation Configuration

Source: Internet
Author: User
Tags apc gtk zts

#!/bin/bashyum install -y giflib giflib-develyum install -y libxml2  libxml2-devel libxml2-staticyum install -y gcc44  gcc44-c++  gtk+  gtk+-devel pkgconfig libpng zlib libjpeg libtiff yum -y install  gcc gcc-c++ autoconf make patch ntp.x86_64 libjpeg libjpeg-devel  libpng libpng-devel gd gd-devel freetype freetype-devel libxml2  Libxml2-devel zlib zlib-devel glib2 glib2-devel bzip2 bzip2-devel libevent  libevent-devel ncurses ncurses-devel curl curl-devel e2fsprogs  e2fsprogs-devel krb5 krb5-devel libidn libidn-devel openssl openssl-devel  fonts-chinese gettext gettext-devel gmp-devel pspell-devel unzip libcap  Glibc glibc-devel libmcrypt libmcrypt-devel mhash mhash-devel pcre pcre-devel sysstat vim* libtool-ltdl* #php  for installcd /root/softtar zxvf php-5.4.0.tar.gzcd php-5.4.0./configure   --prefix=/usr/local/php5 --with-config-file-path=/usr/local/php5/etc --without-pear  --with-gd --with-jpeg-dir --enable-mbstring  --with-png-dir --with-zlib -- With-freetype-dir --with-mcrypt --with-mhash --with-mysqli --with-mysql=/usr/local/mysql_p  --with-openssl --with-xmlrpc --with-xsl --with-gettext --with-fpm-user=nginx -- with-fpm-group=nginx --enable-fpm --enable-exif --enable-wddx --enable-zip -- enable-bcmath --with-curl --with-iconv-dir=/usr/local/make zend_extra_libs= '-liconv ' make  Installrm -rf  /usr/local/php5/etc/*cp /root/soft/php-fpm.conf /usr/local/php5/etc/cp  /root/soft/php.ini /usr/local/php5/etc/#memcache  for php extendedcd /root/softtar zxvf  Memcache-2.2.5.tgzcd memcache-2.2.5/usr/local/php5/bin/phpize./configure  --enable-memcache   --with-php-config=/usr/local/php5/bin/php-config make && make  installcp /usr/local/php5/lib/php/extensions/no-debug-non-zts-20100525/memcache.so /usr/local/php5/ include/php/ext/#redis  for php extendedcd /root/softtar zxvf  Nicolasff-phpredis-2.2.2-84-g6d244bb.tar.gzcd nicolasff-phpredis-6d244bb//usr/local/php5/bin/phpize./ configure  -with-php-config=/usr/local/php5/bin/php-configmake && make  installcp /usr/local/php5/lib/php/extensions/no-debug-non-zts-20100525/redis.so /usr/local/php5/ include/php/ext/#ftp  for php extendedcd /root/soft/php-5.4.0/ext/ftp/usr/local/php5/bin/ Phpize./configure  --enable-ftp  --with-php-config=/usr/local/php5/bin/php-config make && make installcp  /usr/local/ php5/lib/php/extensions/no-debug-non-zts-20100525/ftp.so /usr/local/php5/include/php/ext/#mongo  for  php extendedcd /root/softtar zxvf mongo-1.3.0.tgz cd mongo-1.3.0/usr/local /php5/bin/phpize./configure  --enable-mongo  --with-php-config=/usr/local/php5/bin/ php-config make && make installcp /usr/local/php5/lib/php/extensions/ no-debug-non-zts-20100525/mongo.so /usr/local/php5/include/php/ext/#tclip  for php  extendedcd /root/softtar jxvf opencv-2.4.4a.tar.bz2cd opencv-2.4.4/bin/env cc=/usr/ Bin/gcc44 cxx=/usr/bin/g++44 /usr/local/bin/cmake cmakelists.txt/usr/bin/make/usr/bin/make  installecho  "Export pkg_config_path=/usr/lib/pkgconfig/:/usr/local/lib/pkgconfig: $PKG _config_ PATH " >> /etc/profilesource /etc/profileecho  "/usr/local/lib/"  > /etc/ld.so.conf.d/opencv.confldconfigcd /root /softtar zxvf tclip.tar.gzcd /root/soft/tclip/trunk/php_ext//usr/local/php5/bin/phpize./ configure --with-php-config=/usr/local/php5/bin/php-configmakecp modules/tclip.so /usr/local/ php5/lib/php/extensions/no-debug-non-zts-20100525/cp modules/tclip.so /usr/local/php5/include/php/ ext/#apc  FOR  PHP EXTENDEDCD /ROOT/SOFTTAR ZXVF APC-3.1.13.TGZ CD  apc-3.1.13/usr/local/php5/bin/phpize./configure --enable-apc --enable-apc-mmap  -- with-php-config=/usr/local/php5/bin/php-config make make installcp /usr/local/php5/lib/php /extensions/no-debug-non-zts-20100525/apc.so /usr/local/php5/include/php/ext//usr/local/php5/sbin/php-fpm

Note: The PHP version is: 5.4.0 package please download it yourself!

This article is from the "Chengdu @ Ah-like" blog, please be sure to keep this source http://azhuang.blog.51cto.com/9176790/1551553

PHP Environment Installation Configuration

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.