Installation Errors

Post support questions that relate to the Windows 2003/2000/XP operating systems.

Moderators: Developers, Moderators

Post Reply
jd5646
Posts: 6
Joined: Wed Sep 14, 2005 11:41 am

Installation Errors

Post by jd5646 »

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
Stefanoj
Posts: 5
Joined: Wed Sep 14, 2005 9:13 am

Post by Stefanoj »

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
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Also, don't forget to put your mysql info in ./include/config.php.

Might want to read this thread too.
ntwillie1
Posts: 4
Joined: Thu Sep 22, 2005 4:53 pm
Location: nyc
Contact:

i had the same problem

Post by ntwillie1 »

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.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests