Cannot access cactii

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

Moderators: Developers, Moderators

Post Reply
skv8995
Posts: 13
Joined: Wed Feb 26, 2020 2:44 pm

Cannot access cactii

Post by skv8995 »

Hello


I have installed Cacti 1.2.8 in Server 2019 Datacenter Edition


I am unable to get cacti page loaded on my webbrowser

when enter
http://localhost/cacti/

The Cacti GUI login page is not seen

Instead i see a page which says the following

Index of /cacti

*Parent Directory
*cacti-1.2.8/


Can someone help?
Last edited by skv8995 on Wed Mar 11, 2020 3:46 pm, edited 1 time in total.
User avatar
camerabob
Cacti User
Posts: 386
Joined: Fri Feb 10, 2017 2:45 pm
Location: Long Island, New York, USA
Contact:

Re: Cannot access access cactii

Post by camerabob »

Rename the folder 'cacti-1.2.8' to just 'cacti'.

Scratch that. Move everything from /cacti/cacti-1.2.8 up one folder into the /cacti folder.
Prod: Cacti 1.2.15 @ CentOS Linux release 7.9.2009 (Core) & PHP 5.4.16-48.el7
Maint @ 1.2
Monitor @ 2.3.6
Thold @ 1.2.4

Temp: Cacti 1.2.3 @ CentOS Linux release 7.9.2009 (Core) & PHP 5.4.16-48.el7
Flowview @ 2.1
Mactrack @ 4.2
Maint @ 1.2
Monitor @ 2.3.6
Router Configs @ 1.3.4
Syslog Monitoring @ 2.1
Thold @ 1.2.4
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: Cannot access access cactii

Post by netniV »

Did you change the installation path when you were installing? if so, that likely broke the defaults set in various places of the configurations on Windows.

As CB said, move the folder contents up a level from /cacti/cacti-1.2.8 to /cacti/ in Windows Explorer, then it should start working. If so, raise it as a potential bug and we can have our windows installer guy take a look.
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
skv8995
Posts: 13
Joined: Wed Feb 26, 2020 2:44 pm

Re: Cannot access access cactii

Post by skv8995 »

So I moved the cacti folder up in /cacti

I still see the same thing when i enter

http://localhost/cacti/ in my webbrowser

Parent Directory
CHANGELOG
LICENSE
README.md
about.php
aggregate_graphs.php
aggregate_items.php
aggregate_templates.php
auth_changepassword.php
auth_login.php
auth_profile.php
automation_devices.php
automation_graph_rules.php
automation_networks.php
automation_snmp.php
automation_templates.php
automation_tree_rules.php
boost_rrdupdate.php
cache/
cacti.sql
cdef.php
etc..

and when I click parent directory a message pops up saying "It works!"

I downloaded the latest version of cacti i.e cacti-1.2.10 still I see the same thing
User avatar
Osiris
Cacti Guru User
Posts: 1424
Joined: Mon Jan 05, 2015 10:10 am

Re: Cannot access cactii

Post by Osiris »

You need to edit the php.ini file and enable the error_log restart Apache and go back to the cacti page. Then edit the error_log and see the error.
Before history, there was a paradise, now dust.
User avatar
camerabob
Cacti User
Posts: 386
Joined: Fri Feb 10, 2017 2:45 pm
Location: Long Island, New York, USA
Contact:

Re: Cannot access access cactii

Post by camerabob »

skv8995 wrote: Wed Mar 11, 2020 2:51 pm So I moved the cacti folder up in /cacti
You should have moved the folder contents up, not the folder itself. Not sure what really was done...
Prod: Cacti 1.2.15 @ CentOS Linux release 7.9.2009 (Core) & PHP 5.4.16-48.el7
Maint @ 1.2
Monitor @ 2.3.6
Thold @ 1.2.4

Temp: Cacti 1.2.3 @ CentOS Linux release 7.9.2009 (Core) & PHP 5.4.16-48.el7
Flowview @ 2.1
Mactrack @ 4.2
Maint @ 1.2
Monitor @ 2.3.6
Router Configs @ 1.3.4
Syslog Monitoring @ 2.1
Thold @ 1.2.4
skv8995
Posts: 13
Joined: Wed Feb 26, 2020 2:44 pm

Re: Cannot access cactii

Post by skv8995 »

I check the php.ini file and it had log_error = On (present at line one of the code)
I gave the path to it error_log=C:\php\php_errors.txt (Manually created the text file) (Present at last line of the code)
Restarted Apache and opened the webpage but it still shows the same

; http://php.net/log-errors
log_errors = On

; Set maximum length of log_errors. In error_log information about the source is
; added. The default is 1024 and 0 allows to not apply any maximum length at all.
; http://php.net/log-errors-max-len
log_errors_max_len = 1024

; Do not log repeated messages. Repeated errors must occur in same file on same
; line unless ignore_repeated_source is set true.
; http://php.net/ignore-repeated-errors
ignore_repeated_errors = Off

; Ignore source of message when ignoring repeated messages. When this setting
; is On you will not log errors with repeated messages from different files or
; source lines.
; http://php.net/ignore-repeated-source
ignore_repeated_source = Off

; If this parameter is set to Off, then memory leaks will not be shown (on
; stdout or in the log). This has only effect in a debug compile, and if
; error reporting includes E_WARNING in the allowed list
; http://php.net/report-memleaks
report_memleaks = On

; This setting is on by default.
;report_zend_debug = 0

; Store the last error/warning message in $php_errormsg (boolean). Setting this value
; to On can assist in debugging and is appropriate for development servers. It should
; however be disabled on production servers.
; Default Value: Off
; Development Value: On
; Production Value: Off
; http://php.net/track-errors
track_errors = Off

; Turn off normal error reporting and emit XML-RPC error XML
; http://php.net/xmlrpc-errors
;xmlrpc_errors = 0

; An XML-RPC faultCode
;xmlrpc_error_number = 0

; When PHP displays or logs an error, it has the capability of formatting the
; error message as HTML for easier reading. This directive controls whether
; the error message is formatted as HTML or not.
; Note: This directive is hardcoded to Off for the CLI SAPI
; Default Value: On
; Development Value: On
; Production value: On
; http://php.net/html-errors
html_errors = On

; If html_errors is set to On *and* docref_root is not empty, then PHP
; produces clickable error messages that direct to a page describing the error
; or function causing the error in detail.
; You can download a copy of the PHP manual from http://php.net/docs
; and change docref_root to the base URL of your local copy including the
; leading '/'. You must also specify the file extension being used including
; the dot. PHP's default behavior is to leave these settings empty, in which
; case no links to documentation are generated.
; Note: Never use this feature for production boxes.
; http://php.net/docref-root
; Examples
;docref_root = "/phpmanual/"

; http://php.net/docref-ext
;docref_ext = .html

; String to output before an error message. PHP's default behavior is to leave
; this setting blank.
; http://php.net/error-prepend-string
; Example:
;error_prepend_string = "<span style='color: #ff0000'>"

; String to output after an error message. PHP's default behavior is to leave
; this setting blank.
; http://php.net/error-append-string
; Example:
;error_append_string = "</span>"

; Log errors to specified file. PHP's default behavior is to leave this value
; empty.
; http://php.net/error-log
; Example: (Sid edited)
error_log = C:\php\php_errors.txt
skv8995
Posts: 13
Joined: Wed Feb 26, 2020 2:44 pm

Re: Cannot access access cactii

Post by skv8995 »

camerabob wrote: Thu Mar 12, 2020 8:45 am
skv8995 wrote: Wed Mar 11, 2020 2:51 pm So I moved the cacti folder up in /cacti
You should have moved the folder contents up, not the folder itself. Not sure what really was done...
I was getting an error moving logs up which said it is already opened so i deleted /cacti/cacti-1.2.8 downloaded the new stable release i.e cacti 1.2.10 and extracted to C:\Apache24\htdocs renaming the folder from (cacti 1.2.10 to cacti)
skv8995
Posts: 13
Joined: Wed Feb 26, 2020 2:44 pm

Re: Cannot access cactii

Post by skv8995 »

Guys

is there anything else that i should check?
skv8995
Posts: 13
Joined: Wed Feb 26, 2020 2:44 pm

Re: Cannot access cactii

Post by skv8995 »

I replaced Apache with IIS

Even after running IIS i see the same thing after entering http://localhost/cacti/ in my webrowser
br
localhost - /cacti/

[To Parent Directory]

12/8/2019 11:49 PM 4427 about.php
12/8/2019 11:49 PM 62719 aggregate_graphs.php
12/8/2019 11:49 PM 18969 aggregate_items.php
12/8/2019 11:49 PM 25541 aggregate_templates.php
12/8/2019 11:49 PM 14570 auth_changepassword.php
12/8/2019 11:49 PM 29648 auth_login.php
12/8/2019 11:49 PM 19419 auth_profile.php
12/8/2019 11:49 PM 23522 automation_devices.php
12/8/2019 11:49 PM 37619 automation_graph_rules.php
12/8/2019 11:49 PM 44206 automation_networks.php
12/8/2019 11:49 PM 31037 automation_snmp.php
12/8/2019 11:49 PM 19363 automation_templates.php
12/8/2019 11:49 PM 39711 automation_tree_rules.php
12/8/2019 11:49 PM 3039 boost_rrdupdate.php
3/24/2020 6:10 PM <dir> cache
12/8/2019 11:48 PM 122645 cacti.sql
12/8/2019 11:49 PM 30312 cdef.php
12/8/2019 11:48 PM 196775 CHANGELOG
3/24/2020 6:07 PM <dir> cli
12/8/2019 11:49 PM 1974 clog.php
12/8/2019 11:49 PM 1979 clog_user.php
12/8/2019 11:49 PM 31661 cmd.php
12/8/2019 11:49 PM 9110 cmd_realtime.php
12/8/2019 11:49 PM 25092 color.php
User avatar
camerabob
Cacti User
Posts: 386
Joined: Fri Feb 10, 2017 2:45 pm
Location: Long Island, New York, USA
Contact:

Re: Cannot access cactii

Post by camerabob »

Not sure about IIS, but somewhere you need to tell IIS that the index file to open automatically is 'index.php' along with 'index.htm, index.html', etc.
Prod: Cacti 1.2.15 @ CentOS Linux release 7.9.2009 (Core) & PHP 5.4.16-48.el7
Maint @ 1.2
Monitor @ 2.3.6
Thold @ 1.2.4

Temp: Cacti 1.2.3 @ CentOS Linux release 7.9.2009 (Core) & PHP 5.4.16-48.el7
Flowview @ 2.1
Mactrack @ 4.2
Maint @ 1.2
Monitor @ 2.3.6
Router Configs @ 1.3.4
Syslog Monitoring @ 2.1
Thold @ 1.2.4
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: Cannot access cactii

Post by netniV »

If you are using IIS you need to ensure that the PHP script handlers are enabled and running, plus set the Default Document list to index index.php
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
skv8995
Posts: 13
Joined: Wed Feb 26, 2020 2:44 pm

Re: Cannot access cactii

Post by skv8995 »

I am not sure how to carry out this operation
"If you are using IIS you need to ensure that the PHP script handlers are enabled and running, plus set the Default Document list to index index.php"

Where can I check if my PHP script handlers are enabled?

Please Help!
skv8995
Posts: 13
Joined: Wed Feb 26, 2020 2:44 pm

Re: Cannot access cactii

Post by skv8995 »

The link given below specifies on installing IIS 7 or 8 on the Windows server but I have installed IIS 10 on the server is version 10 compatible or should I roll back to 8 ?
https://docs.cacti.net/manual:088:1_ins ... _webserver
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests