Error when running command in RUN BOX
Moderators: Developers, Moderators
Error when running command in RUN BOX
Hi all,
I tried everything but when I run C:\php\php.exe C:\Apache2\htdocs\cacti\poller.php in RUN box, i get below error msg.
Fatal error: Call to undefined function mysql_connect() in C:\Apache2\htdocs\cac
ti\lib\adodb\drivers\adodb-mysql.inc.php on line 338
Please suggest what should I do.
Thanks
DHD
I tried everything but when I run C:\php\php.exe C:\Apache2\htdocs\cacti\poller.php in RUN box, i get below error msg.
Fatal error: Call to undefined function mysql_connect() in C:\Apache2\htdocs\cac
ti\lib\adodb\drivers\adodb-mysql.inc.php on line 338
Please suggest what should I do.
Thanks
DHD
1) at the command prompt, type: php -m and paste the output. You're likely missing mysql support.
2) what versions of stuff are you running? You possibly need to apply the mysql old password trick
2) what versions of stuff are you running? You possibly need to apply the mysql old password trick
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
Hi BSOD2600,
I am using php-5.0.5-Win32
Apache apache_2.0.55-win32-x86-no_ssl
cacti-0.8.6g
net-snmp-5.2.2.pre1-1.win32
cacti-cactid-0.8.6f-1
mysql-5.0.15-win32
Please check the requested output below and assist me.
C:\>php -m
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 (SNMPv2-MIB): At line 0 in (none)
Cannot find module (SNMPv2-SMI): 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 (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)
[PHP Modules]
bcmath
calendar
com_dotnet
ctype
dom
ftp
iconv
libxml
mysql
odbc
pcre
session
SimpleXML
snmp
sockets
SPL
SQLite
standard
tokenizer
wddx
xml
zlib
[Zend Modules]
Thanks
I am using php-5.0.5-Win32
Apache apache_2.0.55-win32-x86-no_ssl
cacti-0.8.6g
net-snmp-5.2.2.pre1-1.win32
cacti-cactid-0.8.6f-1
mysql-5.0.15-win32
Please check the requested output below and assist me.
C:\>php -m
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 (SNMPv2-MIB): At line 0 in (none)
Cannot find module (SNMPv2-SMI): 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 (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)
[PHP Modules]
bcmath
calendar
com_dotnet
ctype
dom
ftp
iconv
libxml
mysql
odbc
pcre
session
SimpleXML
snmp
sockets
SPL
SQLite
standard
tokenizer
wddx
xml
zlib
[Zend Modules]
Thanks
1) you didnt point your mibsdir variable to the true location where the mib files live for php.
2) MySQL 5.x is not supported with cacti yet. Try 4.1
3) Install the patches for cacti
2) MySQL 5.x is not supported with cacti yet. Try 4.1
3) Install the patches for cacti
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
do u have msn id? if u r online in msn pls add me my id is dhd81@hotmail.com so we can communicate
thanks
thanks
I have shifted that mib location from c:\php\extras\mibs to c:\php\mibs and also edited the location of mibdirs. I pointer it to c:\php\mibs
now when i run php -m i get below output
C:\>php -m
[PHP Modules]
bcmath
calendar
com_dotnet
ctype
dom
ftp
iconv
libxml
mysql
odbc
pcre
session
SimpleXML
snmp
sockets
SPL
SQLite
standard
tokenizer
wddx
xml
zlib
[Zend Modules]
Please assist.
Thanks
dhd
now when i run php -m i get below output
C:\>php -m
[PHP Modules]
bcmath
calendar
com_dotnet
ctype
dom
ftp
iconv
libxml
mysql
odbc
pcre
session
SimpleXML
snmp
sockets
SPL
SQLite
standard
tokenizer
wddx
xml
zlib
[Zend Modules]
Please assist.
Thanks
dhd
Thats fine. Now what happens when you run: php <cactipath>poller.php in your cacti directory ?
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
Who is online
Users browsing this forum: No registered users and 0 guests