Sophie

Sophie

distrib > Mageia > 4 > x86_64 > by-pkgid > f800694edefe91adea2624f711a41a2d > files > 11363

php-manual-en-5.5.7-1.mga4.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Installation</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="snmp.requirements.html">Requirements</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="snmp.configuration.html">Runtime Configuration</a></div>
 <div class="up"><a href="snmp.setup.html">Installing/Configuring</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="snmp.installation" class="section">
 <h2 class="title">Installation</h2>
 <p class="para">
  PHP 5.3.0, 5.3.1 and 5.3.2 do not have SNMP support. SNMP support has restored in PHP 5.3.3.
 </p>
 <p class="para">
  The Windows distribution of Net-SNMP contains support files for SNMP in the
  <var class="filename">mibs</var> directory. This directory
  should be moved to <var class="filename">DRIVE:\usr\mibs</var>,
  where DRIVE must be replaced with the driveletter where PHP is installed on,
  e.g.<var class="filename">c:\usr\mibs</var>. Alternatively you
  may set MIBDIRS environment variable pointed to your MIBs folder. 
 </p>

 <p class="para">
  Important notes for PHP prior to 5.4.0: In order to use the UCD <acronym title="Simple Network Management Protocol">SNMP</acronym> package, you need to define
  <em>NO_ZEROLENGTH_COMMUNITY</em> to <em>1</em> before 
  compiling it. After configuring UCD <acronym title="Simple Network Management Protocol">SNMP</acronym>, edit <var class="filename">config.h</var> 
  or <var class="filename">acconfig.h</var> and search for
  <em>NO_ZEROLENGTH_COMMUNITY</em>. Uncomment the <em>#define</em> line. It 
  should look like this afterwards:
  <div class="example-contents">
<div class="ccode"><pre class="ccode">#define NO_ZEROLENGTH_COMMUNITY 1</pre>
</div>
  </div>

  Now compile PHP <strong class="option configure">--with-snmp[=DIR]</strong>
.
 </p>
 <p class="para">
  If you see strange segmentation faults in combination with <acronym title="Simple Network Management Protocol">SNMP</acronym> commands,
  you did not follow the above instructions. If you do not want to recompile
  UCD <acronym title="Simple Network Management Protocol">SNMP</acronym>, you can compile PHP with the 
  <strong class="option configure">--enable-ucd-snmp-hack</strong>
 switch which
  will work around the misfeature.
 </p>
</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="snmp.requirements.html">Requirements</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="snmp.configuration.html">Runtime Configuration</a></div>
 <div class="up"><a href="snmp.setup.html">Installing/Configuring</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>