如何在EC2上安装PHP 7.1 t2.micro运行具有nginx作为Web服务器的Amazon Linux的实例?

如何在Amazon EC2上安装PHP 7.1 t2.micro运行具有nginx作为Web服务器的Amazon Linux的实例?

Reference to PHP7

最佳答案
参考this答案,将步骤1更改为以下内容:

1.在Amazon Linux AMI上安装Apache 2.4和PHP 7.1

# Remove current apache & php 
sudo yum remove httpd* php*

# Install Apache 2.4
sudo yum install httpd24

# Install PHP 7.1
sudo yum install php71

# Install additional commonly used php packages
sudo yum install php71-gd
sudo yum install php71-imap
sudo yum install php71-mbstring
sudo yum install php71-mysqlnd
sudo yum install php71-opcache
sudo yum install php71-pdo
sudo yum install php71-pecl-apcu

基本上用php71替换php70.

按照步骤2继续,其余按照original tutorial进行.

转载注明原文:如何在EC2上安装PHP 7.1 t2.micro运行具有nginx作为Web服务器的Amazon Linux的实例? - 代码日志