1: first download the corresponding software version from the official website. 2: install the required third-party library yum-yinstallgccgcc-c ++ autoconfmakelibjpeglibjpeg-devel \ libpnglibpng-develfreetypefreetype-develzlib \...
1: first download the corresponding software version from the official website.
2: install required third-party libraries
Yum-y install gcc-c ++ autoconf make libjpeg-devel \
Libpng-devel freetype-devel zlib \
Zlib-devel glibc-devel glib2 glib2-devel bzip2 \
Bzip2-devel ncurses-devel curl-devel \
E2fsprogs e2fsprogs-devel krb5 krb5-devel libidn \
Libidn-devel openssl-devel libxml2 libxml2-devel \
Patch pcre-devel ImageMagick mhash-devel \
Libmcrypt-devel libevent-devel libxslt \
Libxslt-devel libtool-ltdl-devel \
Bison-devel
Wget http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.13.1.tar.gz
Wget "http://downloads.sourceforge.net/mcrypt/libmcrypt-2.5.8.tar.gz? Modtime = 1171868460 & big_mirror = 0"
Wget "http://downloads.sourceforge.net/mcrypt/mcrypt-2.6.8.tar.gz? Modtime = 1194463373 & big_mirror = 0"
Wget "http://downloads.sourceforge.net/mhash/mhash-0.9.9.9.tar.gz? Modtime = 1175740843 & big_mirror = 0"
Tar zxvf libiconv-1.13.tar.gz
Cd libiconv-1.13/
./Configure -- prefix =/usr/local
Make
Make install
Cd ../
Tar zxvf libmcrypt-2.5.8.tar.gz
Cd libmcrypt-2.5.8/
./Configure
Make
Make install
Tar zxvf mhash-0.9.9.9.tar.gz
Cd mhash-0.9.9.9/
./Configure
Make
Make install
Cd ../
Ln-s/usr/local/lib/libmcrypt. la/usr/lib/libmcrypt. la
Ln-s/usr/local/lib/libmcrypt. so/usr/lib/libmcrypt. so
Ln-s/usr/local/lib/libmcrypt. so.4/usr/lib/libmcrypt. so.4
Ln-s/usr/local/lib/libmcrypt. so.4.4.8/usr/lib/libmcrypt. so.4.4.8
Ln-s/usr/local/lib/libmhash. a/usr/lib/libmhash.
Ln-s/usr/local/lib/libmhash. la/usr/lib/libmhash. la
Ln-s/usr/local/lib/libmhash. so/usr/lib/libmhash. so
Ln-s/usr/local/lib/libmhash. so.2/usr/lib/libmhash. so.2
Ln-s/usr/local/lib/libmhash. so.2.0.1/usr/lib/libmhash. so.2.0.1
Tar zxvf mcrypt-2.6.8.tar.gz
Cd mcrypt-2.6.8/
/Sbin/ldconfig
./Configure
Make
Make install
Cd ../
3: install mysql
Tar zxvf mysql-5.5.15.tar.gz
Cd mysql-5.5.15
Cmake-DMYSQL_DATADIR =/data0/mysql/3306/data /\
-DWITH_ARCHIVE_STORAGE_ENGINE = on \
-DCMAKE_INSTALL_PREFIX =/usr/local/mysql
Make
Make install
Echo/usr/local/mysql/lib/>/etc/ld. so. conf
Ldconfig
3: install nginx
Tar zxvf nginx-1.0.0.tar.gz
Cd nginx-1.0.0
./Configure -- user = www -- group = www -- prefix =/usr/local/nginx \
-- With-http_stub_status_module -- with-http_ssl_module
Make & make install
Cd ../
4. install php
Tar zxvf php-5.3.8.tar.gz
Cd php-5.3.8
./Configure \
-- Prefix =/usr/local/php \
-- With-config-file-path =/usr/local/php/etc \
-- With-mysql =/usr/local/mysql \
-- With-mysqli =/usr/local/mysql/bin/mysql_config \
-- With-pdo-mysql =/usr/local/mysql \
-- With-iconv-dir =/usr/local -- with-freetype-dir \
-- With-jpeg-dir -- with-png-dir -- with-zlib \
-- With-libxml-dir =/usr -- enable-xml -- disable-rpath \
-- Enable-safe-mode -- enable-bcmath -- enable-shmop \
-- Enable-sysvsem -- enable-inline-optimization \
-- With-curl -- with-curlwrappers -- enable-mbregex -- enable-fpm \
-- With-fpm-user = www -- with-fpm-group = www -- enable-mbstring \
-- With-mcrypt -- with-gd -- enable-gd-native-ttf -- with-openssl \
-- With-mhash -- enable-pcntl -- enable-sockets -- with-xmlrpc \
-- Enable-zip -- enable-soap -- disable-phar
Make
Make install
Author "starting"