PDA

View Full Version : Adding 'snmp' support for PHP. How?



jayzee
09-17-2008, 01:42 AM
Hello,

How do we go about add 'snmp' support for php?

Please give a brief instruction on how to do it.

nobaloney
09-19-2008, 01:11 PM
Is this (http://www.directadmin.com/forum/showthread.php?t=19954) brief enough for you :) ?

Jeff

jayzee
09-19-2008, 07:58 PM
Hi Jeff,

May i know which directory do we run the compilation ?

I think that is too brief.. :)

Can give alittle more details with command and steps ?

Thanks alot.

nobaloney
09-20-2008, 11:38 AM
Generally you'll find the files in either customapache or custombuild, depending on which your server uses.

Instructions for using customapache and custombuild should be available on these forums.

Jeff

nmb
09-22-2008, 10:18 AM
Just change configuration below :

CGI Mode - PHP5 : /usr/local/directadmin/custombuild/configure/suphp/configure.php5
CGI Mode - PHP4 : /usr/local/directadmin/custombuild/configure/suphp/configure.php4
CLI Mode - PHP5: /usr/local/directadmin/custombuild/configure/ap2/configure.php5
CLI Mode - PHP4 : /usr/local/directadmin/custombuild/configure/ap2/configure.php4

Add "--with-snmp"

Then, compile with "./build php n" under /usr/local/directadmin/custombuild

You may need to have "net-snmp-devel" installed or compilation will fail.

Step 11 here is what I wrote up. English is not my primary language though. ->http://www.bxtra.net/articles/2008-09-18/Steps-how-install-Cacti-CentOS-52-DirectAdmin
________
Is Diazepam Dangerous (http://www.rehab-forum.com/valium-rehab/3501-does-diazepam-valium-considered-dangerous.html)

jayzee
09-28-2008, 10:30 PM
Hi nmb,

Thx alot.. will try and let you know if there is any problem.

jayzee
09-29-2008, 07:20 PM
i fix the snmp problem..
so far so good.