Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Oct 2006 12:19:20 +0200
From:      riccardo_diago <riccardo.diago@pharmaidea.com>
To:        freebsd-questions <freebsd-questions@freebsd.org>
Subject:   Cacti Problem
Message-ID:  <45408BA8.90908@pharmaidea.com>

next in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enigBA2408AA67EE8DE5717CE37A
Content-Type: text/plain; charset=ISO-8859-15
Content-Transfer-Encoding: 7bit

Hi guys,
I got a problem installing cacti on Freebsd 6.1 on sparc.
I did:
1. download and install from port net/cacti
2. check if mysql was running
3. I did all the steps u find in cacti/docs/INSTALL (except for the
default user that is 'cacti' and not 'cactiuser')
4. check permissions on rra and log dir
---------BEGIN DUMP this is a dump of my cacti dir-----------
	

-rw-r--r--   1 root   wheel   15141 Oct 26 08:52 LICENSE
-rw-r--r--   1 root   wheel      71 Oct 26 08:52 README
-rw-r--r--   1 root   wheel    5892 Oct 26 08:52 about.php
-rw-r--r--   1 root   wheel    4773 Oct 26 08:52 auth_changepassword.php
-rw-r--r--   1 root   wheel    6189 Oct 26 08:52 auth_login.php
-rw-------   1 root   wheel  170643 Oct 26 08:52 cacti.sql
-rw-r--r--   1 root   wheel   13108 Oct 26 08:52 cdef.php
-rw-r--r--   1 root   wheel   16569 Oct 26 08:52 cmd.php
-rw-r--r--   1 root   wheel    5917 Oct 26 08:52 color.php
-rw-r--r--   1 root   wheel    2753 Oct 26 08:52 copy_cacti_user.php
-rw-r--r--   1 root   wheel   17536 Oct 26 08:52 data_input.php
-rw-r--r--   1 root   wheel   28164 Oct 26 08:52 data_queries.php
-rw-r--r--   1 root   wheel   44092 Oct 26 08:52 data_sources.php
-rw-r--r--   1 root   wheel   30344 Oct 26 08:52 data_templates.php
drwxr-xr-x   5 root   wheel     512 Oct 26 08:52 docs
-rw-r--r--   1 root   wheel    6110 Oct 26 08:52 gprint_presets.php
-rw-r--r--   1 root   wheel   10498 Oct 26 08:52 graph.php
-rw-r--r--   1 root   wheel    3423 Oct 26 08:52 graph_image.php
-rw-r--r--   1 root   wheel    6319 Oct 26 08:52 graph_settings.php
-rw-r--r--   1 root   wheel   22578 Oct 26 08:52 graph_templates.php
-rw-r--r--   1 root   wheel   10097 Oct 26 08:52 graph_templates_inputs.php
-rw-r--r--   1 root   wheel   17367 Oct 26 08:52 graph_templates_items.php
-rw-r--r--   1 root   wheel   23122 Oct 26 08:52 graph_view.php
-rw-r--r--   1 root   wheel   46835 Oct 26 08:52 graphs.php
-rw-r--r--   1 root   wheel   11945 Oct 26 08:52 graphs_items.php
-rw-r--r--   1 root   wheel   30802 Oct 26 08:52 graphs_new.php
-rw-r--r--   1 root   wheel   33450 Oct 26 08:52 host.php
-rw-r--r--   1 root   wheel   14236 Oct 26 08:52 host_templates.php
drwxr-xr-x   2 root   wheel    1536 Oct 26 08:52 images
drwxr-xr-x   5 root   wheel     512 Oct 26 08:52 include
-rw-r--r--   1 root   wheel    2271 Oct 26 08:52 index.php
drwxr-xr-x   2 root   wheel     512 Oct 26 08:52 install
drwxr-xr-x   3 root   wheel    1024 Oct 26 08:52 lib
drwxr-xr-x   2 cacti  cacti     512 Oct 26 08:52 log
-rw-r--r--   1 root   wheel    1796 Oct 26 08:52 logout.php
drwxr-xr-x   2 root   wheel     512 Oct 26 08:52 plugins
-rw-r--r--   1 root   wheel    9491 Oct 26 08:52 poller.php
-rw-r--r--   1 root   wheel    4673 Oct 26 08:52 poller_commands.php
-rw-r--r--   1 root   wheel    2325 Oct 26 08:52 poller_export.php
-rw-r--r--   1 root   wheel    4343 Oct 26 08:52 poller_reindex_hosts.php
-rw-r--r--   1 root   wheel    4170 Oct 26 08:52 rebuild_poller_cache.php
drwxr-xr-x   5 root   wheel     512 Oct 26 08:52 resource
drwxr-xr-x   2 cacti  cacti     512 Oct 26 08:52 rra
-rw-r--r--   1 root   wheel    6622 Oct 26 08:52 rra.php
-rw-r--r--   1 root   wheel    6760 Oct 26 08:52 script_server.php
-rw-r--r--   1 root   wheel     353 Oct 26 08:52 script_server.pl
drwxr-xr-x   2 root   wheel    1024 Oct 26 08:52 scripts
-rw-r--r--   1 root   wheel    4833 Oct 26 08:52 settings.php
-rw-r--r--   1 root   wheel    6813 Oct 26 08:52 templates_export.php
-rw-r--r--   1 root   wheel    5954 Oct 26 08:52 templates_import.php
-rw-r--r--   1 root   wheel   17463 Oct 26 08:52 tree.php
-rw-r--r--   1 root   wheel   27829 Oct 26 08:52 user_admin.php
-rw-r--r--   1 root   wheel   11480 Oct 26 08:52 utilities.php
----------------END DUMP ------------------------

5. add these lines to Apache22:

	Alias /cacti "/usr/local/share/cacti/"
<DirectoryMatch /usr/local/share/cacti/>

        Options +FollowSymLinks
        AllowOverride None
        order allow,deny
        allow from all
        <IfModule mod_php4.c>
                AddType application/x-httpd-php .php

                php_flag magic_quotes_gpc Off
                php_flag short_open_tag On
                php_flag register_globals Off
                php_flag register_argc_argv On
                php_flag track_vars On
                # this setting is necessary for some locales
                php_value mbstring.func_overload 0
                php_value include_path .

                DirectoryIndex index.php
        </IfModule>
        </DirectoryMatch>

6. Finally I went to the web browser and I saw this message:

"An error occurred while loading http://server.com/cacti:
Connection to host server.com is broken."

There is anybody can help me out w/ that?

thanks a lot in advance.

Rik.



--------------enigBA2408AA67EE8DE5717CE37A
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFFQIuwxr1SyxMj+4MRAoeZAJ4qJzG2cejDN3DxyF0ueYyUAk59+gCdETr0
jC9dU0UO9e0RQL+6BQiS2Dw=
=rrWQ
-----END PGP SIGNATURE-----

--------------enigBA2408AA67EE8DE5717CE37A--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?45408BA8.90908>