php7对magento不太兼容。预装了php7,改回php5.6,
卸载php7
sudo yum remove php70
重启httpd
运行网站,
报错
The PDO extension is required for this adapter but the extension is not loaded
应该是原先预装的
php70-mysqlnd
有问题,先卸载
sudo yum remove php70-mysqlnd
再装对应版本的
sudo yum install php56-mysqlnd
http://docs.amazonaws.cn/AWSEC2/latest/UserGuide/install-LAMP.html