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:
parent
799f76ec1a
commit
c3bec2e000
14
README.md
14
README.md
@ -200,6 +200,20 @@ 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)
|
#### 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.
|
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.
|
||||||
In most cases you want to increase this value (latest PHP use `511` by default).
|
In most cases you want to increase this value (latest PHP use `511` by default).
|
||||||
|
Loading…
Reference in New Issue
Block a user