阿里云上CentOS7的LAMP环境

1、安装apache
# yum install httpd httpd-devel
# systemctl start  httpd
# systemctl enable  httpd
# systemctl status httpd

2、安装mysql
# yum install mariadb mariadb-server mariadb-libs mariadb-devel
# systemctl start  mariadb 
# systemctl enable  mariadb 
# systemctl status  mariadb 
# mysql -u root -p

3、安装PHP
# yum -y install php
# yum install php-mysql
# yum install -y php-gd php-ldap php-odbc php-pear php-xml php-xmlrpc php-mbstring php-snmp php-soap curl curl-devel php-bcmath

4、apache服务器
# systemctl restart httpd