Help: After fresh install, Cacti page is not working

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

Moderators: Developers, Moderators

Post Reply
slippryj71
Posts: 3
Joined: Wed Sep 20, 2023 6:50 am

Help: After fresh install, Cacti page is not working

Post by slippryj71 »

Hi team,

I recently installed Cacti by following this guide: https://computingforgeeks.com/install-a ... on-ubuntu/

Cactid is running:
● cactid.service - Cacti Daemon Main Poller Service
Loaded: loaded (/etc/systemd/system/cactid.service; enabled; vendor preset: enabled)
Active: active (running) since Thu 2023-09-21 06:06:48 MDT; 23h ago
Main PID: 1214 (php)
Tasks: 4 (limit: 4450)
Memory: 35.6M
CPU: 11min 22.240s
CGroup: /system.slice/cactid.service
├─ 1214 php /var/www/html/cacti/cactid.php
├─38571 /usr/bin/php -q /var/www/html/cacti/poller.php --force
├─38574 sh -c "/usr/bin/rrdtool - "
└─38575 /usr/bin/rrdtool -

But when I try to load the Cacti page, I'm presented with php errors:
'; } else { print '
'; $file = $config['base_path'] . "/include/content/" . $page['contentfile']; if (file_exists($file)) { include_once($file); } else { print '
The file \'' . $page['contentfile'] . '\' does not exist!!
'; } print '
'; } } } } } render_external_links('FRONTTOP'); if (read_config_option('hide_console') != 'on') { ?> 1) {?>
Cacti. You can follow these basic steps to get started.', 'about.php');?>

Create devices for network', 'host.php');?>
Create graphs for your new devices', 'graphs_new.php');?>
View your new graphs', $config['url_path'] . 'graph_view.php');?>

Any suggestions where to start looking?
User avatar
macan
Cacti Guru User
Posts: 1106
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech

Re: Help: After fresh install, Cacti page is not working

Post by macan »

try to clone again git clone -b 1.2.x https://github.com/Cacti/cacti.git and replace files or download version 1.2.25 directly from https://github.com/Cacti/cacti/releases
Let the Cacti grow!
slippryj71
Posts: 3
Joined: Wed Sep 20, 2023 6:50 am

Re: Help: After fresh install, Cacti page is not working

Post by slippryj71 »

Hi, thanks for the suggestion. I re-cloned from git and the problem persists.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Help: After fresh install, Cacti page is not working

Post by TheWitness »

Looks like you are attempting to open an External Link page that does not exist. Suggest you review that.
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Help: After fresh install, Cacti page is not working

Post by TheWitness »

Or Apache has not been properly initializes. Put this file in the web root:

Code: Select all

vim phpinfo.php
<?php
phpinfo();
?>
Then save that file, and point your browser to: https://somehost/phpinfo.php

That page should render.
Attachments
PHPInfo.png
PHPInfo.png (172.29 KiB) Viewed 1638 times
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
slippryj71
Posts: 3
Joined: Wed Sep 20, 2023 6:50 am

Re: Help: After fresh install, Cacti page is not working

Post by slippryj71 »

Yep, something is wrong. I get a blank page when trying that link on my cacti host. The Apache2 default page loads just fine, something good there. Thanks for the help, I'll poke around and see if I can figure out what's missing.
User avatar
macan
Cacti Guru User
Posts: 1106
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech

Re: Help: After fresh install, Cacti page is not working

Post by macan »

check webserver and cacti logs
Let the Cacti grow!
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Help: After fresh install, Cacti page is not working

Post by TheWitness »

Yea, you web server is not setup correctly. It just working in RHEL and variants using our documentation. Also, works in Ubuntu/Debian following our installation instructions.
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest