3
0
mirror of https://github.com/rvalitov/zabbix-php-fpm.git synced 2023-11-05 03:30:27 +01:00

[add] one more step how to grant previliges without root #7

This commit is contained in:
Ramil Valitov 2019-11-29 14:57:53 +03:00
parent 799f76ec1a
commit c3bec2e000
No known key found for this signature in database
GPG Key ID: 645768E8FD0E18C7

View File

@ -198,7 +198,21 @@ Add the following line to this file:
zabbix ALL = NOPASSWD: /etc/zabbix/zabbix_php_fpm_discovery.sh
```
Here we specified `zabbix` as the user under which the Zabbix Agent is run. This is the default name, but if you have a custom installation with different name, then please, change it accordingly. Save and exit the editor. Your modifications will be applied.
Here we specified `zabbix` as the user under which the Zabbix Agent is run. This is the default name, but if you have a custom installation with different name, then please, change it accordingly. Save and exit the editor. Your modifications will be applied.
Now edit the file `userparameter_php_fpm.conf`. Find the line:
```
UserParameter=php-fpm.discover,/etc/zabbix/zabbix_php_fpm_discovery.sh
```
Add `sudo` there, so the line should be:
```
UserParameter=php-fpm.discover,sudo /etc/zabbix/zabbix_php_fpm_discovery.sh
```
That's all.
#### 1.4. Linux Tuning (optional)
Usually PHP-FPM [backlog option](https://www.php.net/manual/en/install.fpm.configuration.php#listen-backlog) is limited by Linux kernel settings and equals to `128` by default.