@@ -135,10 +135,10 @@ For advanced Apache configuration options, read the official `Apache documentati
135
135
Apache with PHP-FPM
136
136
-------------------
137
137
138
- To make use of PHP5 -FPM with Apache, you first have to ensure that you have
138
+ To make use of PHP -FPM with Apache, you first have to ensure that you have
139
139
the FastCGI process manager ``php-fpm `` binary and Apache's FastCGI module
140
140
installed (for example, on a Debian based system you have to install the
141
- ``libapache2-mod-fastcgi `` and ``php5 -fpm `` packages).
141
+ ``libapache2-mod-fastcgi `` and ``php7.1 -fpm `` packages).
142
142
143
143
PHP-FPM uses so-called *pools * to handle incoming FastCGI requests. You can
144
144
configure an arbitrary number of pools in the FPM configuration. In a pool
@@ -153,7 +153,7 @@ listen on. Each pool can also be run under a different UID and GID:
153
153
group = www-data
154
154
155
155
; use a unix domain socket
156
- listen = /var/run/php5 -fpm.sock
156
+ listen = /var/run/php7.1 -fpm.sock
157
157
158
158
; or listen on a TCP socket
159
159
listen = 127.0.0.1:9000
@@ -223,10 +223,10 @@ should look something like this:
223
223
ServerName domain.tld
224
224
ServerAlias www.domain.tld
225
225
226
- AddHandler php5 -fcgi .php
227
- Action php5 -fcgi /php5 -fcgi
228
- Alias /php5 -fcgi /usr/lib/cgi-bin/php5 -fcgi
229
- FastCgiExternalServer /usr/lib/cgi-bin/php5 -fcgi -host 127.0.0.1:9000 -pass-header Authorization
226
+ AddHandler php7 -fcgi .php
227
+ Action php7 -fcgi /php7 -fcgi
228
+ Alias /php7 -fcgi /usr/lib/cgi-bin/php7 -fcgi
229
+ FastCgiExternalServer /usr/lib/cgi-bin/php7 -fcgi -host 127.0.0.1:9000 -pass-header Authorization
230
230
231
231
DocumentRoot /var/www/project/web
232
232
<Directory /var/www/project/web>
@@ -251,7 +251,7 @@ instead:
251
251
252
252
.. code-block :: apache
253
253
254
- FastCgiExternalServer /usr/lib/cgi-bin/php5 -fcgi -socket /var/run/php5 -fpm.sock -pass-header Authorization
254
+ FastCgiExternalServer /usr/lib/cgi-bin/php7 -fcgi -socket /var/run/php7.1 -fpm.sock -pass-header Authorization
255
255
256
256
.. _web-server-nginx :
257
257
@@ -274,7 +274,7 @@ The **minimum configuration** to get your application running under Nginx is:
274
274
# This rule should only be placed on your development environment
275
275
# In production, don't include this and don't deploy app_dev.php or config.php
276
276
location ~ ^/(app_dev|config)\.php(/|$) {
277
- fastcgi_pass unix:/var/run/php5 -fpm.sock;
277
+ fastcgi_pass unix:/var/run/php7.1 -fpm.sock;
278
278
fastcgi_split_path_info ^(.+\.php)(/.*)$;
279
279
include fastcgi_params;
280
280
# When you are using symlinks to link the document root to the
@@ -289,7 +289,7 @@ The **minimum configuration** to get your application running under Nginx is:
289
289
}
290
290
# PROD
291
291
location ~ ^/app\.php(/|$) {
292
- fastcgi_pass unix:/var/run/php5 -fpm.sock;
292
+ fastcgi_pass unix:/var/run/php7.1 -fpm.sock;
293
293
fastcgi_split_path_info ^(.+\.php)(/.*)$;
294
294
include fastcgi_params;
295
295
# When you are using symlinks to link the document root to the
0 commit comments