I have installed the nmidPhpip plugin but i am getting the flowing error and jsqury plugin will get disabled automatically
Warning: fopen(/var/www/html/plugins/nmidPhpip/config.php): failed to open stream: Permission denied in /var/www/html/plugins/nmidPhpip/setup.php on line 215 Can't open file
Code: Select all
function nmidPhpip_show_tab () {
global $config, $user_auth_realms, $user_auth_realm_filenames, $nmidPhpip_tab;
include_once($config["base_path"] . "/plugins/nmidPhpip/config.php");
if ( read_config_option('nmidPhpip_showtab') )
{
$ourFileName = $config["base_path"] . "/plugins/nmidPhpip/config.php";
$fh = fopen($ourFileName, 'w') or die("Can't open file");
fwrite($fh, '<?php $nmidPhpip_tab = TRUE; ?>');
fclose($fh);
}
else
{
$ourFileName = $config["base_path"] . "/plugins/nmidPhpip/config.php";
[b][u]$fh = fopen($ourFileName, 'w') or die("Can't open file");[/u][/b]
fwrite($fh, '<?php $nmidPhpip_tab = FALSE; ?>');
fclose($fh);
}
i am using cacti 0.8.8a .
please
Cacti Version 0.8.8a
Cacti OS unix
SNMP Version NET-SNMP version: 5.5
RRDTool Version RRDTool 1.3.x
PHP Version 5.3.3
SPINE 0.8.8 Copyright 2002-2012 by The Cacti Group
Apache Version Apache/2.2.15 (CentOS)