Skip to content

Commit 0659b41

Browse files
committed
[add] info how to install release and development versions
1 parent 8357d32 commit 0659b41

File tree

1 file changed

+24
-10
lines changed

1 file changed

+24
-10
lines changed

README.md

Lines changed: 24 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -148,24 +148,38 @@ yum install grep gawk lsof jq fcgi
148148
```
149149

150150
#### 1.2. Install Zabbix PHP-FPM template
151-
Download the latest version of the template:
151+
First, please, download the template archive: you can use either the [latest published release](https://github.com/rvalitov/zabbix-php-fpm/releases/latest) (the latest stable version, I hope :sweat_smile:) or use the active development version (that contains all the latest features and updates).
152+
Below we will download the archive to a temporary directory `/tmp` that usually presents in all OS.
153+
If you don't have such directory, please, create it first.
154+
155+
##### 1.2.1. To use stable release
156+
To download a stable release, run command:
152157

153158
```console
154-
wget https://github.com/rvalitov/zabbix-php-fpm/archive/master.zip -O /tmp/zabbix-php-fpm.zip
155-
```
159+
curl -L $(curl -s https://api.github.com/repos/rvalitov/zabbix-php-fpm/releases/latest | grep 'zipball_' | cut -d\" -f4) --output /tmp/zabbix-php-fpm.zip
160+
```
161+
162+
##### 1.2.2. To use development version
156163

157-
Unzip the archive:
164+
To download a developement version, run command:
165+
166+
```console
167+
wget https://github.com/rvalitov/zabbix-php-fpm/archive/master.zip -O /tmp/zabbix-php-fpm.zip
168+
```
169+
##### 1.2.3. Unzip and configure
170+
171+
Unzip the downloaded archive:
158172

159173
```console
160-
unzip /tmp/zabbix-php-fpm.zip -d /tmp
174+
unzip -j /tmp/zabbix-php-fpm.zip "*/zabbix/*" "*/ispconfig/*" -d /tmp/zabbix-php-fpm
161175
```
162176

163177
Copy the required files to the Zabbix agent configuration directory:
164178

165179
```console
166-
cp /tmp/zabbix-php-fpm-master/zabbix/userparameter_php_fpm.conf /etc/zabbix/zabbix_agentd.d/
167-
cp /tmp/zabbix-php-fpm-master/zabbix/zabbix_php_fpm_discovery.sh /etc/zabbix/
168-
cp /tmp/zabbix-php-fpm-master/zabbix/zabbix_php_fpm_status.sh /etc/zabbix/
180+
cp /tmp/zabbix-php-fpm/userparameter_php_fpm.conf /etc/zabbix/zabbix_agentd.d/
181+
cp /tmp/zabbix-php-fpm/zabbix_php_fpm_discovery.sh /etc/zabbix/
182+
cp /tmp/zabbix-php-fpm/zabbix_php_fpm_status.sh /etc/zabbix/
169183
```
170184

171185
Configure access rights:
@@ -331,7 +345,7 @@ Please, use one of the methods below to adjust the settings of ISPConfig.
331345
Apply the patch using the following command:
332346

333347
```console
334-
patch /usr/local/ispconfig/server/conf/php_fpm_pool.conf.master --input=/tmp/zabbix-php-fpm-master/ispconfig/ispconfig.patch --output=/usr/local/ispconfig/server/conf-custom/php_fpm_pool.conf.master --reject-file=-
348+
patch /usr/local/ispconfig/server/conf/php_fpm_pool.conf.master --input=/tmp/zabbix-php-fpm/ispconfig.patch --output=/usr/local/ispconfig/server/conf-custom/php_fpm_pool.conf.master --reject-file=-
335349
```
336350

337351
##### 1.5.2. Method #2. Manually adjust the template
@@ -399,7 +413,7 @@ Delete temporary files:
399413

400414
```console
401415
rm /tmp/zabbix-php-fpm.zip
402-
rm -rf /tmp/zabbix-php-fpm-master/
416+
rm -rf /tmp/zabbix-php-fpm/
403417
```
404418

405419
### 2. On Zabbix Server

0 commit comments

Comments
 (0)