note 20934 added to ref.snmp
| From: | thug at wolf359 dot cjb dot net | Date: | Mon, 22 Apr 2002 16:06:20 +0000 |
| Subject: | note 20934 added to ref.snmp | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-29686@lists.php.net to get a copy of this message | ||
Just a quick note on PHP SNMP instalation on Windows machines (IIS 5.x / Win2k SP2 etc...)
I had installed PHP into C:\PHP.. (standard stuff eh?)
Whilst I had followed the instructions for the installation of SNMP (put php_snmp.dll in
extension_dir, uncomment entry in php.ini and all mib files located on the same drive where php was
installed (in this case c:\usr\mibs right?) I still ran into trouble like "Cannot find module
(IP-MIB): At line 0 in (none)..." appearing on the bottom of every php that page I was viewing
which existed on a drive other than C:\ drive...
It seams that the mibs dir (and content thereof) have to be located on every volume where a php file
will be executed from.
For example :-
If you have a php file as "C:\INETPUB\WWWROOT\snmp1.php" then the coresponding
"C:\USR\MIBS\*.*" has to be present (as mentioned in the install.txt).
Now here comes the catch...
If you have a "D:\INETPUB\PHPROOT\snmp1.php" file, then a copy of the mib files have to be
in "D:\USR\MIBS\*.*" as well (the same mib files that are on the C:\ drive and same basic
location <drive>:\USR\MIBS).
(Or in short : Copy the C:\USR dir (inc mibs dir) to *every* drive you intend to have .php files
accessed from. Done!)
Hope this helps other PHParians.
Keep up the *Great* work!!!
--
http://www.php.net/manual/en/ref.snmp.php
http://master.php.net/manage/user-notes.php?action=edit+20934
http://master.php.net/manage/user-notes.php?action=delete+20934
http://master.php.net/manage/user-notes.php?action=reject+20934