cacti url yields blank screen

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

Moderators: Developers, Moderators

Post Reply
vihan
Posts: 1
Joined: Wed Dec 20, 2006 4:17 am

cacti url yields blank screen

Post by vihan »

Hi,
i'm on RHEL AS4

#uname -ar
2.6.9-34.0.1.ELsmp

i have apache 2.2.3 setup properly

i did a fresh build of php 5.2, my configure script :

./configure --prefix=/usr/local/php-5.2.0 --with-libdir=/usr/lib64 --with-apxs2=/usr/local/apache2/bin/apxs --enable-sigchild --enable-magic-quotes --with-openssl --with-bz2 --enable-calendar --with-inifile --with-flatfile --enable-dbase --enable-ftp --with-gettext --enable-mbstring --with-oci8=instantclient,/usr/local/oracle --enable-soap --enable-sockets --enable-zend-multibyte --enable-shared --with-snmp --with-mysql-dir=/usr/local/mysql-5.0.26 --with-gd-dir=/usr/lib64 --with-zlib-dir=/usr/lib64 --with-jpeg-dir=/usr/lib64 --with-png-dir=/usr/lib64 --with-config-file-path=/usr/local/php-5.2.0/lib/php.ini --with-mysql-sock=/var/lib/mysql/mysql.sock

make, make install are fine and libphp5 is added properly. phpinfo() gives me all of the above properly.

mysql is fine as well with a cactiuser, cacti database and priviliges. i ran the cacti.sql properly on the same. include/config.php also done properly

created cactiuser as a GNU/Linux user, gave it ownership of the log and rra directories.

crontab also done

Restart apache.

No problem.

Now, when i go to http://my_machine/cacti it yield a blank screen.

The interesting thing is

# sudo -u cactiuser php poller.php

Warning: array_merge(): Argument #2 is not an array in /usr/local/cacti/poller.php on line 61
Warning: Invalid argument supplied for foreach() in /usr/local/cacti/poller.php on line 120
12/20/2006 02:53:20 PM - SYSTEM STATS: Time:0.0045 Method:cmd.php Processes:1 Threads:N/A Hosts:0 HostsPerProcess:0 DataSources: RRDsProcessed:0
sh: -: command not found

something is going wrong but i don't know what. Any suggestions?

Any further information required?

Regards,

- vihan
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Did you enable session support from php.ini?
Reinhard
darthbator
Posts: 29
Joined: Wed Sep 27, 2006 7:02 pm

I'm having a very similar issue

Post by darthbator »

anything under the top level of /var/www/cacti just yields a blank screen. Here is my output from the poller

#> sudo -u cactiuser php poller.php
PHP Warning: mime_magic: type regex BEGIN[[:space:]]*[{] application/x-awk invalid in Unknown on line 0

Warning: main(/etc/cacti/debian.php): failed to open stream: Permission denied in /usr/share/cacti/site/include/config.php on line 34

Fatal error: main(): Failed opening required '/etc/cacti/debian.php' (include_path='.:/usr/share/php:/usr/share/pear') in /usr/share/cacti/site/include/config.php on line 34


anyone happen to have any ideas?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Did you check permission for that /etc/cacti/debian.php file? This is NOT part of standard cacti distribution; so please ask the debian packagers
Reinhard
Guillem
Posts: 9
Joined: Sat Dec 23, 2006 5:50 pm
Location: Barcelona, Spain

Post by Guillem »

Hi,

I've got the same problem as vihan.

I'm trying to run Cacti on Ubuntu Edgy Server with Apache 2.2.3 / PHP 5.2.0 / MySQL 5.0.27.

Any idea?

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

Post by rony »

Submit a bug to Debian bug tracker concerning this issue.
[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]
Guillem
Posts: 9
Joined: Sat Dec 23, 2006 5:50 pm
Location: Barcelona, Spain

Post by Guillem »

Hi all, finally I found the problem.

I was using the string "localhost" on database_hostname field for cacti's configuration file; when "localhost" is used, MySQL tries to use the unix socket. To solve this problem, you've got to change localhost by "127.0.0.1" or your local IP.

Note: I'm running Apache / PHP / MySQL in the same box, socket exists, is accessible for anybody and works for other applications as joomla.

Thanks!
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests