Solved

snmp problem

Posted on 2002-06-12
7
347 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
Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

 
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

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

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

Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
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…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

831 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