From c793bfa67944ede77a3796b1f275fa193eaaec40 Mon Sep 17 00:00:00 2001 From: Morten Stevens Date: Jan 18 2017 15:37:36 +0000 Subject: Fixes for PHP7 --- diff --git a/cacti-mysqli.patch b/cacti-mysqli.patch new file mode 100644 index 0000000..019ae8c --- /dev/null +++ b/cacti-mysqli.patch @@ -0,0 +1,11 @@ +--- cacti-0.8.8h/include/config.php.orig 2016-02-07 20:26:54.000000000 +0100 ++++ cacti-0.8.8h/include/config.php 2017-01-18 15:51:15.979783797 +0100 +@@ -23,7 +23,7 @@ + */ + + /* make sure these values refect your actual database/host/user/password */ +-$database_type = "mysql"; ++$database_type = "mysqli"; + $database_default = "cacti"; + $database_hostname = "localhost"; + $database_username = "cactiuser"; diff --git a/cacti-php7.patch b/cacti-php7.patch new file mode 100644 index 0000000..f26510a --- /dev/null +++ b/cacti-php7.patch @@ -0,0 +1,163 @@ +diff -aur cacti/install/index.php cacti-PHP7/install/index.php +--- cacti/install/index.php 2016-02-07 20:26:54.000000000 +0100 ++++ cacti-PHP7/install/index.php 2016-02-24 22:33:10.713574142 +0100 +@@ -63,7 +63,7 @@ + } + + function verify_php_extensions() { +- $extensions = array("session", "sockets", "mysql", "xml"); ++ $extensions = array("session", "sockets", "pdo_mysql", "xml"); + $ok = true; + $missing_extension = "

Error

+

The following PHP extensions are missing: