Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update php version in web_server_configuration.rst #19781

Merged
merged 1 commit into from
Apr 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions setup/web_server_configuration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,15 @@ listen on. Each pool can also be run under a different UID and GID:

.. code-block:: ini

; /etc/php/7.4/fpm/pool.d/www.conf
; /etc/php/8.3/fpm/pool.d/www.conf

; a pool called www
[www]
user = www-data
group = www-data

; use a unix domain socket
listen = /var/run/php/php7.4-fpm.sock
listen = /var/run/php/php8.3-fpm.sock

; or listen on a TCP connection
; listen = 127.0.0.1:9000
Expand Down Expand Up @@ -72,7 +72,7 @@ directive to pass requests for PHP files to PHP FPM:

<FilesMatch \.php$>
# when using PHP-FPM as a unix socket
SetHandler proxy:unix:/var/run/php/php7.4-fpm.sock|fcgi://dummy
SetHandler proxy:unix:/var/run/php/php8.3-fpm.sock|fcgi://dummy

# when PHP-FPM is configured to use TCP
# SetHandler proxy:fcgi://127.0.0.1:9000
Expand Down Expand Up @@ -121,7 +121,7 @@ The **minimum configuration** to get your application running under Nginx is:

location ~ ^/index\.php(/|$) {
# when using PHP-FPM as a unix socket
fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;
fastcgi_pass unix:/var/run/php/php8.3-fpm.sock;

# when PHP-FPM is configured to use TCP
# fastcgi_pass 127.0.0.1:9000;
Expand Down Expand Up @@ -198,7 +198,7 @@ When using Caddy on the server, you can use a configuration like this:
file_server

# otherwise, use PHP-FPM (replace "unix//var/..." with "127.0.0.1:9000" when using TCP)
php_fastcgi unix//var/run/php/php7.4-fpm.sock {
php_fastcgi unix//var/run/php/php8.3-fpm.sock {
# optionally set the value of the environment variables used in the application
# env APP_ENV "prod"
# env APP_SECRET "<app-secret-id>"
Expand Down
Loading