以下安装过程为我在**网工作期间,**网整个外网所需服务的安装过程以及注意事项
一 安装所需软件包
LANG=C
yum -y install gcc gcc-c gd* 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 curl curl-devel e2fsprogs e2fsprogs-devel krb5 krb5-devel libidn libidn-devel openssl openssl-devel openldap openldap-devel nss_ldap openldap-clients openldap-servers readline readline-devel libtool libtool-ltdl libtool-ltdl-devel *ltdl*
二、安装PHP 5.2.13(FastCGI模式)
1、编译安装PHP 5.2.13所需的支持库:
tar zxvf libiconv-1.13.tar.gz
cd libiconv-1.13/
./configure --prefix=/usr/local/web_server/
(make ZEND_EXTRA_LIBS=''-liconv'')
make && make install
tar zxvf libmcrypt-2.5.8.tar.gz
cd libmcrypt-2.5.8/
./configure --prefix=/usr/local/web_server/
make && make install
/sbin/ldconfig
cd libltdl/
./configure --prefix=/usr/local/web_server/ --enable-ltdl-install
make && make install
tar zxvf mhash-0.9.9.9.tar.gz
cd mhash-0.9.9.9/
./configure --prefix=/usr/local/web_server/
make && make install
./configure
make && make install
tar zxvf libevent-1.4.10-stable.tar.gz ( http://monkey.org/~provos/libevent-1.4.9-stable.tar.gz)
cd libevent-1.4.10-stable
./configure --prefix=/usr/local/web_server/libevent
make && make install
32位机器:
ln -s /usr/local/web_server/lib/libmcrypt.la /usr/lib/libmcrypt.la
ln -s /usr/local/web_server/lib/libmcrypt.so /usr/lib/libmcrypt.so
ln -s /usr/local/web_server/lib/libmcrypt.so.4 /usr/lib/libmcrypt.so.4
ln -s /usr/local/web_server/lib/libmcrypt.so.4.4.8 /usr/lib/libmcrypt.so.4.4.8
ln -s /usr/local/web_server/lib/libmhash.a /usr/lib/libmhash.a
ln -s /usr/local/web_server/lib/libmhash.la /usr/lib/libmhash.la
ln -s /usr/local/web_server/lib/libmhash.so /usr/lib/libmhash.so
ln -s /usr/local/web_server/lib/libmhash.so.2 /usr/lib/libmhash.so.2
ln -s /usr/local/web_server/lib/libmhash.so.2.0.1 /usr/lib/libmhash.so.2.0.1
64位机器:
ln -s /usr/local/web_server/lib/libmcrypt.la /usr/lib64/libmcrypt.la
ln -s /usr/local/web_server/lib/libmcrypt.so /usr/lib64/libmcrypt.so
ln -s /usr/local/web_server/lib/libmcrypt.so.4 /usr/lib64/libmcrypt.so.4
ln -s /usr/local/web_server/lib/libmcrypt.so.4.4.8 /usr/lib64/libmcrypt.so.4.4.8
ln -s /usr/local/web_server/lib/libmhash.a /usr/lib64/libmhash.a
ln -s /usr/local/web_server/lib/libmhash.la /usr/lib64/libmhash.la
ln -s /usr/local/web_server/lib/libmhash.so /usr/lib64/libmhash.so
ln -s /usr/local/web_server/lib/libmhash.so.2 /usr/lib64/libmhash.so.2
ln -s /usr/local/web_server/lib/libmhash.so.2.0.1 /usr/lib64/libmhash.so.2.0.1
tar zxvf mcrypt-2.6.8.tar.gz
cd mcrypt-2.6.8/
/sbin/ldconfig
./configure --prefix=/usr/local/web_server/ --with-libmcrypt-prefix=/usr/local/web_server/ --with-libiconv-prefix=/usr/local/web_server/
mak |