downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

Laufzeit-Konfiguration> <Anforderungen
[edit] Last updated: Fri, 17 May 2013

view this page in

Installation

Wichtig: Um das UCD-SNMP-Paket nutzen zu können, müssen Sie vor dem Kompilieren NO_ZEROLENGTH_COMMUNITY als 1 definieren. Nachdem UCD SNMP konfiguriert ist, bearbeiten Sie bitte die Datei config.h oder acconfig.h und suchen Sie nach NO_ZEROLENGTH_COMMUNITY. Kommentieren Sie die #define-Zeile aus. Das Ergebnis sollte wie folgt aussehen:

#define NO_ZEROLENGTH_COMMUNITY 1
Kompilieren Sie jetzt PHP mit --with-snmp[=DIR] .

Wenn seltsame "segmentation faults" in Verbindung mit SNMP-Kommandos auftauchen, wurden die obigen Anweisungen nicht korrekt befolgt. Wenn Sie UCD SNMP nicht neu kompilieren wollen, können Sie PHP mit dem --enable-ucd-snmp-hack -Switch kompilieren, dies stellt einen Workaround dar.

PHP 5.3.0, 5.3.1 und 5.3.2 haben keine SNMP Unterstützung. In PHP 5.3.3 wurde SNMP Unterstützung wieder eingeführt.

Die Windowsdistribution enthält eine Unterstützung für SNMP im Verzeichnis mibs. Dieses Verzeichnis sollte nach DRIVE:\usr\mibs verschoben werden, ersetzen Sie dabei DRIVE mit dem Laufwerksbuchstaben, unter dem Sie PHP installiert haben, z.B c:\usr\mibs.



Laufzeit-Konfiguration> <Anforderungen
[edit] Last updated: Fri, 17 May 2013
 
add a note add a note User Contributed Notes Installation - [3 notes]
up
-1
Darren Wolfe
11 months ago
If PHP complains that some mibs are missing and they are not included in your windows php package, they can be obtained from the source package of net-snmp itself.
up
-1
flintjt att hotmail dot com
2 years ago
For win32 (tested on win XP and 2k3 server 32bit):
Tested with versions 5.3.3 VC9, and 5.3.6 VC9.
The php_snmp.dll, requires that you set the environment variable MIBDIRS pointed to your MIBs folder.
up
0
Coffee-fan
3 months ago
In order to build and install php in Ubuntu 12.10, beyond the normal "build-essential" package, I had to install the following packages: apache2-prefork-dev  libxml2-dev libsnmp libsnmp-dev libtool

Command line should be like this:

sudo apt-get install apache2-prefork-dev libxml2-dev libsnmp libsnmp-dev libtool

 
show source | credits | stats | sitemap | contact | advertising | mirror sites