系统环境:Redhat AS4所需软件包:mysql-5.0.41.tar.gz
zlib-1.2.3.tar.gz openssl-0.9.8e.tar.gz httpd-2.2.4.tar.gz libpng-1.2.14.tar.gz freetype-2.1.10.tar.gz jpegsrc.v6b.tar.gz libxml2-2.6.19.tar.gz gd-2.0.33.tar.gz php-5.2.1.tar.gz所用软件包都上传至服务器/root/web目录下 1.1.安装mysql-5.0.45
卸载系统自带的mysql rpm -qa|grep mysql rpm -e –nodeps mysql
groupadd mysql
useradd -g mysql mysql
tar zxvf mysql-5.0.41.tar.gz
cd mysql-5.0.45
#./configure –prefix=/usr/local/mysql –enable-thread-safe-client –enable-local-infile –with-charset=gbk –with-extra-charset=all –with-low-memory
#make
#make install
#cp support-files/my-medium.cnf /etc/my.cnf
#cd /usr/local/mysql
#chown -R mysql .
#chgrp -R mysql .
#bin/mysql_install_db –user=mysql
#chown -R root .
#chown -R mysql var
#bin/mysqld_safe –user=mysql &
#cd /root/web/mysql-5.0.45
#cp support-files/mysql.server /etc/rc.d/init.d/mysqld
#chmod 700 /etc/rc.d/init.d/mysqld
#chkconfig –add mysqld
#chkconfig –level 345 mysqld on 测试
#/usr/local/mysql/bin/mysqladmin ping
#/usr/local/mysql/bin/mysqladmin version
#/usr/local/mysql/bin/mysql 添加root密码
#/usr/local/mysql/bin/mysqladmin -uroot -p 添加/usr/local/mysql/bin到环境变量PATH中
#export PATH=$PATH:/usr/local/mysql/bin 2.安装zlib-1.2.3 #tar zxvf zlib-1.2.3.tar.gz
#cd zlib-1.2.3
#./configure –prefix=/usr/local/zlib
#make
#make install 3.安装openssl-0.9.8e #tar zxvf openssl-0.9.8e.tar.gz
#cd openssl-0.9.8e
#./config shared zlib
#make
#make test
#make install
mv /usr/bin/openssl /usr/bin/openssl.OFF
mv /usr/include/openssl /usr/include/openssl.OFF
ln -s /usr/local/ssl/bin/openssl /usr/bin/openssl
ln -s /usr/local/ssl/include/openssl /usr/include/openssl 配置库文件搜索路径 #echo “/usr/local/ssl/lib” >> /etc/ld.so.conf
#ldconfig -v 4.安装httpd-2.2.4 #tar zxvf httpd-2.2.4.tar.gz
#cd httpd-2.2.4
#./configure –prefix=/usr/local/apache –sysconfdir=/etc/httpd –enable-so –enable-ssl –with-ssl=/usr/local/ssl –enable-track-vars –enable-rewrite –with-z-dir=/usr/local/zlib –enable-mods-shared=most
#make










