Cannot load default page in IIS

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

Moderators: Developers, Moderators

xloveusa
Posts: 6
Joined: Sun Oct 15, 2006 9:16 am

Cannot load default page in IIS

Post by xloveusa »

I am using windows with IIS. I have installed everything according to the directions. My web root is c:\cacti and I am connecting to http://localhost/cacti/index.php.

However, when I go to the website to login all I get is a blank page. It appears to be connecting but then nothing comes up.
Last edited by xloveusa on Sun Oct 15, 2006 10:12 am, edited 2 times in total.
xloveusa
Posts: 6
Joined: Sun Oct 15, 2006 9:16 am

updated

Post by xloveusa »

I followed BSOD response and added the php file info.php with code. When I try to open it the same result in that nothing appears on the screen.

<?php

// Show all information, defaults to INFO_ALL
phpinfo();

// Show just the module information.
// phpinfo(8) yields identical results.
phpinfo(INFO_MODULES);

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

Post by BSOD2600 »

Please read the sticky http://forums.cacti.net/viewtopic.php?t=11747

From the command prompt type: php -m and paste the output. Also make sure you only have one php.ini on your system.

Sounds like you forgot to add the .php extension stuff to IIS.
xloveusa
Posts: 6
Joined: Sun Oct 15, 2006 9:16 am

Post by xloveusa »

I am using all of the most recent versions of the software. Only installed required components. Windows 2003 OS. Here is the output you requested. I tried to install php with the exe file but it didn't work. I tried to do it manually and followed all of your instructions. Thanks.

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
date
dom
ftp
hash
iconv
libxml
msql
odbc
pcre
Reflection
session
SimpleXML
snmp
sockets
SPL
standard
tokenizer
wddx
xml
xmlreader
xmlwriter
zlib

[Zend Modules]
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

1) to fix those mib errors you need to follow the installation guide and add the MIBDIRS system variable.

2) please re-read my installation guide, since you've missed steps. look over the section in IIS especially.
xloveusa
Posts: 6
Joined: Sun Oct 15, 2006 9:16 am

Post by xloveusa »

I had those under the wrong section. Now I have the following under system variables:
1. MIBDIRS- c:\php\extras\mibs
2. PHPPRC- c:\php

Still not working. php -m gives same result and I rebooted. Trust me I have gone over your instructions with a fine tooth comb. I can't imagine what I am missing with IIS.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Fire up FileMon and see whats getting denied.
xloveusa
Posts: 6
Joined: Sun Oct 15, 2006 9:16 am

Post by xloveusa »

OK I fixed that part. wrong php.ini settings. Now I get this problem when I open the browser. Thanks.

Error

You have created a new database, but have not yet imported the 'cacti.sql' file. At the command line, execute the following to continue:

mysql -u cactiuser -p cacti < cacti.sql

This error may also be generated if the cacti database user does not have correct permissions on the cacti database. Please ensure that the cacti database user has the ability to SELECT, INSERT, DELETE, UPDATE, CREATE, ALTER, DROP, INDEX on the cacti database.

[color=red][b]SO I GO AND DO THAT AND THIS IS THE RESULT[/b][/color]

C:\MySql\bin>mysql -u root -p cacti < cacti.sql
Enter password: ********
ERROR 1050 (42S01) at line 5: Table 'cdef' already exists
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

hmm, sounds like you never did properly import the cacti database.

Two options:
1) delete everything related to cacti and use my windows installer: http://forums.cacti.net/viewtopic.php?t=14946

2) delete the existing cacti mysql database. read my installation guide in my signature and try again.
xloveusa
Posts: 6
Joined: Sun Oct 15, 2006 9:16 am

Post by xloveusa »

That worked! But now I don't have any graphs. I did debugging with no errors but the rrd tool logging shows this. Thanks

RRDTool Command:

c:/rrdtool/rrdtool.exe graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="localhost - Used Space - C: Label: Seri" \
--rigid \
--base=1024 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="bytes" \
--slope-mode \
DEF:a="c\:/Inetpub/wwwroot/cacti/rra/localhost_hdd_total_8.rrd":hdd_total:AVERAGE \
DEF:b="c\:/Inetpub/wwwroot/cacti/rra/localhost_hdd_total_8.rrd":hdd_used:AVERAGE \
AREA:a#002A97:"Total" \
GPRINT:a:LAST:"Current\:%8.2lf %s" \
GPRINT:a:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:a:MAX:"Maximum\:%8.2lf %s\n" \
AREA:b#F51D30:"Used" \
GPRINT:b:LAST:" Current\:%8.2lf %s" \
GPRINT:b:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:b:MAX:"Maximum\:%8.2lf %s\n"
RRDTool Says:

ERROR: opening 'c:/Inetpub/wwwroot/cacti/rra/localhost_hdd_total_8.rrd': No such file or directory
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

1) Did you wait a few polling cycles for data?
2) Do any graphs work?
3) read http://forums.cacti.net/viewtopic.php?t=15136
nuinco
Posts: 26
Joined: Mon Sep 26, 2005 3:35 pm

Post by nuinco »

I experienced the same issue. Installed everything but got a blank page when trying to bring up the site for the first time.

I noticed your auto install of everything was using PHP 5.1.6 and I was using 5.2.0, so I grabbed a copy of 5.1.2 that I had on another machine. This fixed it. Evidently there is a problem with using PHP 5.2.0.
Windows 2003, IIS 6, Cacti 0.8.7e, MySQL5.1, PHP 5.2.11
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

nuinco wrote:I noticed your auto install of everything was using PHP 5.1.6 and I was using 5.2.0, so I grabbed a copy of 5.1.2 that I had on another machine. This fixed it. Evidently there is a problem with using PHP 5.2.0.
Yes, there is a bug in cacti with php 5.2.0 that another user found. The Cacti devs need to create a patch.
ssams
Cacti User
Posts: 65
Joined: Tue Feb 01, 2005 5:54 pm
Location: Texas
Contact:

php bug

Post by ssams »

would it have anything to do with blank screen on index page? i am trying 5.1.5 now.

just curious. your tag says your runnin 5.2 bsod. what gives?
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Cacti 0.8.6j fixed the php 5.2.0 problem, along with many others. I suggest you upgrade.
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests