centos7 安装 apache+php

# 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
posted @ 2021-06-22 20:16  huim  阅读(16)  评论(0编辑  收藏  举报