Cacti interface displays PHP Code

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
easynet
Posts: 2
Joined: Mon Sep 14, 2020 9:50 am

Cacti interface displays PHP Code

Post by easynet »

bonsoir a tous
je suis débutent sur cati c'est ma première fois de installer et je suis bloquer au niveau de l"affichage de l'interface web
bref quand fais http://adresse du serveur/cacti/ voilà ce que j'obtient

<?php
/*
+-------------------------------------------------------------------------+
| Copyright (C) 2004-2020 The Cacti Group |
| |
| This program is free software; you can redistribute it and/or |
| modify it under the terms of the GNU General Public License |
| as published by the Free Software Foundation; either version 2 |
| of the License, or (at your option) any later version. |
| |
| This program is distributed in the hope that it will be useful, |
| but WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| GNU General Public License for more details. |
+-------------------------------------------------------------------------+
| Cacti: The Complete RRDtool-based Graphing Solution |
+-------------------------------------------------------------------------+
| This code is designed, written, and maintained by the Cacti Group. See |
| about.php and/or the AUTHORS file for specific developer information. |
+-------------------------------------------------------------------------+
| http://www.cacti.net/ |
+-------------------------------------------------------------------------+
*/
include('./include/auth.php');
top_header();

api_plugin_hook('console_before');

function render_external_links($style = 'FRONT') {
global $config;

$consoles = db_fetch_assoc_prepared('SELECT id, contentfile
FROM external_links
WHERE enabled = "on"
AND style = ?', array($style));

if (cacti_sizeof($consoles)) {
foreach($consoles as $page) {
if (is_realm_allowed($page['id'] + 10000)) {
if (preg_match('/^((((ht|f)tp(s?))\:\/\/){1}\S+)/i', $page['contentfile'])) {
print '<iframe class="content" src="' . $page['contentfile'] . '" frameborder="0"></iframe>';
} else {
print '<div id="content">';

comment faire partir ce message s'il vous plait quelqu'un peut m'aider ?
cigamit
Developer
Posts: 3367
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Re: cacti

Post by cigamit »

Looks like you either didn't install PHP, or you didn't configure your webserver to properly display PHP.
easynet
Posts: 2
Joined: Mon Sep 14, 2020 9:50 am

Re: cacti

Post by easynet »

cigamit wrote: Mon Sep 14, 2020 10:28 am Looks like you either didn't install PHP, or you didn't configure your webserver to properly display PHP.
ok merci
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests