php error on rhel4

I came across installing php in a RHEL 4 box.

Installed the following packages.

  • php-4.3.9-3.8.i386.rpm
  • php-devel-4.3.9-3.8.i386.rpm
  • php-domxml-4.3.9-3.8.i386.rpm
  • php-gd-4.3.9-3.8.i386.rpm
  • php-imap-4.3.9-3.8.i386.rpm
  • php-ldap-4.3.9-3.8.i386.rpm
  • php-mbstring-4.3.9-3.8.i386.rpm
  • php-mysql-4.3.9-3.8.i386.rpm
  • php-ncurses-4.3.9-3.8.i386.rpm
  • php-odbc-4.3.9-3.8.i386.rpm
  • php-pear-4.3.9-3.8.i386.rpm
  • php-pgsql-4.3.9-3.8.i386.rpm
  • php-snmp-4.3.9-3.8.i386.rpm
  • php-xmlrpc-4.3.9-3.8.i386.rpm

Done.

But, after installing them using “rpm -ivh *.rpm”, I executed php from shell.

Got the following error.

/root]php
No log handling enabled – turning on stderr logging
Cannot find module (IP-MIB): At line 0 in (none)
Cannot find module (IF-MIB): At line 0 in (none)
Cannot find module (TCP-MIB): At line 0 in (none)
Cannot find module (UDP-MIB): At line 0 in (none)
Cannot find module (HOST-RESOURCES-MIB): At line 0 in (none)
Cannot find module (SNMPv2-MIB): At line 0 in (none)
Cannot find module (SNMPv2-SMI): At line 0 in (none)
Cannot find module (NOTIFICATION-LOG-MIB): At line 0 in (none)
Cannot find module (UCD-SNMP-MIB): At line 0 in (none)
Cannot find module (UCD-DEMO-MIB): At line 0 in (none)
Cannot find module (SNMP-TARGET-MIB): At line 0 in (none)
Cannot find module (NET-SNMP-AGENT-MIB): At line 0 in (none)
Cannot find module (HOST-RESOURCES-TYPES): At line 0 in (none)
Cannot find module (LM-SENSORS-MIB): At line 0 in (none)
Cannot find module (IPV6-ICMP-MIB): At line 0 in (none)
Cannot find module (IPV6-MIB): At line 0 in (none)
Cannot find module (IPV6-TCP-MIB): At line 0 in (none)
Cannot find module (IPV6-UDP-MIB): At line 0 in (none)
Cannot find module (SNMP-VIEW-BASED-ACM-MIB): At line 0 in (none)
Cannot find module (SNMP-COMMUNITY-MIB): At line 0 in (none)
Cannot find module (UCD-DLMOD-MIB): At line 0 in (none)
Cannot find module (SNMP-FRAMEWORK-MIB): At line 0 in (none)
Cannot find module (SNMP-MPD-MIB): At line 0 in (none)
Cannot find module (SNMP-USER-BASED-SM-MIB): At line 0 in (none)
Cannot find module (SNMP-NOTIFICATION-MIB): At line 0 in (none)
Cannot find module (SNMPv2-TM): At line 0 in (none)

😦

Googled for this and found the following link.
http://stackoverflow.com/questions/1012238/how-to-turn-off-these-php-warnings

The solution is to install the “net-snmp” packages.

Installed the following packages.

  • net-snmp-5.1.2-11.EL4.6.i386.rpm
  • net-snmp-utils-5.1.2-11.EL4.6.i386.rpm

🙂

Now, php is working fine in terminal without any error.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s