Link to home
Start Free TrialLog in
Avatar of Seever
Seever

asked on

snmp problem

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
ASKER CERTIFIED SOLUTION
Avatar of us111
us111
Flag of Luxembourg image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
try to do it
tell us if you are able
Avatar of Seever
Seever

ASKER

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
Avatar of Seever

ASKER

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
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()?
Avatar of Seever

ASKER

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.
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!