Error opening up cacti for the first time

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

Moderators: Developers, Moderators

Post Reply
zeb
Posts: 1
Joined: Tue Nov 22, 2005 2:53 pm

Error opening up cacti for the first time

Post by zeb »

Here is the error when i try to open up http:/localhost/cacti for the first time:

--------------------------------------------------------------------------------
Notice: Undefined variable: database_type in C:\Inetpub\wwwroot\cacti\include\config.php on line 151

ADONewConnection: Unable to load database driver ''


Fatal error: Call to a member function Connect() on a non-object in C:\Inetpub\wwwroot\cacti\lib\database.php on line 43
---------------------------------------------------------------------------------

This is the command on line 150 & 151 in the config.php:
/* include base modules */
include($config["library_path"] . "/adodb/adodb.inc.php");
include($config["library_path"] . "/database.php");

This the line 43 in the database.php file :
$cnn_id = NewADOConnection($db_type);


Any suggestions would be greatly appreciatted.

Thank you
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

1) What version of everything are you using? Make sure to install the patches for cacti
2) read the guide in my signature
3) Did you make sure to enable php_mysql.dll in php.ini ?
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests