no graphs being displayed (PLEASE HELP TRIED EVERYTHING)
Moderators: Developers, Moderators
nope, my php -v shows ;
PHP 5.2.0 (cgi) (built: Jul 15 2007 10:26:26)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2006 Zend Technologies
my phpinfo page says;
PHP Version 5.1.2
build date: May 22 2007 20:16:33
My new problem is php5-common package overtakes my php source install, totally lost
PHP 5.2.0 (cgi) (built: Jul 15 2007 10:26:26)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2006 Zend Technologies
my phpinfo page says;
PHP Version 5.1.2
build date: May 22 2007 20:16:33
My new problem is php5-common package overtakes my php source install, totally lost
OKay, here is what I had to do to fix. Cacti does not work with php5 and libapache2-mod-php5 on debian based systems. Ubuntu will not let you install php4 with their package management, automatically goes to php5. Uninstalled ubuntu and installed debian etch because it will allow for php4 install.
apt-get install apache2 php4 libapache2-mod-php4
Works now, rra files are being written to rra directory and 'php poller.php' works, graphs are rendering. So cacti has some issues with php5 on debian based systems. Debian php5 package works fine with phpmyadmin, phpbb, webmin, etc, etc.. just cacti does not work. Not trying to slag cacti just merely posting so the next ubuntu/debian user will know.
apt-get install apache2 php4 libapache2-mod-php4
Works now, rra files are being written to rra directory and 'php poller.php' works, graphs are rendering. So cacti has some issues with php5 on debian based systems. Debian php5 package works fine with phpmyadmin, phpbb, webmin, etc, etc.. just cacti does not work. Not trying to slag cacti just merely posting so the next ubuntu/debian user will know.
Cacti does run with Ubuntu 6.06 but from my experience, the Ubuntu supplied package is broken and not worth the pain of trying to fix it.
These are the steps I took to get it working (WARNING: These are general instructions. Steps may be missing or incorrect as these were only general notes made while I went.)
1. Use apt-get to install all required packages onto the system.
2. Downloaded cacti-0.8.6j tarball from the cacti web site, plus all patches.
3. Untarred the cacti and patch tars into /usr/share/cacti/ and created symlink require to make Ubuntu's configuration happy.
For the latest patches and how to apply them, visit http://www.cacti.net/cactid_download_patches.php
3. Updated apache2's configuration to include a directory directive for cacti. (refer to apache and cacti documentation for instructions)
4. Follow the mysql database setup instructions in the Cacti manual: http://docs.cacti.net/node/2
5. Symlink /usr/share/cacti/site/rra to /var/lib/cacti/rra/ (this is where Ubuntu kept them. This could break security.)
6. Fix ADODB path in /etc/php5/cli/php.ini and /etc/php5/apache2/php.ini as mentioned by Ubuntu.
7. Directed logging to /var/log/cacti (done via the first log on screen of Cacti)
That more or less sums up how to get it working under Ubuntu. This doesn't help your situation but may be it will be useful to others.
These are the steps I took to get it working (WARNING: These are general instructions. Steps may be missing or incorrect as these were only general notes made while I went.)
1. Use apt-get to install all required packages onto the system.
Code: Select all
apt-get update
apt-get install cacti mysql-server xml-core deb-conf
apt-get remove cacti
3. Untarred the cacti and patch tars into /usr/share/cacti/ and created symlink require to make Ubuntu's configuration happy.
Code: Select all
ln -s /usr/share/cacti/cacti-0.8.6j /usr/share/cacti/site
3. Updated apache2's configuration to include a directory directive for cacti. (refer to apache and cacti documentation for instructions)
4. Follow the mysql database setup instructions in the Cacti manual: http://docs.cacti.net/node/2
5. Symlink /usr/share/cacti/site/rra to /var/lib/cacti/rra/ (this is where Ubuntu kept them. This could break security.)
Code: Select all
ln -s /var/lib/cacti/rra/ /usr/share/cacti/site/rra
Code: Select all
include_path = ".:/usr/share/php:/usr/share/php/adodb"
That more or less sums up how to get it working under Ubuntu. This doesn't help your situation but may be it will be useful to others.
Who is online
Users browsing this forum: No registered users and 3 guests