Skip to content

Commit 5c2193f

Browse files
committed
update readme
1 parent 5dfd667 commit 5c2193f

File tree

1 file changed

+18
-9
lines changed

1 file changed

+18
-9
lines changed

README.md

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,23 @@
1-
[![Build Status](https://travis-ci.com/ZenProjects/Zabbix-PHP-Module.svg?branch=master)](https://travis-ci.com/ZenProjects/Zabbix-PHP-Module)
21
[![License: GPL v3](https://img.shields.io/badge/License-GPL%20v3-blue.svg)](http://www.gnu.org/licenses/gpl-3.0)
3-
[![](https://piwik.ch2o.info/piwik.php?idsite=4)](https://piwik.ch2o.info)
42

53
# Zabbix PHP Loadable Module :
64

7-
This directory contains Zabbix [Loadable module](https://www.zabbix.com/documentation/3.2/manual/config/items/loadablemodules), which extends functionality of Zabbix Agent/Server/Proxy.
5+
This directory contains Zabbix `Loadable module` [v3.x-6.x](https://www.zabbix.com/documentation/6.0/en/manual/config/items/loadablemodules) and [v7.x](https://www.zabbix.com/documentation/7.0/en/manual/extensions/loadablemodules?hl=Loadable%2Cmodules), which extends functionality of Zabbix Agent/Server/Proxy.
86

97
This module add the ability to load PHP interpreter inside Zabbix Server/Proxy/Agent address space.
108

11-
Is based on my precedente work https://www.zabbix.com/forum/showthread.php?t=8305 to add the possibility to call script inside the zabbix engine. At this time I talked with Alexei Vladishev to add the ability to load module ... Now it's done!
9+
Is based on my precedente work https://www.zabbix.com/forum/showthread.php?t=8305 to add the possibility to call script inside the zabbix engine. At this time I talked with Alexei Vladishev when it's comme to Paris to add the ability to load module ... Now it's done!
1210

1311
With that module you can extend functionality of the Zabbix with PHP module at the infinite.
1412

1513
# Prerequisite :
1614

17-
The **PHP Embed SAPI - libphp[57].so** (tested with v5.6 and v7.4) :
15+
- Support **PHP Embed SAPI** v5.x and v7.x.
16+
- Support Zabbix 4.0.x/5.0.x/6.0.x/7.0.x.
17+
18+
Has been only tested with Linux Ubuntu 14.04/20.04/24.04 with php5.6 and 7.4..
19+
20+
# Install php needed packages:
1821

1922
Install it on Ubuntu Trusty :
2023
```
@@ -26,9 +29,13 @@ Install it on Ubuntu Focal :
2629
# apt-get install libphp-embed php-dev autoconf automake gcc make libpcre3-dev libbz2-dev libbz2-dev libxml2-dev libkrb5-dev libargon2-dev libargon2-1 libargon2-0 libsodium-dev
2730
```
2831

29-
Install it on Centos 7 :
32+
Install it on Ubuntu noble :
3033
```
31-
# yum install php-embedded php-cli php-devel
34+
# apt-get update && DEBIAN_FRONTEND=noninteractive TZ=Europe/Paris apt-get install -y software-properties-common
35+
# add-apt-repository ppa:ondrej/php
36+
# DEBIAN_FRONTEND=noninteractive TZ=Europe/Paris apt-get -y install libz-dev wget \
37+
libphp7.4-embed php7.4-dev autoconf automake gcc make \
38+
libpcre3-dev libbz2-dev libbz2-dev libxml2-dev libkrb5-dev libargon2-dev libargon2-1 libsodium-dev
3239
```
3340

3441
Or compile it (the important option are "--enable-embed") from [php source](https://github.com/php/php-src) :
@@ -49,7 +56,9 @@ For example to have **libphp[57].so** embeded library with snmp, ldap, curl and
4956

5057
Compile the **zbx_php** module with php :
5158

52-
For have get zabbix include necessary to build the module you must download [zabbix source](http://www.zabbix.com/download.php) :
59+
We need Zabbix source for building the module, because we need the zabbix include header to build the module.
60+
61+
You must download [zabbix source](http://www.zabbix.com/download.php) :
5362
```
5463
# wget --content-disposition "https://cdn.zabbix.com/zabbix/sources/stable/5.0/zabbix-5.0.8.tar.gz"
5564
# tar xzvf zabbix*.tar.gz
@@ -58,7 +67,7 @@ For have get zabbix include necessary to build the module you must download [zab
5867
# cd -
5968
```
6069

61-
Them compile the module.
70+
Them compile the PHP module.
6271
```
6372
# ./bootstrap.sh
6473
# ./configure --with-php=/path/to/php/script/php-config

0 commit comments

Comments
 (0)