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

如何在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进行.

标签:nginx,amazon-ec2,php-7-1
来源: https://codeday.me/bug/20190712/1438673.html