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
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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
I installed 4.2.1
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
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()?
Could you paste here the ./configure line you used (you can see it with phpdinfo()?
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.
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!
and then, don't forget to restart apache!
tell us if you are able