Bug 209456 - net-mgmt/cacti: Missing required dependency on php56-mysql
Summary: net-mgmt/cacti: Missing required dependency on php56-mysql
Status: Closed Overcome By Events
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Kurt Jaeger
URL:
Keywords:
Depends on: 209809
Blocks:
  Show dependency treegraph
 
Reported: 2016-05-11 14:47 UTC by karl
Modified: 2016-05-28 20:12 UTC (History)
2 users (show)

See Also:
pi: maintainer-feedback+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description karl 2016-05-11 14:47:35 UTC
Current version of Cacti pkg (cacti-0.8.8g_1) doesn't appear to install / depend on 'php56-mysql':

'pkg info -d cacti' shows a dependancy on 'php56-mysqli'.

With a fresh 10.3-R system, doing 'pkg install cacti' (and then setting up Apache + PHP) results in a system that gives you a blank screen when you try to access the Cacti index.php screen.

Strangely - no errors are given or logged, but having traced through the code - this appears be to because 'php56-mysql' is not installed.

Installing 'php56-mysql' fixes the problem - visiting the index.php page after installing that package, cacti walks you through the '/install' setup - and then works.

-Karl
Comment 1 Daniel Austin 2016-05-11 17:24:48 UTC
(In reply to kpielorz from comment #0)
I'll take a look... there's no reason for anything to depend on php*-mysql these days (it doesn't even exist past 5.6!)
I'll see if I can find out why cacti isn't using mysqli.
Comment 2 Daniel Austin 2016-05-11 17:31:24 UTC
(In reply to kpielorz from comment #0)
it seems cacti's installer specifically checks for the mysql extension (even though it doesn't require it) *sigh*

I'll do a patch to sort that out.

If you don't want to wait, you can edit the file "/usr/local/share/cacti/install/index.php" on line 66 and change "mysql" to "mysqli"
Comment 3 karl 2016-05-11 19:06:50 UTC
(In reply to Daniel Austin from comment #2)

Hi,

Thanks - to get it working here I just installed the php56-mysql package. I did look at the code enough to see it was heading in the mysql direction - but it's quite busy / convoluted :-) so lucked out on just installing the extra pkg.

We'll probably be doing another clean install of this soon - so I'll get a chance to test it all again (and not have to install php56-mysql :)

Cheers,

-Karl
Comment 4 Daniel Austin 2016-05-28 13:03:09 UTC
This will be resolved once the following patch is committed:

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=209809
Comment 5 Kurt Jaeger freebsd_committer freebsd_triage 2016-05-28 20:12:29 UTC
Committed relevant change in r416066