Cacti package is incompatible with PHP7 on Xenial

Bug #1571432 reported by thetravellor
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cacti (Ubuntu)
Fix Released
High
Nish Aravamudan

Bug Description

The Cacti web interfaces fails the Cacti install in a default Xenial install with all dependancies installed via apt-get.

PHP7 no longer provides the mysql extension, however Cacti exepects it and Cacti install fails.

This can be patched by stopping it from looking for the extension, but there appear to be other errors as well due to incompatibility between Cacti and PHP7.

Easily reproduced by installing Cacti on Xenial and observing what happens.

http://<servername>/cacti/install/

Error

The following PHP extensions are missing:

    mysql

Please install those PHP extensions and retry

Revision history for this message
thetravellor (cooperstephenjames) wrote :
Revision history for this message
Paul Gevers (paul-climbing) wrote : Re: [Bug 1571432] [NEW] Cacti package is incompatible with PHP7 on Xenial

Thank you for taking the time to report this bug and helping to make
Ubuntu better. Please execute the following command only once, as it
will automatically gather debugging information, in a terminal:
apport-collect 1571432

When reporting bugs in the future please use apport by using
'ubuntu-bug' and the name of the package affected. You can learn more
about this functionality at https://wiki.ubuntu.com/ReportingBugs.

Additionally, could you please provide the content (but remove/obscure
the password) of your /etc/cacti/debian.php

I have a hunch that either you upgraded cacti, but not the configuration
(the driver needs to be switched from mysql to mysqli) or that there is
something specific in the install script, because the rest of cacti is
confirmed to work with php7 provided you use the mysqli driver. In
Debian/Ubuntu, no other changes were needed to switch to php7.

Paul

Changed in cacti (Ubuntu):
status: New → Confirmed
importance: Undecided → High
Revision history for this message
Paul Gevers (paul-climbing) wrote :

Fix is simple: change mysql to mysqli in install/index.php on line 66.

Revision history for this message
Nish Aravamudan (nacc) wrote :
Nish Aravamudan (nacc)
Changed in cacti (Ubuntu):
assignee: nobody → Nish Aravamudan (nacc)
status: Confirmed → In Progress
Steve Langasek (vorlon)
Changed in cacti (Ubuntu):
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package cacti - 0.8.8f+ds1-4ubuntu4

---------------
cacti (0.8.8f+ds1-4ubuntu4) xenial; urgency=medium

  * debian/patches/11_1571432_mysqli.patch: Use mysqli extension not
    mysql with PHP7.0. Closes LP: #1571432.

 -- Nishanth Aravamudan <email address hidden> Mon, 18 Apr 2016 13:54:08 -0700

Changed in cacti (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.