Cacti Directory

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

Moderators: Developers, Moderators

Post Reply
sgreath
Posts: 2
Joined: Fri Nov 01, 2002 5:36 pm

Cacti Directory

Post by sgreath »

Installed on Win2K box, when I point my browser to the server\cacti all I get is a directory of files? Am I suppose to run something else to get cacti up and going?
Thanks!
yid
Cacti User
Posts: 83
Joined: Sat Apr 20, 2002 8:26 pm

Post by yid »

I don't know what webserver you're running, but you need to include "index.php" in the allowed directory index.

On apache just add the following to your httpd.conf

Code: Select all

<IfModule mod_dir.c>
    DirectoryInex index.html index.php
</IfModule>
sorry, fixed my typo, so no one else gets confused
You probably already have something like this for index.html (and whatever else), just add index.php to the end of that line.

Not sure how to do this on other webservers-- but then, why use them :)

Aaron
Last edited by yid on Wed Nov 13, 2002 3:31 pm, edited 1 time in total.
sgreath
Posts: 2
Joined: Fri Nov 01, 2002 5:36 pm

Post by sgreath »

That's what it was, thanks yid. Now it pulls up the php file in a text format though. Not sure why that's happening, but I'll dig into it. Thanks again
Guest

Post by Guest »

Does anyone know why I would be getting the index.php file to display as a text on the screen instead of as a webpage. Does that mean a service isnt running? I just downloaded this stuff 4 days ago, so pardon my ignorance. Thanks for your time.
User avatar
bulek
Cacti Pro User
Posts: 854
Joined: Mon May 20, 2002 2:07 am
Location: Poland
Contact:

Post by bulek »

First of all if you haven't done it already correct settings from yid. Just a small bug - instead of "mod)dir.c" should be "mod_dir.c".

Now the stupid question: Have you installed PHP? If yes then check if in your httpd.conf there are the following lines:

Code: Select all

LoadModule php4_module <here_put_your_path>/php4apache.dll
AddModule mod_php4.c
AddType application/x-httpd-php .php
If yes then you can also check one setting in php.ini called "short_open_tag". This should be set to "On".

- bulek
Guest

Post by Guest »

When I add the LoadModule and AddModule it kills my apache server. I stop the server, add the code to HTTPD.CONF, restart the server and get an error "The Requested Operation has Failed!" I comment the LoadModule and AddModule and the server will start back up. This is the exact code I've put into HTTPD.CONF

Code: Select all

LoadModule php4_module c:/php/sapi/php4apache.dll
AddModule mod_php4.c
AddType application/x-httpd-php .php
Any ideas on this? I have checked the path to php4apache.dll and it is out there.
Flux
Posts: 39
Joined: Fri Nov 01, 2002 12:37 pm

Post by Flux »

Try and just comment out: AddModule mod_php4.c

For further reading on the reasoning behind the suggestion, point your browser to here: http://groups.google.com/groups?dq=&hl= ... com&rnum=2

I hope this helps.

Flux :o
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests