阿里雲 CentOS6.4 安裝php 5.3 記錄
yum -y install curl curl-devel libxml2 libxml2-devel libjpeg libjpeg-devel libpng libpng-devel zlib zlib-devel freetype freetype-devel openldap openldap-devel xmlrpc libmcrypt libmcrypt-devel libtool libtool-ltdl libtool-ltdl-devel
libmcrypt(libmcrypt-2.5.8.tar.gz ): mcrypt(mcrypt-2.6.8.tar.gz ): mhash(mhash-0.9.9.9.tar.gz ): 2 .先安裝Libmcrypt wget http://downloads.sourceforge.net/project/mcrypt/Libmcrypt/2.5.8/libmcrypt-2.5.8.tar.gz?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fmcrypt%2Ffiles%2FLibmcrypt%2F2.5.8%2F&ts=1362651065&use_mirror=nchc #tar -zxvf libmcrypt-2.5.8.tar.gz #cd libmcrypt-2.5.8 #./configure #make #make install 說明:libmcript默認安裝在/usr/local 3.安裝mhash wget http://downloads.sourceforge.net/project/mhash/mhash/0.9.9.9/mhash-0.9.9.9.tar.gz?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fmhash%2Ffiles%2Fmhash%2F0.9.9.9%2F&ts=1362651167&use_mirror=ncu tar -zxvf mhash-0.9.9.9.tar.gz cd mhash-0.9.9.9;./configure;make;make install 4.安裝mcrypt wget http://downloads.sourceforge.net/project/mcrypt/MCrypt/2.6.8/mcrypt-2.6.8.tar.gz?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fmcrypt%2Ffiles%2FMCrypt%2F2.6.8%2F&ts=1362651142&use_mirror=ncu tar -zxvf mcrypt-2.6.8.tar.gz cd mcrypt-2.6.8 #LD_LIBRARY_PATH=/usr/local/lib ./configure make;make install ./configure -prefix=/usr/local/php -with-config-file-path=/usr/local/php/etc -with-mysql=mysqlnd -with-mysqli=mysqlnd -with-iconv -with-freetype -with-jpeg -with-png -with-zlib -with-libxml -enable-xml -disable-rpath -enable-discard-path -enable-safe-mode -enable-bcmath -enable-shmop -enable-sysvsem -enable-inline-optimization -with-curl -with-curlwrappers -enable-mbregex -enable-fpm -enable-force-cgi-redirect -enable-mbstring -enable-mcrypt --with-mcrypt -with-gd -enable-gd-native-ttf -with-openssl -with-mhash -enable-pcntl -enable-sockets -enable-soap -with-xmlrpc -enable-zip -disable-ipv6 -with-pear
歡迎關注本站公眾號,獲取更多信息