7 Distribution-specific notes on setting up Nginx for Zabbix

SLES 12

In SUSE Linux Enterprise Server 12 you need to add the Nginx repository, before installing Nginx:

  1. zypper addrepo -G -t yum -c 'http://nginx.org/packages/sles/12' nginx

You also need to configure php-fpm:

  1. cp /etc/php5/fpm/php-fpm.conf{.default,}
  2. sed -i 's/user = nobody/user = wwwrun/; s/group = nobody/group = www/' /etc/php5/fpm/php-fpm.conf

SLES 15

In SUSE Linux Enterprise Server 15 you need to configure php-fpm:

  1. cp /etc/php7/fpm/php-fpm.conf{.default,}
  2. cp /etc/php7/fpm/php-fpm.d/www.conf{.default,}
  3. sed -i 's/user = nobody/user = wwwrun/; s/group = nobody/group = www/' /etc/php7/fpm/php-fpm.d/www.conf