Php 环境安装配置
#!/bin/bashyuminstall-ygiflibgiflib-develyuminstall-ylibxml2libxml2-devellibxml2-staticyuminstall-ygcc44gcc44-c++gtk+gtk+-develpkgconfiglibpngzliblibjpeglibtiffyum-yinstallgccgcc-c++autoconfmakepatchntp.x86_64libjpeglibjpeg-devellibpnglibpng-develgdgd-develfreetypefreetype-devellibxml2libxml2-develzlibzlib-develglib2glib2-develbzip2bzip2-devellibeventlibevent-develncursesncurses-develcurlcurl-devele2fsprogse2fsprogs-develkrb5krb5-devellibidnlibidn-developensslopenssl-develfonts-chinesegettextgettext-develgmp-develpspell-develunziplibcapglibcglibc-devellibmcryptlibmcrypt-develmhashmhash-develpcrepcre-develsysstatvim*libtool-ltdl*#phpforinstallcd/root/softtarzxvfphp-5.4.0.tar.gzcdphp-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/makeZEND_EXTRA_LIBS='-liconv'makeinstallrm-rf/usr/local/php5/etc/*cp/root/soft/php-fpm.conf/usr/local/php5/etc/cp/root/soft/php.ini/usr/local/php5/etc/#memcacheforphpextendedcd/root/softtarzxvfmemcache-2.2.5.tgzcdmemcache-2.2.5/usr/local/php5/bin/phpize./configure--enable-memcache--with-php-config=/usr/local/php5/bin/php-configmake&&makeinstallcp/usr/local/php5/lib/php/extensions/no-debug-non-zts-20100525/memcache.so/usr/local/php5/include/php/ext/#redisforphpextendedcd/root/softtarzxvfnicolasff-phpredis-2.2.2-84-g6d244bb.tar.gzcdnicolasff-phpredis-6d244bb//usr/local/php5/bin/phpize./configure-with-php-config=/usr/local/php5/bin/php-configmake&&makeinstallcp/usr/local/php5/lib/php/extensions/no-debug-non-zts-20100525/redis.so/usr/local/php5/include/php/ext/#ftpforphpextendedcd/root/soft/php-5.4.0/ext/ftp/usr/local/php5/bin/phpize./configure--enable-ftp--with-php-config=/usr/local/php5/bin/php-configmake&&makeinstallcp/usr/local/php5/lib/php/extensions/no-debug-non-zts-20100525/ftp.so/usr/local/php5/include/php/ext/#mongoforphpextendedcd/root/softtarzxvfmongo-1.3.0.tgzcdmongo-1.3.0/usr/local/php5/bin/phpize./configure--enable-mongo--with-php-config=/usr/local/php5/bin/php-configmake&&makeinstallcp/usr/local/php5/lib/php/extensions/no-debug-non-zts-20100525/mongo.so/usr/local/php5/include/php/ext/#tclipforphpextendedcd/root/softtarjxvfOpenCV-2.4.4a.tar.bz2cdopencv-2.4.4/bin/envCC=/usr/bin/gcc44CXX=/usr/bin/g++44/usr/local/bin/cmakeCMakeLists.txt/usr/bin/make/usr/bin/makeinstallecho"exportPKG_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/softtarzxvftclip.tar.gzcd/root/soft/tclip/trunk/php_ext//usr/local/php5/bin/phpize./configure--with-php-config=/usr/local/php5/bin/php-configmakecpmodules/tclip.so/usr/local/php5/lib/php/extensions/no-debug-non-zts-20100525/cpmodules/tclip.so/usr/local/php5/include/php/ext/#apcforphpextendedcd/root/softtarzxvfAPC-3.1.13.tgzcdAPC-3.1.13/usr/local/php5/bin/phpize./configure--enable-apc--enable-apc-mmap--with-php-config=/usr/local/php5/bin/php-configmakemakeinstallcp/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
注:Php版本为:5.4.0 软件包请自行下载!
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。