3

I've scoured the internet for 4 hours now trying to find how to get newer PHP Versions on Webmin. No luck!

Ideally, how do you get PHP 5.5 on Webmin/Virtualmin? If this is not available yet the latest possible version

This is for ubuntu server. (They have a tutorial for cent-os but not .deb based)

4
  • Have you tried something like this? gregrickaby.com/how-to-install-lamp-on-ubuntu Commented Aug 29, 2013 at 4:54
  • I was under the impression this was not recommended due to: "One of the main advantages of using the installer over setting up Virtualmin manually is the APT or YUM repository that it sets up on your system. This includes Debian or RPM packages for Webmin, Usermin and the Virtualmin modules, plus modified versions of dependent programs like Apache and PHP." I just ran the virtualmin install script from a fresh installation. Everything seems to work perfectly except PHP is old. Commented Aug 29, 2013 at 9:44
  • I'm not sure, I guess you'll have to look into it further. What does webmin say about upgrading PHP? Commented Aug 29, 2013 at 9:48
  • They don't seem to say anything except to do with Cent-OS and yum files which I can't use on ubuntu server Commented Aug 29, 2013 at 9:49

2 Answers 2

1

It's not just about Webmin, it's about the underlying system. You can't have multiple versions of PHP at the same time in one action, especially with modules — it's not just about how to run apt-get install.

PHP can be used with apache as a module, or with a CGI interface. You can't have two PHP modules at the same time; you can have two php-cgi binaries, but they must have different names/locations, different locations for PHP modules, different locations for includes, etc. You have to build them manually and satisfy all the dependencies and structure. It's not that easy and It's not going to be easy to manage with virtualmin — you need to specify the PHP version for every virtualhost manually in the Apache configuration file, as SeeDeoubleYou did here: Multiple php versions simultaneously on Ubuntu.

You can easily run only one version of PHP with Webmin/Virtualmin, but not multiple.

2
  • What if I just want one version, the latest possible? Could I break webmin/virtualmin if I somehow override the supplied version? Commented Aug 29, 2013 at 9:52
  • 1
    Yes, it's possible and there are changes that shouldn't affect webmin. It isn't officially supported by Canonical, but there are community repositories with PHP 5.5 packages: launchpad.net/~zanfur/+archive/php5.5‎ and launchpad.net/~ondrej/+archive/php5
    – GioMac
    Commented Aug 29, 2013 at 9:55
1

Virtualmin has a guide on this exact issue https://www.virtualmin.com/documentation/web/multiplephp

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .