APACHE
yum install httpd
firewall-cmd --zone=public --add-port=80/tcp --permanent
systemctl restart firewalld
systemctl start httpd
systemctl enable httpd
PHP
yum -y install epel-release
rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
yum install mod_PHP71w
systemctl restart httpd
原文链接:https://www.f2er.com/centos/375700.html