1.如果遇到错误 checking fortermcap functions library configure:error: No curses/termcap library found  

表示ncurses-devel包没有安装。

如果遇到错误 configure: error:...No recognized SSL/TLS toolkit detected

那么需要安装openssl-devel



2.启动http报错

[root@localhost httpd-2.2.22]#  /usr/local/apache2/bin/apachectl start

httpd: Could not reliably determine the server's fully qualified domain name, using localhost.localdomain for ServerName


cd /usr/local/apache2/conf

vi httpd.conf

将143行前面的注释去掉即可

143 ServerName www.example.com:80


3.编译安装php的时候执行./configure 的时候有文件找不到,执行下面命令,装上缺失的包即可

yum install libxml2 libxml2-devel zlib libpng-devel libpng-devel.i686