Author |
|
Wolverine
Joined: 27 May 2007 Posts: 8
|
Posted: Tue 03 Jun '08 19:21 Post subject: SNMP Modul for Apache 2 on PHP 5.2.2 |
|
|
How can I get the SNMP modul to work? |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
|
Back to top |
|
Wolverine
Joined: 27 May 2007 Posts: 8
|
Posted: Tue 03 Jun '08 19:50 Post subject: |
|
|
Thx for you fast replay
Sorry I'm to noob for this. Is there no package for Windows allready that I can try? |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
|
Back to top |
|
Wolverine
Joined: 27 May 2007 Posts: 8
|
Posted: Wed 04 Jun '08 18:26 Post subject: |
|
|
Sorry I don't get it. I know how to enable the ext on the php.ini, but first I need the dll for Winx32. And I don't know if this is all what I need to enable snmp on php.???? |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Wed 04 Jun '08 23:16 Post subject: |
|
|
that dll is in you extension folder e.g. C:\php\ext
So you can load it if you configured e.g. extension_dir = C:/php/ext/
Than you can use snmp functions which are defined. You can find it in the docs. |
|
Back to top |
|
Wolverine
Joined: 27 May 2007 Posts: 8
|
Posted: Wed 04 Jun '08 23:42 Post subject: |
|
|
James Blond wrote: | that dll is in you extension folder e.g. C:\php\ext
So you can load it if you configured e.g. extension_dir = C:/php/ext/
Than you can use snmp functions which are defined. You can find it in the docs. |
No that's my problem. The path is set to "extension_dir ="C:\Program Files (x86)\PHP\ext"" and there is the php_snmp.dll, and extension=php_snmp.dll is without ";". But it dosen't work. Do you have the dll for Win too? |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Thu 05 Jun '08 11:08 Post subject: |
|
|
Wolverine wrote: | Do you have the dll for Win too? |
?? What? cause you wrote
Wolverine wrote: | there is the php_snmp.dll |
Here the test script from php.net works.
php script wrote: | Warning: snmprealwalk() [function.snmprealwalk]: No response from 192.168.50.1 in c:\www\snmp.php on line 4 |
Does the php infoscript show snmp ?
Code: |
<?php
phpinfo();
?>
|
Your path C:\Program Files (x86) shows me that you run a 64 bit system. Vista? XP? I'm not used to that. |
|
Back to top |
|
Wolverine
Joined: 27 May 2007 Posts: 8
|
Posted: Thu 05 Jun '08 20:04 Post subject: |
|
|
I got it... I take the dll from xampp and snmp ist working now.
And I use Win2003 RC2 x64 with 32-Bit Php and Apache |
|
Back to top |
|