我使用aws的linux版本,rethat7.2

1、更新现有软件,

sudo yum update

2、安装编译环境,

sudo yum install gcc gcc-c++ make

3、安装lamp,

sudo yum install apache mysql php php-mysql mysql-server

4、mysql扩展:

yum -y install mysql-connector-odbc mysql-devel libdbi-dbd-mysql

 5、php扩展:
yum -y install php-mcrypt php-gd php-xml php-mbstring php-ldap php-pear php-xmlrpc
6、安装apache扩展
yum -y install httpd-manual mod_ssl mod_perl mod_auth_mysql