Not Loading

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

Moderators: Developers, Moderators

Post Reply
bobbyd
Posts: 3
Joined: Mon Jul 02, 2007 1:04 am

Not Loading

Post by bobbyd »

I installed Cacti and all of it's dependencies according to the how to at http://www.cacti.net/downloads/docs/con ... How-To.pdf but when I try and access Cacti, there is no page at http://localhost/cacti, but also no errors (eg firefox can find the site)

Any ideas?

Thanks

BobbyD
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Typically this is a apache configuration problem.

Confirm that the location of Cacti is configured in your apache configuration. Or move it into the root of your web server document root.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
bobbyd
Posts: 3
Joined: Mon Jul 02, 2007 1:04 am

Post by bobbyd »

I just tried moving cacti to the root and it didn't work. There was still no page that loaded, even when i tried index.php. Also, how should apache be configured to use cacti?
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Well, that sir is a rather broad question.

Let's start with the basics, do you have php installed and enabled in apache?
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
bobbyd
Posts: 3
Joined: Mon Jul 02, 2007 1:04 am

Post by bobbyd »

I've installed PHP and I can access other PHP pages on my server, just not the cacti ones
marcuscr
Posts: 13
Joined: Thu Nov 17, 2005 8:25 pm

Same Issue

Post by marcuscr »

i am experiencing the same issue. PHP files in the CACTI directory work OK, other tools on the system are able to use PHP.

Are there any specifiic CACTI.PHP requirements?

Thanks.
awoodby
Posts: 1
Joined: Thu Jul 05, 2007 2:51 pm
Location: LIvonia, mi

also getting nothing on the page when loading browser

Post by awoodby »

I also get a blank page when going to my cacti site. I can snmpwalk my server, but when I manually run poller it does nothing as well. I'm using php for other pages on the server and it works.

Also, if I comment out the include auth.php in index.php it does load the header, so php's working somewhat, just choking on auth.php or somewhere within there (config.php?)

--alex
Kaepora
Posts: 1
Joined: Sun Jul 08, 2007 5:40 am

Post by Kaepora »

Exactly the same problem here.
bdbrumm
Cacti User
Posts: 51
Joined: Mon Aug 12, 2002 3:16 pm

cacti homepage not loading, FC6

Post by bdbrumm »

I'm also experiencing the same issue. I also installed from the "Lee Carter" document. I've built the server several different ways, all with the same result.

PHP is installed and working. I can access a phpinfo query, I can load the cacti documentation html files via the browser, no issues there.

I can log into mysql via the cacti user and dump the cactidb database.

I can snmpwalk any given device.

There's just no output on the screen for any cacti-specific .php document accessed via the browser. It is the same behavior on the cacti server iteself (localhost access) and remotely.

Here's some more specific information:

uname:
Linux 2.6.18-1.2798.fc6 #1 SMP Mon Oct 16 14:37:32 EDT 2006 i686 i686 i386 GNU/Linux

PHP: 5.1.6, via system CD/build
Apache: 2.2.3: via system CD/build
Net-SNMP: 5.4 source build
rrdtool: 1.2.23 source build
mysql: 5.0.41 source build

I've been using Cacti for several years now and this is the first I've encountered this particular issue.
I'm willing to work with this. Can anyone shed some light on this behavior? It would appear that it is not isolated to just one user.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Please take the lib/database.php from the SVN BRANCH_0_8_6 and install it in place of the existing, then refresh your page. See if you receive more informative information.

Also, how did you "all" install Cacti? Please post versions of everything:

Mysql
php
php-mysql
php-snmp
Apache
Cacti
Patches?

TheWitness
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?
bdbrumm
Cacti User
Posts: 51
Joined: Mon Aug 12, 2002 3:16 pm

[resolved] not-updating, no cacti web pages appear

Post by bdbrumm »

It would appear that the problem with no web pages being displayed/loaded for Cacti is the fact that when building from the FC6 disks (or likely any other FCx disks) depending on the build options selected, PHP is not built with MySQL support. This the default build behavior for PHP 5.x
"MySQL is not enabled by default, nor is the MySQL library bundled with PHP"

Links on the issue are here:
http://us.php.net/mysql
http://us.php.net/manual/en/faq.databas ... mysql.php5

I built a system a couple times to establish this behavior. For those having issues, create a file called phpinfo.php and save it into your web server DocumentRoot location. Include the following in the file:
<?php
// Show all information, defaults to INFO_ALL
phpinfo();

// Show just the module information.
// phpinfo(8) yields identical results.
phpinfo(INFO_MODULES);
?>

When executed from the browser, you should see a list of build options for PHP. If you do not see the --wtih-mysql=/somepath option in the "configure command" field or if you see --without-mysql, then that is likely the reason why you are experiencing the problem.

A rebuild/recomple of PHP with the --with-mysql=/somepath option correctly configured resolved the issue for me.
In fact, I source-built a run-level 3-only (no X, Gnome/KDE) system from the FC6 CDs with no issues.
It's fairly straightforward and I can provide the details upon request.

Regards,
Bruce
Post Reply

Who is online

Users browsing this forum: No registered users and 9 guests