Cannot load default page in IIS
Moderators: Developers, Moderators
Cannot load default page in IIS
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.
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.
updated
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);
?>
<?php
// Show all information, defaults to INFO_ALL
phpinfo();
// Show just the module information.
// phpinfo(8) yields identical results.
phpinfo(INFO_MODULES);
?>
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.
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.
| 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 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]
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]
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.
2) please re-read my installation guide, since you've missed steps. look over the section in IIS especially.
| 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 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.
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.
Fire up FileMon and see whats getting denied.
| 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 |
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
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
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.
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.
| 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 |
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
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
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
2) Do any graphs work?
3) read http://forums.cacti.net/viewtopic.php?t=15136
| 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 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.
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
Yes, there is a bug in cacti with php 5.2.0 that another user found. The Cacti devs need to create a patch.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.
| 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 |
php bug
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?
just curious. your tag says your runnin 5.2 bsod. what gives?
Cacti 0.8.6j fixed the php 5.2.0 problem, along with many others. I suggest you upgrade.
| 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 |
Who is online
Users browsing this forum: No registered users and 3 guests