mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-27 14:28:56 +00:00

Dear online editor user, I lost your name when making some small changes to your patch. I did copy your details from the patch into my clipboard, but overwrote it when, being too lazy to type a whole word, I copied some other text in the editor. Your name may be forgotten, but your contribution remains. Thank you, online editor user! git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@334284 c90b9560-bf6c-de11-be94-00142212c4b1
58 lines
2.1 KiB
XML
58 lines
2.1 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- $Revision$ -->
|
|
<section xml:id="snmp.installation" xmlns="http://docbook.org/ns/docbook">
|
|
&reftitle.install;
|
|
<para>
|
|
PHP 5.3.0, 5.3.1 and 5.3.2 do not have SNMP support. SNMP support has been restored in PHP 5.3.3.
|
|
</para>
|
|
<para>
|
|
The Windows distribution of Net-SNMP contains support files for SNMP in the
|
|
<filename class="directory">mibs</filename> directory. This directory
|
|
should added to Windows' environment variables, as MIBDIRS, with the
|
|
value being the full path to the <filename class="directory">mibs</filename> directory:
|
|
e.g. <filename class="directory">c:\usr\mibs</filename>.
|
|
</para>
|
|
|
|
<para>
|
|
Important notes for PHP prior to 5.4.0: In order to use the UCD <acronym>SNMP</acronym> package, you need to define
|
|
<literal>NO_ZEROLENGTH_COMMUNITY</literal> to <literal>1</literal> before
|
|
compiling it. After configuring UCD <acronym>SNMP</acronym>, edit <filename>config.h</filename>
|
|
or <filename>acconfig.h</filename> and search for
|
|
<literal>NO_ZEROLENGTH_COMMUNITY</literal>. Uncomment the <literal>#define</literal> line. It
|
|
should look like this afterwards:
|
|
<programlisting role="c">
|
|
<![CDATA[
|
|
#define NO_ZEROLENGTH_COMMUNITY 1
|
|
]]>
|
|
</programlisting>
|
|
Now compile PHP <option role="configure">--with-snmp[=DIR]</option>.
|
|
</para>
|
|
<para>
|
|
If you see strange segmentation faults in combination with <acronym>SNMP</acronym> commands,
|
|
you did not follow the above instructions. If you do not want to recompile
|
|
UCD <acronym>SNMP</acronym>, you can compile PHP with the
|
|
<option role="configure">--enable-ucd-snmp-hack</option> switch which
|
|
will work around the misfeature.
|
|
</para>
|
|
</section>
|
|
|
|
<!-- Keep this comment at the end of the file
|
|
Local variables:
|
|
mode: sgml
|
|
sgml-omittag:t
|
|
sgml-shorttag:t
|
|
sgml-minimize-attributes:nil
|
|
sgml-always-quote-attributes:t
|
|
sgml-indent-step:1
|
|
sgml-indent-data:t
|
|
indent-tabs-mode:nil
|
|
sgml-parent-document:nil
|
|
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
|
|
sgml-exposed-tags:nil
|
|
sgml-local-catalogs:nil
|
|
sgml-local-ecat-files:nil
|
|
End:
|
|
vim600: syn=xml fen fdm=syntax fdl=2 si
|
|
vim: et tw=78 syn=sgml
|
|
vi: ts=1 sw=1
|
|
-->
|