logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Third-party Modules View previous topic :: View next topic
Reply to topic   Topic: SNMP Modul for Apache 2 on PHP 5.2.2
Author
Wolverine



Joined: 27 May 2007
Posts: 8

PostPosted: Tue 03 Jun '08 19:21    Post subject: SNMP Modul for Apache 2 on PHP 5.2.2 Reply with quote

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

PostPosted: Tue 03 Jun '08 19:37    Post subject: Reply with quote

I know mod_snmp only for apache 1.3 / 2.0 for Linux.
Maybe you can use snmp from php for your needs. See http://de2.php.net/manual/en/ref.snmp.php
Back to top
Wolverine



Joined: 27 May 2007
Posts: 8

PostPosted: Tue 03 Jun '08 19:50    Post subject: Reply with quote

James Blond wrote:
I know mod_snmp only for apache 1.3 / 2.0 for Linux.
Maybe you can use snmp from php for your needs. See http://de2.php.net/manual/en/ref.snmp.php


Thx for you fast replay Cool

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

PostPosted: Wed 04 Jun '08 10:53    Post subject: Reply with quote

No, there isn't only snmp from php which is in the ext(ension) folder.

in php.ini

extension=php_snmp.dll

http://de2.php.net/manual/en/ref.snmp.php
Back to top
Wolverine



Joined: 27 May 2007
Posts: 8

PostPosted: Wed 04 Jun '08 18:26    Post subject: Reply with quote

James Blond wrote:
No, there isn't only snmp from php which is in the ext(ension) folder.

in php.ini

extension=php_snmp.dll

http://de2.php.net/manual/en/ref.snmp.php


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

PostPosted: Wed 04 Jun '08 23:16    Post subject: Reply with quote

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

PostPosted: Wed 04 Jun '08 23:42    Post subject: Reply with quote

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

PostPosted: Thu 05 Jun '08 11:08    Post subject: Reply with quote

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

PostPosted: Thu 05 Jun '08 20:04    Post subject: Reply with quote

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 Very Happy
Back to top


Reply to topic   Topic: SNMP Modul for Apache 2 on PHP 5.2.2 View previous topic :: View next topic
Post new topic   Forum Index -> Third-party Modules