Solved

snmp problem

Posted on 2002-06-12
7
344 Views
Last Modified: 2008-03-10
I want to write some scripts that uses snmp.
When running the scripts i got the error:
"Call to undefined function: snmpget()"

I have read that i have to recompile php with --enable-ucd-snmp-hack.

How to do that???
I have installed php 4.0.6 via a rpm file

Can someone explain step by step how to (re)compile.
I never did this before.

Thanks
0
Comment
Question by:Seever
  • 4
  • 3
7 Comments
 
LVL 8

Accepted Solution

by:
us111 earned 50 total points
ID: 7072877
- download the latest php version source code
- ./configure .............
- make
- make install

http://www.php.net/manual/en/install.unix.php
0
 
LVL 8

Expert Comment

by:us111
ID: 7072878
try to do it
tell us if you are able
0
 
LVL 1

Author Comment

by:Seever
ID: 7072934
I have done this, and restarted httpd. When running my script i have the same problem. also when running phpinfo() i see that still the old version 4.0.6 is running.
I installed 4.2.1
0
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 1

Author Comment

by:Seever
ID: 7072994
I have done this, and restarted httpd. When running my script i have the same problem. also when running phpinfo() i see that still the old version 4.0.6 is running.
I installed 4.2.1
0
 
LVL 8

Expert Comment

by:us111
ID: 7073323
You have to modify the httpd.conf by replacing the old PHP module by the new one.

Could you paste here the ./configure line you used (you can see it with phpdinfo()?
0
 
LVL 1

Author Comment

by:Seever
ID: 7074913
The only module i found is libphp4.so in /usr/lib/apache
In httpd.conf i did:
LoadModule php4_module    /usr/lib/apache/libphp4.so
Still the same problem, when running
phpinfo() i see that still the old version 4.0.6 is running.
0
 
LVL 8

Expert Comment

by:us111
ID: 7075083
look in the php src folder, you may have a .so file. you have to replace /usr/lib/apache/libphp4.so by the new name.

and then, don't forget to restart apache!
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
Both Easy and Powerful How easy is PHP? http://lmgtfy.com?q=how+easy+is+php (http://lmgtfy.com?q=how+easy+is+php)  Very easy.  It has been described as "a programming language even my grandmother can use." How powerful is PHP?  http://en.wikiped…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to dynamically set the form action using jQuery.

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now