[SOLVED] Blank page

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

Moderators: Developers, Moderators

Post Reply
zarahel
Posts: 33
Joined: Wed Feb 06, 2008 3:49 pm

[SOLVED] Blank page

Post by zarahel »

Good evening

I could use some help.

As for what I´ve seen this seems to be a very common problem, but I´ve still haven´t found an answer. During the installation of Cacti, when you´re suposed to access cacti via web browser for the first time, all i get is a blank page.

I´ve followed the manual to the letter and I can´t get pass the 8 step:

8. Point your web browser to:
http://your-server/cacti/


It seems to be some kind of PHP problem, but I can´t figure it out. Do I need to configure Apache with anything else than:

# Load config files from the config directory "/etc/httpd/conf.d".
Include conf.d/*.conf


I´m using Fedora 7 and I´ve installed HTTPD, PHP, PHP-MYSQL, PHP-SNMP, MYSQL, MYSQL-SERVER and NET-SNMP using YUM, so I ´ve got the most recent version of the respective packages.

I would apreciate any help

Thkx
Last edited by zarahel on Thu Feb 07, 2008 9:54 am, edited 1 time in total.
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

Hi

did you create the MySQL database for Cacti, a MySQL user, import cacti.sql and configure include/config.php ?
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
zarahel
Posts: 33
Joined: Wed Feb 06, 2008 3:49 pm

Post by zarahel »

Yes.I´ve done all that. Any other suggestions?
strides
Posts: 5
Joined: Thu Feb 07, 2008 4:55 am

Me too

Post by strides »

Hi

Just had the same problem... the apache error_log says it couldn't find the modules to load them as it was looking for them in the same directory as the configured extension_dir (extension_dir = /etc/php.d) in the instructions:
...
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/mysqli.so' - /etc/php.d/mysqli.so: cannot open shared object file: No such file or directory in Unknown on line 0
...

... that'd be because that ain't where they live then... so I did a quick search and found the elusive modules residing in /usr/lib/php/modules then I copied /etc/php.d/* to /usr/lib/php/modules and changed extension_dir in php.ini to /usr/lib/php/modules as well.

One swift restart of httpd and im now finally seeing the "Cacti Installation Guide", so it appears to have done the trick...

HTH

/S
zarahel
Posts: 33
Joined: Wed Feb 06, 2008 3:49 pm

Post by zarahel »

Strides, thkx for your help. I figured out that myself this morning, and u were right.

But in the meanwhile I got an error creating graphichs.

For some reason I cannot create the RRDs. I get this error:

ERROR: opening '/usr/share/cacti/rra/localhost_mem_buffers_3.rrd': No such file or directory

I´ve allowed for all user to write in RRA and LOG by chmod 777.

Why cant I create the RRDs?

Thkx
strides
Posts: 5
Joined: Thu Feb 07, 2008 4:55 am

Post by strides »

You're doing well... I came to a halt on the very next page when I discovered I'd forgot to install rrdtool :oops:

Is that an error on the webpage? I take it the rra directory is indeed empty...

I had trouble getting my cronjob to work and my rra dir was empty until i ran poller.php from the CLI (after su'ing to the cacti user), then they appeared. Ultimately I ignored the defined cron instructions after getting no joy with them and su'ed into the cacti user again and did a crontab -e from there for poller.php, then restarted crond back as root... seems to be working anyway. Didn't need to use chmod though, just chown the directories as the instructions indicated...

HTH

/S
zarahel
Posts: 33
Joined: Wed Feb 06, 2008 3:49 pm

Post by zarahel »

strides...I´m kinda new to cacti, so I didn´t quite unsderstand what u did?
Could u please post here the command sequence u used? :oops:
zarahel
Posts: 33
Joined: Wed Feb 06, 2008 3:49 pm

Post by zarahel »

Ok...so I´ve figured out what the problem was: I had to access /usr/share/cacti/include/global.php and redefine the database password to the one i used when building my cacti Database.
strides
Posts: 5
Joined: Thu Feb 07, 2008 4:55 am

Post by strides »

Sorry chap, was out on lunch. Glad you got it sorted.
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests