Ubuntu 8.04 Cacti Plugin – Invalid PHP_SELF Path problem

Posted on August 20th, 2008


Once all of the files have been loaded into the appropriate directories there are a few needed edits to the /usr/share/cacti/site/include/global.php file.

Choose your favorite editor and make these changes:

At line 56:
$config[’url_path’] = ‘/’;
change it to:
$config[’url_path’] = ‘/cacti/’;

At line 104:
$config[“rra_path”] = $config[“base_path”].”/rra”;
change it to:
$config[“rra_path”] = “/var/lib/cacti/rra”;

At line 128 where it says:
$_SERVER[“PHP_SELF”]
change it to:
basename($_SERVER[“PHP_SELF”])

At line 201:
include($config[“library_path”].”/adodb/adodb.inc.php”);
change it to:
include(“/usr/share/php/adodb/adodb.inc.php”);

Thank you ‘diagnostix’ for the link, and thanks to whoever wrote the fix at:

http://www.askaboutphp.com/tutorials/42/cacti-ubuntu-cacti-plugin-invalid-php_self-path.html

Sincerely,

Kyle