markdown 如何使用EasyEngine安装php7.1-fpm

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了markdown 如何使用EasyEngine安装php7.1-fpm相关的知识,希望对你有一定的参考价值。

# How to install php7.1-fpm with EasyEngine
--------
### Install php7.1-fpm
```
apt install php7.1-common php7.1-cli php7.1-zip php7.1-opcache php7.1-mysql php7.1-mcrypt php7.1-mbstring php7.1-json php7.1-intl php7.1-gd php7.1-fpm php7.1-curl php7.1-bz2
```

**Copy the php7.1-fpm pool configuration from php7.0-fpm**
```
cp -f /etc/php/7.0/fpm/pool.d/www.conf /etc/php/7.1/fpm/pool.d/www.conf
```

**Edit the listening port of php7.1-fpm (for example 7080 instead of 7070)**
```
nano /etc/php/7.1/fpm/pool.d/www.conf
```
Replace the line `listen = 127.0.0.1:9070` by `listen = 127.0.0.1:9080`<br>
Restart the service
```
service php7.1-fpm restart
```
Then to use php7.1-fpm, you have the choice between 

--------

### 1) Replace globally php7.0-fpm with php7.1-fpm

In this case just edit the file /etc/nginx/conf.d/upstream.conf and replace the line `server 127.0.0.1:9070;` by `server 127.0.0.1:9080;`<br>
Then reload nginx

--------

### 2) Add php7.1-fpm as an additional php version

Add the following lines in /etc/nginx/conf.d/upstream.conf
```
upstream php71 {
server 127.0.0.1:9080;
}
```
then copy and rename the file /etc/nginx/common/php7.conf to /etc/nginx/common/php71.conf<br>
And into this copy replace the line `fastcgi_pass php7;` by `fastcgi_pass php71;`<br>

Reload nginx and you can replace the line `include common/php7.conf;` by `include common/php71.conf;` in the vhosts of your choice<br>


以上是关于markdown 如何使用EasyEngine安装php7.1-fpm的主要内容,如果未能解决你的问题,请参考以下文章

markdown 如何安装和使用反应路由器(路由)

WordPress 安装 Markdown 插件

markdown 如何使用Vcpkg与Qt Creator安装的Qt

使用Doxygen生成markdown用户文档时如何获取空白页面

markdown 如何使用Atom和所有的铃声和​​口哨在MacOS上安装功能性Go开发环境。

markdown 如何最终使用纱线重新安装fkn'node-sass并且不破坏包结构.md