-
Notifications
You must be signed in to change notification settings - Fork 1
php
The PHP template is a generic kind of placeholder for basic common configuration for php vhosts.
It has a config file with these contents:
map $host $upstream_php {
default php8;
}
upstream php8 {
server 127.0.0.1:9082;
}
All php vhosts take into account this config file, copying it if not existing, together with any other config file the vhost type may need.
This file provides a global variable, $upstream_php
, whose purpose is to be the common php fastcgi for all php websites. The variable points to a php8
upstream as default. So, you have to make sure that your php-fpm settings match these settings. By default, in /etc/php/8.x/pool.d/www.conf
, the listen
directive points to a file, so you should change this setting to listen: 9082
for this to work out of the box.
There can be php vhost types that need to be tweaked or its config modified to match the php-fpm settings.