@@ -135,10 +135,10 @@ For advanced Apache configuration options, read the official `Apache documentati
135135Apache with PHP-FPM
136136-------------------
137137
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
139139the FastCGI process manager ``php-fpm `` binary and Apache's FastCGI module
140140installed (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).
142142
143143PHP-FPM uses so-called *pools * to handle incoming FastCGI requests. You can
144144configure 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:
153153 group = www-data
154154
155155 ; use a unix domain socket
156- listen = /var/run/php5 -fpm.sock
156+ listen = /var/run/php7.1 -fpm.sock
157157
158158 ; or listen on a TCP socket
159159 listen = 127.0.0.1:9000
@@ -223,10 +223,10 @@ should look something like this:
223223 ServerName domain.tld
224224 ServerAlias www.domain.tld
225225
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
230230
231231 DocumentRoot /var/www/project/web
232232 <Directory /var/www/project/web>
@@ -251,7 +251,7 @@ instead:
251251
252252.. code-block :: apache
253253
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
255255
256256 .. _web-server-nginx :
257257
@@ -274,7 +274,7 @@ The **minimum configuration** to get your application running under Nginx is:
274274 # This rule should only be placed on your development environment
275275 # In production, don't include this and don't deploy app_dev.php or config.php
276276 location ~ ^/(app_dev|config)\.php(/|$) {
277- fastcgi_pass unix:/var/run/php5 -fpm.sock;
277+ fastcgi_pass unix:/var/run/php7.1 -fpm.sock;
278278 fastcgi_split_path_info ^(.+\.php)(/.*)$;
279279 include fastcgi_params;
280280 # 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:
289289 }
290290 # PROD
291291 location ~ ^/app\.php(/|$) {
292- fastcgi_pass unix:/var/run/php5 -fpm.sock;
292+ fastcgi_pass unix:/var/run/php7.1 -fpm.sock;
293293 fastcgi_split_path_info ^(.+\.php)(/.*)$;
294294 include fastcgi_params;
295295 # When you are using symlinks to link the document root to the
0 commit comments