@@ -56,7 +56,7 @@ The **minimum configuration** to get your application running under Nginx is:
56
56
# }
57
57
58
58
location ~ ^/index\.php(/|$) {
59
- fastcgi_pass unix:/var/run/php/php7.4 -fpm.sock;
59
+ fastcgi_pass unix:/var/run/php/php -fpm.sock;
60
60
fastcgi_split_path_info ^(.+\.php)(/.*)$;
61
61
include fastcgi_params;
62
62
@@ -265,7 +265,7 @@ Apache with PHP-FPM
265
265
To make use of PHP-FPM with Apache, you first have to ensure that you have
266
266
the FastCGI process manager ``php-fpm `` binary and Apache's FastCGI module
267
267
installed (for example, on a Debian based system you have to install the
268
- ``libapache2-mod-fastcgi `` and ``php8.1 -fpm `` packages).
268
+ ``libapache2-mod-fastcgi `` and ``php<version> -fpm `` packages).
269
269
270
270
PHP-FPM uses so-called *pools * to handle incoming FastCGI requests. You can
271
271
configure an arbitrary number of pools in the FPM configuration. In a pool
@@ -280,7 +280,7 @@ listen on. Each pool can also be run under a different UID and GID:
280
280
group = www-data
281
281
282
282
; use a unix domain socket
283
- listen = /var/run/php/php8.1 -fpm.sock
283
+ listen = /var/run/php/php -fpm.sock
284
284
285
285
; or listen on a TCP socket
286
286
listen = 127.0.0.1:9000
@@ -378,7 +378,7 @@ instead:
378
378
379
379
.. code-block :: apache
380
380
381
- FastCgiExternalServer /usr/lib/cgi-bin/php7-fcgi -socket /var/run/php/php8.1 -fpm.sock -pass-header Authorization
381
+ FastCgiExternalServer /usr/lib/cgi-bin/php7-fcgi -socket /var/run/php/php -fpm.sock -pass-header Authorization
382
382
383
383
.. _`Apache documentation` : https://httpd.apache.org/docs/
384
384
.. _`FastCgiExternalServer` : https://docs.oracle.com/cd/B31017_01/web.1013/q20204/mod_fastcgi.html#FastCgiExternalServer
0 commit comments