在CentOS中标准的WEB服务应当是:AMP
### Apache服务软件安装
1、apache软件在centos中是httpd,
2、yum search httpd
3、yum install -y httpd
4、chkconfig |grep http 查看启动设置
5、chkconfig httpd --level 35 on 设置3、5启动
6、service httpd status 查看服务当前状态
7、service httpd start 启动服务
8、yum install -y firefox.x-86_64 安装浏览器
9、启动浏览器,查看本地服务器localhost
10、远程启动浏览器查看此服务器的服务
11、如果本地能正常访问,远程不能访问,请查看防火墙设置。
### php安装
1、centos系统中yum默认软件源中都只提供php5.3版本,但现在好多框架都需要5.5以上才能支持。所以首要要找一个php5.5以上的rpm包来安装。
2、rpm包安装,源码安装两种方式,具体见安装方式。