New to Cacti : IIS Webpage error

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

Moderators: Developers, Moderators

Post Reply
JHoover
Posts: 5
Joined: Tue Feb 15, 2005 5:23 pm

New to Cacti : IIS Webpage error

Post by JHoover »

Hello all,
I am very new to Cacti, but after reading all the instructions and reading through several posts on this board I am stuck. I am sure its quite a simple error, but I simply cannot seem to get a handle on it.

Here is my current setup:

Windows 2003 Server Enterprise Edition
Cacti 0.8.6c
Cactid 0.8.6c
MySQL 5.1.10
RRDTool 1.0.49
Net-SNMP 5.2.1-1
IIS Version 6.0

When I check the Default Web Site to see if PHP is running under ISAPI Filters I get the green arrow pointing up.

The command line output of php -v is as follows:
C:\>php -v
PHP 4.3.10 (cgi-fcgi) (built: Dec 14 2004 17:47:59)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies

The command line output of php -m is as follows:
C:\>php -m
[PHP Modules]
bcmath
calendar
com
ctype
ftp
mysql
odbc
overload
pcre
session
snmp
sockets
standard
tokenizer
wddx
xml
zlib

[Zend Modules]

So from what I can tell I have PHP installed and configured correctly, but I cannot get the index.php page to display no matter what I try. I have rebooted, triple checked permissions for all the accounts and directories associated with the webserver and php files. But after creating a test.html file and placing it in the Default Web Site folder, I can open that file in a web browser, leading me to think I have something wrong with my permissions. So if anyone has any ideas or a place for me to start looking I would greatly appreciate it.
tdl
Posts: 27
Joined: Sat Feb 12, 2005 4:06 am
Location: Long Beach CA

Post by tdl »

ok.. not an expert here but I have installed and torn down 3 Cacti servers in the last week using the same code you are using.

Here is what I would check.

Insure that your Cacti directory is in /wwwroot/cacti

I could not get PHP to run until I made my my DefaultAppPool for the Cacti web site LocalService.
I know its a permission thing and someone who knows more about IIS 6.0 can comment.

Insure that your permissions for the directory include read/execute for the Cacti directory and its subs.

Also insure you gave your IUSR_(your server name here) rights read/excute to your cmd.exe /windows/system32 directory.

Resist the temptation to make lots of changes :)

Under php.ini leave everything default save the entries the install doc recommends.

Try that (insure you do the full net stop /net start to try your changes ONE AT A TIME :)
JHoover
Posts: 5
Joined: Tue Feb 15, 2005 5:23 pm

Post by JHoover »

Thanks for the reply tdl, I did check all those things fully stopping and restarting after any changes, but I still have the same issue.

I upgraded PHP just to see if IIS didnt like version 4 for some reason, so now I am running the following:

Windows 2003 Server Enterprise Edition
Cacti 0.8.6c
Cactid 0.8.6c
MySQL 5.1.10
RRDTool 1.0.49
Net-SNMP 5.2.1-1
IIS Version 6.0
PHP 5.0.3

Still get the green arrow, but trying to php something from the command line results in the following:

C:\>c:\php\php.exe c:\Inetpub\wwwroot\cacti\index.php


Warning: main(./include/auth.php): failed to open stream: No such file or directory in c:\Inetpub\wwwroot\cacti\index.php on line 27

Warning: main(): Failed opening './include/auth.php' for inclusion (include_path='.;C:\php5\pear') in c:\Inetpub\wwwroot\cacti\index.php on line 27

Warning: main(./include/top_header.php): failed to open stream: No such file or directory in c:\Inetpub\wwwroot\cacti\index.php on line 28

Warning: main(): Failed opening './include/top_header.php' for inclusion (include_path='.;C:\php5\pear') in c:\Inetpub\wwwroot\cacti\index.php on line 28
<table width="98%" align="center">
<tr>
<td class="textArea">
<strong>You are now logged into <a href="about.php">Cacti</a>. You can follow these basic steps to get
started.</strong>

<ul>
<li><a href="host.php">Create devices</a> for network</li>
<li><a href="graphs_new.php">Create graphs</a> for your new devices</li>
<li><a href="graph_view.php">View</a> your new graphs</li>
</ul>
</td>
</tr>
</table>

Warning: main(./include/bottom_footer.php): failed to open stream: No such file or directory in c:\Inetpub\wwwroot\cacti\index.php on line 47

Warning: main(): Failed opening './include/bottom_footer.php' for inclusion (include_path='.;C:\php5\pear') in c:\Inetpub\wwwroot\cacti\index.php on line 47


I did find a phpinfo.php file to test with on this forum, and it won't load in a browser, but it will come up fine with the same command line syntax as above.
JHoover
Posts: 5
Joined: Tue Feb 15, 2005 5:23 pm

Post by JHoover »

Finally fixed it.

Several things that I changed to get it working are as follows.

Inside php.ini
doc_root = "c:\inetpub\wwwroot\cacti" (this could be diff for your install path)


If your having the same issues , make SURE to check the following things.

1. Be sure you have set the Application Pool to the correct user with permissions under IIS Manager -> Application Pool -> DefaultAppPool -> Properties -> Identify

The default here is "Network Service" per tdl I had changed mine to IWAM_hostname.

I am not positive but this seems to be related to an Active Directory issue.

2. Be sure you have set the correct path and extension infomation in the ISAPI filters tab.

3. Be sure you have your extension directory in php.ini pointing to the correct path.

Thanks for pointing me in the right direction tdl!
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests