Solved

snmp problem

Posted on 2002-06-12
7
350 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Part of the Global Positioning System A geocode (https://developers.google.com/maps/documentation/geocoding/) is the major subset of a GPS coordinate (http://en.wikipedia.org/wiki/Global_Positioning_System), the other parts being the altitude and t…
Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

630 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