服务器已经几个月没有升级了。今天来了个大行动,不过又是通宵阿~~ 郁闷... 留个时间为证~~
升级 OpenSSL 到 0.97d
# tar -zxvf openssl-0.9.7d.tar.gz
# cd openssl-0.9.7d
# ./config
# make
# make test
# make install
升级 OpenSSH 到 openssh-3.7.1p2-1
/portable/rpm/RH90/openssh-3.7.1p2-1.i386.rpm ftp://ftp.netlab.is.tsukuba.ac.jp/pub/os/OpenBSD/OpenSSH
/portable/rpm/RH90/openssh-clients-3.7.1p2-1.i386.rpm ftp://ftp.netlab.is.tsukuba.ac.jp/pub/os/OpenBSD/OpenSSH
/portable/rpm/RH90/openssh-server-3.7.1p2-1.i386.rpm ftp://ftp.netlab.is.tsukuba.ac.jp/pub/os/OpenBSD/OpenSSH
/portable/DJM-GPG-KEY.asc
# rpm --import DJM-GPG-KEY.asc
# rpm -Uvh openssh-3.7.1p2-1.i386.rpm openssh-clients-3.7.1p2-1.i386.rpm openssh-server-3.7.1p2-1.i386.rpm
# rpm -q openssh
openssh-3.7.1p2-1
记得重启一下 sshd 进程。
升级 MySQL 到 4.0.20
超级麻烦!有危险,要注意保存好/usr/local/mysql/data 文件夹!
因为是从 4.0.13 升级到 4.0.20,是在同一个series 下面升级,所以只要将除了 data 文件夹以外的程序文件替换原程序即可!这个时候最好把apache关了。不然用户会不停地写数据库(其实数据库都是文件……)。记住:一定要做好数据库备份工作,不然你就完蛋了!
不建议跨 series 升级。 详细请看http://dev.mysql.com/doc/mysql/en/Replication_Intro.html
升级 zlib 1.1.4 --> 1.2.1
升级 freetype 2.1.4 --> 2.1.8
升级 PHP 到 php 4.3.6
# tar -zxvf php-4.3.6.tar.gz
# cd php-4.3.6
# ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-apache2=/usr/local/apache2 --with-mysql=/usr/local/mysql --enable-force-cgi-redirect --with-zlib --with-jpeg-dir --with-png-dir --with-freetype-dir --with-gd --with-mcrypt=/usr/local/lib --enable-bcmath
# make
# make install
# libtool --finish /home/kreny/public_html/download/source/php-4.3.6/libs
# apachectl start
升级 apache 到 2.0.49
因为每次升级上面的东西都要重新编译apache,所以把他放在最后。
# tar -zxvf httpd-2.0.49.tar.gz
# cd httpd-2.0.49
# ./configure --enable-so --enable-speling --enable-rewrite --enable-ssl --with-ssl=/usr/local/ssl --enable-forward
# make
# apachectl stop
# make install
# apachectl start
升级 phpMyAdmin 到 2.5.6
升级结果:
Apache/2.0.49 (Unix) mod_ssl/2.0.49 OpenSSL/0.9.7d mod_fastcgi/2.4.0 PHP/4.3.6 Server at www.kreny.com Port 80
用SSS 6.9.98 Build 73 给自己扫描了一下,发现原来的十几个漏洞都没有了。 ;)