Multiple versions of PHP on Debian 7 Wheezy – how?

6 posts / 0 new
Last post
#1 Fri, 10/09/2015 - 10:21
datenimperator

Multiple versions of PHP on Debian 7 Wheezy – how?

Standard PHP on Debian 7 is pretty outdated, 5.4.45 currently. How can I install a newer version of PHP in such a way that

  • it'll be detected by Virtualmin 4.18
  • it does not interfere w/ the standard Debian PHP

Any hints are appreciated. Cheers

Christian

Fri, 10/09/2015 - 13:46
Welshman
Welshman's picture

Install buntu 14.04 and have PHP 5.5.9

Chaos Reigns Within, Reflect, Repent and Reboot, Order Shall Return.

Sat, 10/10/2015 - 01:13 (Reply to #2)
datenimperator

I'd prefer to stick with Debian. How does Virtualmin implement support for multiple PHP runtimes?

Mon, 10/12/2015 - 04:03
datenimperator

Anyone from Virtualmin willing to chime in? This is beginning to be a serious issue since eg phpMyAdmin requires a never PHP than Debian 7 contains.

Mon, 10/12/2015 - 11:33
andreychek

Howdy,

Well, you could always upgrade to Debian 8, it does contain a newer PHP version. Instructions for that process are here:

https://www.virtualmin.com/documentation/system/os/debian-wheezy-to-jess...

While Virtualmin does support having multiple PHP versions on Debian, it's no where near as simple as doing so in CentOS.

CentOS includes a special repository of packages designed to work side-by-side with those available in CentOS by default.

It's super-simple to set that up, in CentOS.

Debian doesn't have any PHP packages designed to work alongside existing ones... so unfortunately the only way to do this would be to build and maintain the PHP packages yourself.

My recommendation would probably be to upgrade to Debian 8, if you're simply looking for a newer PHP version.

However, note that you should still be able to run phpMyAdmin on your server, you'd just need to use one of the versions that works with your distro/version.

-Eric

Mon, 10/12/2015 - 14:00 (Reply to #5)
datenimperator

Thanks Eric. I'm aware that there's no way in Debian to have multiple releases of PHP installed directly from the standard repositories. However, I was wondering: Does Virtualmin simply query the package management for php to find separate releases, or does it search the path or else? Is it possible to have a self-installed PHP eg in /opt/php55 and make Virtualmin recognize it?

Any help is appreciated. Regards

Christian

Topic locked