ports/net-mgmt/cacti88/files/patch-install__index.php
Danilo G. Baio 9133f75cb0 Repocopy from net-mgmt/cacti (r416066) -> net-mgmt/cacti88
Web-driven graphing interface for RRDTool (Old version of net-mgmt/cacti)

New releases of Cacti are still unable to work with useful plugins like
"GPS Map" and "Network Weathermap".

While here, minor fixes and get improvements from the current port.

PR:		219685
Submitted by:	Vinicius Zavam <egypcio@googlemail.com>
Approved by:	garga (mentor)
Differential Revision:	https://reviews.freebsd.org/D11023
2017-06-06 00:47:24 +00:00

20 lines
908 B
PHP

--- install/index.php.orig 2016-03-06 23:26:59 UTC
+++ install/index.php
@@ -63,7 +63,7 @@ if ($old_cacti_version == $config["cacti
}
function verify_php_extensions() {
- $extensions = array("session", "sockets", "mysql", "xml");
+ $extensions = array("session", "sockets", "mysqli", "xml");
$ok = true;
$missing_extension = " <p style='font-family: Verdana, Arial; font-size: 16px; font-weight: bold; color: red;'>Error</p>
<p style='font-family: Verdana, Arial; font-size: 12px;'>The following PHP extensions are missing:</p><ul>";
@@ -267,7 +267,7 @@ $input["path_cactilog"]["description"] =
if (config_value_exists("path_cactilog")) {
$input["path_cactilog"]["default"] = read_config_option("path_cactilog");
} else {
- $input["path_cactilog"]["default"] = $config["base_path"] . "/log/cacti.log";
+ $input["path_cactilog"]["default"] = "/var/log/cacti/log";
}
/* SNMP Version */