Losing the last 5 hairs - receive blank web page

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

Moderators: Developers, Moderators

Post Reply
Double_AA
Posts: 5
Joined: Fri Mar 04, 2005 10:29 am
Location: America

Losing the last 5 hairs - receive blank web page

Post by Double_AA »

I think I almost have it

I have followed 4k.Darsh instructions to a T located at Http://forums.cacti.net/about3636.html - These were great instructions by the way thanks for your patient writing

What I am running Windows XP SP2
RRDtool ver 1.0.4.9
PHP 4.3.1.0
MYSQL 4.0.2.3
APACHE 2.0.5.3
Perl 5.8.6.811
CACTI - 0.8.6.c

When I browse to the deafult page http:\\xxx.xxx.xxx.xxx\cacti I get nothing. I don't know much about Apache but I hated IIS. Where do I go from here Anyone? I can't take the frustration anymore!!!!!!
AA
Double_AA
Posts: 5
Joined: Fri Mar 04, 2005 10:29 am
Location: America

Here is my appache access log

Post by Double_AA »

192.168.1.12 - - [03/Mar/2005:14:33:27 -0500] "GET /cacti HTTP/1.1" 301 310
192.168.1.12 - - [03/Mar/2005:14:33:27 -0500] "GET /cacti/ HTTP/1.1" 200 -
192.168.1.120 - - [03/Mar/2005:15:59:24 -0500] "GET /cacti HTTP/1.1" 301 310
192.168.1.120 - - [03/Mar/2005:15:59:24 -0500] "GET /cacti/ HTTP/1.1" 200 -
192.168.1.120 - - [03/Mar/2005:15:59:30 -0500] "GET /cacti/ HTTP/1.1" 200 -
192.168.1.120 - - [03/Mar/2005:16:00:37 -0500] "GET /cacti HTTP/1.1" 301 310
192.168.1.120 - - [03/Mar/2005:16:00:37 -0500] "GET /cacti/ HTTP/1.1" 200 -
192.168.1.120 - - [03/Mar/2005:16:00:59 -0500] "GET /cacti/auth_login HTTP/1.1" 404 296
192.168.1.12 - - [03/Mar/2005:16:03:05 -0500] "GET /cacti HTTP/1.1" 301 322
192.168.1.12 - - [03/Mar/2005:16:03:05 -0500] "GET /cacti/ HTTP/1.1" 200 -
192.168.1.120 - - [03/Mar/2005:16:03:46 -0500] "GET /cacti HTTP/1.1" 301 322
192.168.1.120 - - [03/Mar/2005:16:03:46 -0500] "GET /cacti/ HTTP/1.1" 200 -
192.168.1.120 - - [03/Mar/2005:16:03:56 -0500] "GET /cacti/ HTTP/1.1" 200 -
192.168.1.12 - - [03/Mar/2005:16:07:08 -0500] "GET /cacti HTTP/1.1" 301 322
192.168.1.12 - - [03/Mar/2005:16:07:08 -0500] "GET /cacti/ HTTP/1.1" 200 -
192.168.1.120 - - [03/Mar/2005:16:15:09 -0500] "GET /cacti/ HTTP/1.1" 200 -
192.168.1.120 - - [03/Mar/2005:16:15:13 -0500] "GET /cacti/ HTTP/1.1" 200 -
192.168.1.120 - - [03/Mar/2005:16:15:14 -0500] "GET /cacti/ HTTP/1.1" 200 -
192.168.1.120 - - [03/Mar/2005:16:15:14 -0500] "GET /cacti/ HTTP/1.1" 200 -
192.168.1.120 - - [03/Mar/2005:16:15:14 -0500] "GET /cacti/ HTTP/1.1" 200 -
192.168.1.120 - - [03/Mar/2005:16:15:15 -0500] "GET /cacti/ HTTP/1.1" 200 -
192.168.1.120 - - [03/Mar/2005:16:15:25 -0500] "GET /cacti/ HTTP/1.1" 200 -
192.168.1.120 - - [03/Mar/2005:16:15:30 -0500] "GET /cacti HTTP/1.1" 301 322
192.168.1.120 - - [03/Mar/2005:16:15:30 -0500] "GET /cacti/ HTTP/1.1" 200 -
127.0.0.1 - - [03/Mar/2005:16:18:05 -0500] "GET /cacti/ HTTP/1.1" 200 -
192.168.1.120 - - [03/Mar/2005:16:28:58 -0500] "GET / HTTP/1.1" 200 1494
192.168.1.120 - - [03/Mar/2005:16:28:58 -0500] "GET /apache_pb.gif HTTP/1.1" 200 2326
192.168.1.120 - - [03/Mar/2005:16:30:11 -0500] "GET / HTTP/1.1" 200 1494
192.168.1.120 - - [03/Mar/2005:16:31:00 -0500] "GET /htdocs HTTP/1.1" 404 292
192.168.1.120 - - [03/Mar/2005:16:31:08 -0500] "GET /cacti HTTP/1.1" 301 322
192.168.1.120 - - [03/Mar/2005:16:31:08 -0500] "GET /cacti/ HTTP/1.1" 200 -
192.168.1.120 - - [03/Mar/2005:16:40:25 -0500] "GET /cacti/ HTTP/1.1" 200 -
192.168.1.120 - - [03/Mar/2005:16:40:30 -0500] "GET /cacti HTTP/1.1" 301 322
192.168.1.120 - - [03/Mar/2005:16:40:30 -0500] "GET /cacti/ HTTP/1.1" 200 -
192.168.1.120 - - [03/Mar/2005:16:40:35 -0500] "GET / HTTP/1.1" 200 1494
192.168.1.120 - - [03/Mar/2005:16:40:43 -0500] "GET /cacti HTTP/1.1" 301 322
192.168.1.120 - - [03/Mar/2005:16:40:43 -0500] "GET /cacti/ HTTP/1.1" 200 -
192.168.1.12 - - [03/Mar/2005:16:44:35 -0500] "GET / HTTP/1.1" 200 1494
192.168.1.12 - - [03/Mar/2005:16:44:35 -0500] "GET /apache_pb.gif HTTP/1.1" 200 2326
192.168.1.12 - - [03/Mar/2005:16:44:41 -0500] "GET /cacti HTTP/1.1" 301 322
192.168.1.12 - - [03/Mar/2005:16:44:42 -0500] "GET /cacti/ HTTP/1.1" 200 -
192.168.1.12 - - [04/Mar/2005:10:04:02 -0500] "GET /cacti HTTP/1.1" 301 322
192.168.1.12 - - [04/Mar/2005:10:04:02 -0500] "GET /cacti/ HTTP/1.1" 200 -
192.168.1.12 - - [04/Mar/2005:10:17:43 -0500] "GET /cacti HTTP/1.1" 301 322
192.168.1.12 - - [04/Mar/2005:10:17:43 -0500] "GET /cacti/ HTTP/1.1" 200 -
192.168.1.12 - - [04/Mar/2005:10:20:14 -0500] "GET /cacti HTTP/1.1" 301 322
192.168.1.12 - - [04/Mar/2005:10:20:14 -0500] "GET /cacti/ HTTP/1.1" 200 -
192.168.1.12 - - [04/Mar/2005:10:20:18 -0500] "GET /cacti/ HTTP/1.1" 200 -
192.168.1.12 - - [04/Mar/2005:10:20:20 -0500] "GET /cacti/ HTTP/1.1" 200 -
192.168.1.12 - - [04/Mar/2005:10:20:20 -0500] "GET /cacti/ HTTP/1.1" 200 -
192.168.1.12 - - [04/Mar/2005:10:34:50 -0500] "GET /cacti HTTP/1.1" 301 322
192.168.1.12 - - [04/Mar/2005:10:34:50 -0500] "GET /cacti/ HTTP/1.1" 200 142
192.168.1.12 - - [04/Mar/2005:10:36:31 -0500] "GET /cacti/ HTTP/1.1" 200 142
192.168.1.12 - - [04/Mar/2005:10:39:00 -0500] "GET /cacti HTTP/1.1" 301 322
192.168.1.12 - - [04/Mar/2005:10:39:00 -0500] "GET /cacti/ HTTP/1.1" 200 142
192.168.1.12 - - [04/Mar/2005:10:39:09 -0500] "GET / HTTP/1.1" 200 1494
192.168.1.12 - - [04/Mar/2005:10:39:09 -0500] "GET /apache_pb.gif HTTP/1.1" 304 -
192.168.1.12 - - [04/Mar/2005:10:39:12 -0500] "GET /cacti HTTP/1.1" 301 322
192.168.1.12 - - [04/Mar/2005:10:39:12 -0500] "GET /cacti/ HTTP/1.1" 200 142
192.168.1.12 - - [04/Mar/2005:10:40:20 -0500] "GET /cacti HTTP/1.1" 301 322
192.168.1.12 - - [04/Mar/2005:10:40:20 -0500] "GET /cacti/ HTTP/1.1" 200 -
192.168.1.12 - - [04/Mar/2005:10:42:05 -0500] "GET / HTTP/1.1" 200 1494
192.168.1.12 - - [04/Mar/2005:10:42:05 -0500] "GET /apache_pb.gif HTTP/1.1" 304 -
192.168.1.12 - - [04/Mar/2005:10:42:22 -0500] "GET /cacti HTTP/1.1" 301 322
192.168.1.12 - - [04/Mar/2005:10:42:22 -0500] "GET /cacti/ HTTP/1.1" 200 -
192.168.1.12 - - [04/Mar/2005:10:51:13 -0500] "GET / HTTP/1.1" 200 1494
192.168.1.120 - - [04/Mar/2005:10:51:43 -0500] "GET /cacti HTTP/1.1" 301 322
192.168.1.120 - - [04/Mar/2005:10:51:43 -0500] "GET /cacti/ HTTP/1.1" 200 -
192.168.1.120 - - [04/Mar/2005:10:51:44 -0500] "GET /favicon.ico HTTP/1.1" 404 297
192.168.1.120 - - [04/Mar/2005:10:51:46 -0500] "GET /cacti/ HTTP/1.1" 200 -
192.168.1.120 - - [04/Mar/2005:10:51:48 -0500] "GET /cacti/ HTTP/1.1" 200 -
192.168.1.120 - - [04/Mar/2005:10:51:48 -0500] "GET /cacti/ HTTP/1.1" 200 -
192.168.1.120 - - [04/Mar/2005:10:51:48 -0500] "GET /cacti/ HTTP/1.1" 200 -
AA
Double_AA
Posts: 5
Joined: Fri Mar 04, 2005 10:29 am
Location: America

Receive this Fatal error in my error log on Apache

Post by Double_AA »

PHP Fatal error: Call to undefined function: cacti_log() in C:\\apache\\Apache2\\htdocs\\cacti\\lib\\database.php on line 51

I looked in the forms and it explained how to fix this but I don't quite understand. Could someone please tell me how
AA
Double_AA
Posts: 5
Joined: Fri Mar 04, 2005 10:29 am
Location: America

PLEASE HELP !!! Fatal error: Call to undefined function:

Post by Double_AA »

Here is the post with the resolution but I'm not sure what is required to change at the end?

http://forums.cacti.net/post-26023.html


I receive this error

Fatal error: Call to undefined function: cacti_log() in /var/www/html/cacti/lib/database.php on line 51
AA
pbulteel
Cacti User
Posts: 150
Joined: Fri Sep 05, 2003 9:20 am
Location: London
Contact:

Post by pbulteel »

From reading the post with the solution it looks like this...

Find the file config.php and move the line

include_once($config["library_path"] . "/functions.php");

before the line

include($config["library_path"] . "/database.php");

And then make sure that your DB infor is correct in the config.php file.

The code in config.php currently looks like this:

Code: Select all

include($config["library_path"] . "/adodb/adodb.inc.php");
include($config["library_path"] . "/database.php");
db_connect_real($database_hostname, $database_username, $database_password, $database_default, $database_type);

include_once($config["library_path"] . "/functions.php");
and from the instructions in that post you sent - it should look like this:

Code: Select all

include($config["library_path"] . "/adodb/adodb.inc.php");
include_once($config["library_path"] . "/functions.php");
include($config["library_path"] . "/database.php");
db_connect_real($database_hostname, $database_username, $database_password, $database_default, $database_type);
uname -a
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests