<?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 -->