0

We use phpMyAdmin on a couple of servers running Ubuntu 18.04. Ubuntu ships with PHP 7.2, the latest phpMyAdmin version from the official repositories is 4.6.6, which is not compatible with PHP 7.2.

phpMyAdmin does not seem to have an official package repository, all repositories I have found seem not to serve the latest version either.

The only workarounds I have found so far:

  • Installing PHP 7.1 in addition to PHP 7.2 from ppa:ondrej/php and have phpMyAdmin use the older version
  • Manually overwriting the phpMyAdmin files that come with the official package with the latest files

Both seem to be problematic in terms of maintaining the software on the servers. I was wondering how others solve this problem.

closed as primarily opinion-based by Jeff Schaller, RalfFriedl, Thomas Dickey, schily, Isaac Nov 13 '18 at 21:44

Many good questions generate some degree of opinion based on expert experience, but answers to this question will tend to be almost entirely based on opinions, rather than facts, references, or specific expertise. If this question can be reworded to fit the rules in the help center, please edit the question.

  • Make your own fresh packages. – Ipor Sircer Nov 12 '18 at 12:17
  • I suppose it comes down to your definition of the word "maintainable". Do you want the vendor (PHP directly or Ubuntu the distribution) to maintain it, or are you willing to maintain it? – Jeff Schaller Nov 12 '18 at 12:30
  • I might have phrased this badly. I was interested in best practices concerning latest versions of phpMyAdmin, while still being able to have stable production systems (which are secure, upgradeable, etc.). I was that others have found practical solutions to the compatibility problems. – taalas Nov 12 '18 at 13:02
  • "stable" is only a word which means all packages were tested by thousand of users and nobody notices any errors/bugs. When you install a non-tested new version of any program, then your distro is not 100% stable anymore by definition. – Ipor Sircer Nov 12 '18 at 18:21
1

If Ubuntu is shipping packages that are not compatible with each other, that is a bug. It has apparently been reported, but unfortunately there is not yet an official fix.

PHP does have its own packaging system, composer, if you want to try and use that instead of system packages as PHPMyAdmin seems to maintain composer packages.

Not the answer you're looking for? Browse other questions tagged or ask your own question.