① 安装和配置httpd
yum -y install httpd
rm -f /etc/httpd/conf.d/welcome.conf
vim /etc/httpd/conf/httpd.conf //修改下面几行内容
ServerName www.example.com:80 //第96行
AllowOverride All //第151行
DirectoryIndex index.html index.cgi index.php //第164行
# add follows to the end //添加这几行
# server's response header
ServerTokens Prod
# keepalive is ON
KeepAlive On
systemctl start httpd
systemctl enable httpd
Created symlink from /etc/systemd/system/multi-user.target.wants/httpd.service to /usr/lib/systemd/system/httpd.service.
vim /var/www/html/index.html
this is test page for httpd!!!
访问http://10.5.10.141/
② 安装php
yum -y install php php-mbstring php-pear
vim /etc/php.ini
date.t