Windows All-In-One Installer [Cacti 1.2.24] [Updated 2023-03-09]

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

Moderators: Developers, Moderators

Post Reply
chrispel
Posts: 34
Joined: Wed Jun 27, 2007 11:33 am

Post by chrispel »

I created that file and put it in the cacti folder and get the php page. So that part is working. I would think that the cacti index page would be the problem but I don't know much about this :(.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

1) What the heck do you have installed? Something attached to explorer.exe is trying to read a $DATA datastream on files in your cacti directory.

2) Looks like the PHP session cookies are getting denied written.
8:18:38 AM inetinfo.exe:1212 OPEN C:\Documents and Settings\administrator.LOBMLAW\LOCALS~1\Temp\php\session\sess_72ehibfv1516d1rg6dbons5pf1 ACCESS DENIED COLLECTI-04E550\IUSR_COLLECTI-04E550

Either specify the correct location in your php.ini file (i.e. c:\php\session) or grant IUSR_COLLECTI-04E550 modify rights to FILES in your administrator temp folder (not exactly the safest thing to do).
billeburke
Posts: 10
Joined: Fri Jun 29, 2007 10:50 am
Location: Texas, USA

Post by billeburke »

I'm in a similar situation, although I have created the phpinfo.php file in the wwwroot/cacti/ directory and I can hit it with the following URL:

http://localhost/cacti/phpinfo.php

and I get a lengthy output page that starts with:

PHP Version 5.2.3
System...
Build Date...
etc.

but, trying to view index.php, about.php, graph.php, etc. return a blank page.

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

Post by BSOD2600 »

blah! what the heck is breaking with these installations? Same as chrispel, run Sysinternals Filemon during an attempted navigation/login to /cacti/index.php and post the log. You probably have a php session issue too.
chrispel
Posts: 34
Joined: Wed Jun 27, 2007 11:33 am

Post by chrispel »

Ok I gave the ISUR full control of that folder and the log now shows it can access it.

I just tried to attach the log but the forum will not let me for some reason.

here is some of the file

inetinfo.exe:1212 WRITE C:\Documents and Settings\administrator.LOBMLAW\LOCALS~1\Temp\PHP\session\sess_9i2eons0ocrbvl3k0ktm7inkq0 SUCCESS Offset: 0 Length: 42
inetinfo.exe:1212 UNLOCK C:\Documents and Settings\administrator.LOBMLAW\LOCALS~1\Temp\PHP\session\sess_9i2eons0ocrbvl3k0ktm7inkq0 SUCCESS Offset: 0 Length: 1
inetinfo.exe:1212 CLOSE C:\Documents and Settings\administrator.LOBMLAW\LOCALS~1\Temp\PHP\session\sess_9i2eons0ocrbvl3k0ktm7inkq0 SUCCESS
svchost.exe:788 OPEN C:\WINDOWS\Prefetch\FILEMON.EXE-1EDC3ADE.pf SUCCESS Options: Open Access: Read
billeburke
Posts: 10
Joined: Fri Jun 29, 2007 10:50 am
Location: Texas, USA

Post by billeburke »

here's my log
Attachments
bb_cacti.zip
(3.14 KiB) Downloaded 332 times
billeburke
Posts: 10
Joined: Fri Jun 29, 2007 10:50 am
Location: Texas, USA

Post by billeburke »

I looked at what you said here:

...Either specify the correct location in your php.ini file (i.e. c:\php\session) ...

and looked at the php.ini file and uncommented the entry below:

; Argument passed to save_handler. In the case of files, this is the path
; where data files are stored. Note: Windows users have to change this
; variable in order to use PHP's session functions.
;
; As of PHP 4.0.1, you can define the path as:
;
; session.save_path = "N;/path"
;
; where N is an integer. Instead of storing all the session files in
; /path, what this will do is use subdirectories N-levels deep, and
; store the session data in those directories. This is useful if you
; or your OS have problems with lots of files in one directory, and is
; a more efficient layout for servers that handle lots of sessions.
;
; NOTE 1: PHP will not create this directory structure automatically.
; You can use the script in the ext/session dir for that purpose.
; NOTE 2: See the section on garbage collection below if you choose to
; use subdirectories for session storage
;
; The file storage module creates files using mode 600 by default.
; You can change that by using
;
; session.save_path = "N;MODE;/path"
;
; where MODE is the octal representation of the mode. Note that this
; does not overwrite the process's umask.
session.save_path = "/tmp"

**What does this mean? "Windows users have to change this variable in order to use PHP's session functions."

after restarting iis I get this from http://localhost/cacti/index.php:

Warning: session_start() [function.session-start]: open(/tmp\sess_dd57d8bee57f6772527116b7a28edc04, O_RDWR) failed: No such file or directory (2) in C:\Inetpub\wwwroot\CACTI\include\config.php on line 96

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\Inetpub\wwwroot\CACTI\include\config.php:96) in C:\Inetpub\wwwroot\CACTI\include\config.php on line 96

Thoughts?
billeburke
Posts: 10
Joined: Fri Jun 29, 2007 10:50 am
Location: Texas, USA

Post by billeburke »

When I remove the / from the session.save_path (so it now looks like this "session.save_path = "tmp") and restart the w3svc, I get a blank page again, but the FileMon output shows that the cookie is able to be created in wwwroot/cacti/tmp.
Attachments
bb_cacti_2.zip
(2.06 KiB) Downloaded 159 times
billeburke
Posts: 10
Joined: Fri Jun 29, 2007 10:50 am
Location: Texas, USA

Post by billeburke »

chrispel...files with the .log extension are not allowed. you need to zip it first. I had the same problem :)
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

In php.ini, one should specify the full path for stuff. So the session.save_path should be c:\php\sessions (or whatever you want). Then you can grant the IUSR (and IIS_WPG if on win2k3) modify rights for FILES in the php session folder.
billeburke
Posts: 10
Joined: Fri Jun 29, 2007 10:50 am
Location: Texas, USA

Post by billeburke »

ok...after reading your readme about using your install guide, I realized that I did not run the php installer at all the first time. I just extracted all the files to c:\php. Once I ran the installer, re-extracted the files over the c:\php directory and then restarted w3svc, I was able to see the "Cacti Installation Guide", but the same two errors were at the top of the page. Changing the session.save_path to "c:\inetpub\wwwroot\cacti\tmp" finally removed the two errors.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

You shouldn't actually have to be running anything else, except for the cacti installer to get cacti up and running (in theory).

so its working now?
chrispel
Posts: 34
Joined: Wed Jun 27, 2007 11:33 am

Post by chrispel »

Any ideas on what I can try next ?
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Follow the same thing billeburke did by specifying the session.save_path in php.ini and properly setting its NTFS permissions for the IUSR and IIS_WPG accounts.
chrispel
Posts: 34
Joined: Wed Jun 27, 2007 11:33 am

Post by chrispel »

After I changed the path and checked the rights still no dice.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests