# apache
yum install -y httpd
# php
yum -y install php
yum -y install php-gd php-ldap php-odbc php-pear php-xml php-xmlrpc php-mbstring php-snmp php-soap curl curl-devel php-mysql
yum -y install mod_php
systemctl stop firewalld.service
systemctl restart httpd