1.centos 服务器安装前清理
  删除sasl 相关软件
rpm -e --allmatches  --nodeps  cyrus-sasl-2.1.22-5.el5_4.3 cyrus-sasl-plain-2.1.22-5.el5_4.3 cyrus-sasl-lib-2.1.22-5.el5_4.3   cyrus-sasl-md5-2.1.22-5.el5_4.3
rpm -qa | grep sasl   检查是否删除干净
然后进目录/usr/lib查一下ls –al /usr/lib | grep sasl 应该没有目录sasl及sasl2了。
删除perl相关模块
rpm -e --nodeps  perl-5.8.8-38.el5 perl-String-CRC32-1.4-2.fc6 perl-HTML-Tagset-3.10-2.1.1 perl-URI-1.35-3 perl-Compress-Zlib-1.42-1.fc6  perl-libwww-perl-5.805-1.1.1 perl-HTML-Parser-3.55-1.fc6
执行完删除命令后,再运行命令perl –v,如果出现“-bash: perl: command not found”则表明已经把perl清理掉了。

2安装 apache mysql php
获取httpd : wget http://mirrors.hust.edu.cn/apache//httpd/httpd-2.2.26.tar.gz
获取mysql: wget http://cdn.mysql.com/Downloads/MySQL-5.5/mysql-5.5.36-linux2.6-x86_64.tar.gz
在/usr/local/src/中解压httpd ,mysql,php
安装httpd
cd /usr/local/src/httpd-2.2.26
./configure -prefix=/usr/local/apache --enable-so

make && make install


http://sery.blog.51cto.com/10037/45500