I'm trying to install Cacti: Although I've found lots of differences between the instructions and my actual experience, I've gotten to the point where the instructions say to open the web browser... I get this reply. Can anyone suggest what's gone wrong?
Fatal error: Call to undefined function mysql_connect() in C:\cacti\lib\adodb\drivers\adodb-mysql.inc.php on line 338
Thanks
JD
Installation Errors
Moderators: Developers, Moderators
Try to check on the php.ini if you have the
extension_dir = YOURPHPPATH\ext
extension=php_mysql.dll
extension=php_snmp.dll
extension=php_sockets.dll
Just to be sure you are correcting the right php.ini file create a php file on your cacti directory with only this inside:
<?php
echo phpinfo();
?>
and view it with your browser. Pay attention to the line who says:
extension_dir d:/cacti/php/ext d:/cacti/php/ext
(substitute the path with your ext path ).
In case it is not what you expected than try to change the PHP.INI that you can find in the c:\WINDOWS.
Regards
S
extension_dir = YOURPHPPATH\ext
extension=php_mysql.dll
extension=php_snmp.dll
extension=php_sockets.dll
Just to be sure you are correcting the right php.ini file create a php file on your cacti directory with only this inside:
<?php
echo phpinfo();
?>
and view it with your browser. Pay attention to the line who says:
extension_dir d:/cacti/php/ext d:/cacti/php/ext
(substitute the path with your ext path ).
In case it is not what you expected than try to change the PHP.INI that you can find in the c:\WINDOWS.
Regards
S
Also, don't forget to put your mysql info in ./include/config.php.
Might want to read this thread too.
Might want to read this thread too.
| 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 |
i had the same problem
hi there. you're right, the instructions are a bit off. i had the same exact error you are getting. i'm still having some problems but i got past the one you are currently experiencing. it turned out to be a permissions problem. check you mysql and make sure you granted the correct permissions.
Who is online
Users browsing this forum: No registered users and 0 guests