[comment]: # translation:outdated

[comment]: # ({1fdddac0-840eea1a})
# 9 Note specifiche della distribuzione sulla configurazione di Nginx per Zabbix

[comment]: # ({/1fdddac0-840eea1a})

[comment]: # ({09288947-4b966990})
#### RHEL

Su RHEL 8, 9 e 10, Nginx è incluso in AppStream: non sono necessari repository aggiuntivi.
È sufficiente abilitarlo e installarlo con:

```bash
dnf module list nginx
dnf -y install nginx
```

Su RHEL 7, Nginx può essere installato dal repository CentOS 7 Extras (se si utilizza CentOS) tramite:

```bash
yum -y install nginx
```

Se si preferiscono le build upstream più recenti in assoluto, configurare il repository ufficiale di NGINX in `/etc/yum.repos.d/nginx.repo`:

```bash
cat > /etc/yum.repos.d/nginx.repo << 'EOF'
[nginx-stable]
name=nginx stable repo
baseurl=https://nginx.org/packages/rhel/$releasever/$basearch/
gpgcheck=1
enabled=1
gpgkey=https://nginx.org/keys/nginx_signing.key
EOF
dnf -y install nginx
```

[comment]: # ({/09288947-4b966990})

[comment]: # ({d5f7bb10-31bd54eb})
#### SLES 15

In SUSE Linux Enterprise Server 15 è necessario configurare `php-fpm` (il percorso del file di configurazione può variare leggermente a seconda del service pack):

```bash
cp /etc/php8/fpm/php-fpm.conf{.default,}
cp /etc/php8/fpm/php-fpm.d/www.conf{.default,}
sed -i 's/user = nobody/user = wwwrun/; s/group = nobody/group = www/' /etc/php8/fpm/php-fpm.d/www.conf
```

[comment]: # ({/d5f7bb10-31bd54eb})
