new install problems

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
phoenix78
Posts: 1
Joined: Tue Apr 19, 2011 2:04 pm

new install problems

Post by phoenix78 »

Hi

I just wanted to start using cacti and so I installed it like explained in several manuals.
But after the install when I first wants to connect to the cacti web I just getting a sort of PHP rubish which doesn't seem to be interpreted corectly.

PHP Version:
PHP 5.3.6 (cli) (built: Apr 15 2011 18:13:56)
Copyright (c) 1997-2011 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2011 Zend Technologies
with Zend Guard Loader v3.3, Copyright (c) 1998-2010, by Zend Technologies


Apache Version: 2.2.3
Linux: Centos 5.6

You can see here:
http://www.datateam.lu/cacti/install/

and here a little preview:

) { if (ereg("^RRDtool 1\.4", $out_array[0])) { $input["rrdtool_version"]["default"] = "rrd-1.4.x"; }else if (ereg("^RRDtool 1\.3\.", $out_array[0])) { $input["rrdtool_version"]["default"] = "rrd-1.3.x"; }else if (ereg("^RRDtool 1\.2\.", $out_array[0])) { $input["rrdtool_version"]["default"] = "rrd-1.2.x"; }else if (ereg("^RRDtool 1\.0\.", $out_array[0])) { $input["rrdtool_version"]["default"] = "rrd-1.0.x"; } } } /* default value for this variable */ if (!isset($_REQUEST["install_type"])) { $_REQUEST["install_type"] = 0; } /* defaults for the install type dropdown */ if ($old_cacti_version == "new_install") { $default_install_type = "1"; }else{ $default_install_type = "3"; } /* pre-processing that needs to be done for each step */ if (empty($_REQUEST["step"])) { $_REQUEST["step"] = 1; }else{ if ($_REQUEST["step"] == "1") { $_REQUEST["step"] = "2"; }elseif (($_REQUEST["step"] == "2") && ($_REQUEST["install_type"] == "1")) { $_REQUEST["step"] = "3"; }elseif (($_REQUEST["step"] == "2") && ($_REQUEST["install_type"] == "3")) { $_REQUEST["step"] = "8"; }elseif (($_REQUEST["step"] == "8") && ($old_version_index <= array_search("0.8.5a", $cacti_versions))) { $_REQUEST["step"] = "9"; }elseif ($_REQUEST["step"] == "8") { $_REQUEST["step"] = "3"; }elseif ($_REQUEST["step"] == "9") { $_REQUEST["step"] = "3"; }elseif ($_REQUEST["step"] == "3") { $_REQUEST["step"] = "4"; } } if ($_REQUEST["step"] == "4") { include_once("../lib/data_query.php"); include_once("../lib/utility.php"); $i = 0; /* get all items on the form and write values for them */ while (list($name, $array) = each($input)) { if (isset($_POST[$name])) { db_execute("replace into settings (name,value) values ('$name','" . $_POST[$name] . "')"); } } setcookie(session_name(),"",time() - 3600,"/"); kill_session_var("sess_config_array"); kill_session_var("sess_host_cache_array"); /* just in case we have hard drive graphs to deal with */ $host_id = db_fetch_cell("select id from host where hostname='127.0.0.1'"); if (!empty($host_id)) { run_data_query($host_id, 6); } /* it's always a good idea to re-populate the poller cache to make sure everything is refreshed and up-to-date */ repopulate_poller_cache(); db_execute("delete from version"); db_execute("insert into version (cacti) values ('" . $config["cacti_version"] . "')"); header ("Location: ../index.php"); exit; }elseif (($_REQUEST["step"] == "8") && ($_REQUEST["install_type"] == "3")) { /* if the version is not found, die */ if (!is_int($old_version_index)) { print "
Error

Invalid Cacti version $old_cacti_version, cannot upgrade to " . $config["cacti_version"] . "

"; exit; } /* loop from the old version to the current, performing updates for each version in between */ for ($i=($old_version_index+1); $i
noname
Cacti Guru User
Posts: 1566
Joined: Thu Aug 05, 2010 2:04 am
Location: Japan

Re: new install problems

Post by noname »

>> with Zend Guard Loader v3.3, Copyright (c) 1998-2010, by Zend Technologies

Try
zend_loader.enable = 0
in your 'php.ini' (then restart Apache)

See Also:
Zend Guard Loader - Configuration Directives
Post Reply

Who is online

Users browsing this forum: No registered users and 8 guests