Problems on Debian 8 Jessie


On a fresh debian 8 jessie installation I encounter many problems.
Some I solved, and some I’m on it :wink:

  1. Install crash (with the official script launched just afterfresh debian install)
    => Need to before install mailman
    apt-get install mailman
    Once installation is ok, install virtualmin (with and the restart mailman. If not restarted cannot add a domain
    /etc/init.d/mailman restart

  2. Apache doesn’t match the first domain I created (domain = hostname)
    Nee to modify from
    <VirtualHost *:80>

Or to uncomment ServerName
in /etc/apache2/sites-enabled/000-default.conf

  1. Script install with php crash with message Checking PHP version …
    … done

Checking dependencies …
… failed : Could not work out exact PHP version

If I comment if ($wantver) {
local $phpv = &get_php_version($phpver || 5, $d);
if (!$phpv) {
##Commented =>
#push(@rv, “Could not work out exact PHP version”);
elsif ($phpv < $wantver) {
push(@rv, “phpMyAdmin requires PHP version $wantver or later”);


I got this error:
Checking PHP version …
… done

Checking dependencies …
… done

Fetching required files …
… done

PHP module mysql is required …
Enabling module in PHP configuration …
… done

Installing package php5-mysql ..

Installing package(s) with command apt-get -y --force-yes -f install php5-mysql …

Reading package lists…
Building dependency tree…
Reading state information…
php5-mysql is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

… install complete.

Installing package php-mysql ..

Installing package(s) with command apt-get -y --force-yes -f install php-mysql …

Reading package lists…
Building dependency tree…
Reading state information…
E: Unable to locate package php-mysql

… install failed!

.. failed to install!

All these problems seems to came from this function
# get_php_version(number|command, [&domain])

Given a PHP based version like 4 or 5, or a path to PHP, return the real

version number, like 5.2.

sub get_php_version
local ($cmd, $d) = @;
if ($cmd !~ /^//) {
local ($phpn) = grep { $
->[0] == $cmd }
return undef if (!$phpn);
$cmd = $phpn->[1] || &has_command(“php$cmd”) || &has_command(“php”);
local $out = &backquote_command("$cmd -v 2>&1 </dev/null");
if ($out =~ /PHP\s+([0-9.]+)/) {
return $1;
return undef;

Does it came from my side or maybe it’s too early and virtualmin is not aready fully compatible ?



Yikes, that’s a lot of errors you’re seeing! Virtualmin should actually install onto Debian 8 without any problems.

If there’s a problem with Virtualmin or any of it’s dependencies, we’ll definitely want to get that fixed up – but first a few questions about your system there –

Are you using a VPS, or a dedicated server?

Also, do you know if there’s any non-standard repositories that are enabled?

Lastly, which architecture are you using there?


Thank you for your reply.

deb jessie/updates main
deb-src jessie/updates main

jessie-updates, previously known as ‘volatile’

deb jessie-updates main
deb-src jessie-updates main

jessie-backports, previously on

deb jessie-backports main
deb-src jessie-backports main
deb virtualmin-jessie main
deb virtualmin-universal main

  • Architecture is x86_64 GNU/Linux

It seem other people have the mailman problem:

All seems to working correctly. But scripts won’t install I think because of php version detection

: php -v
PHP 5.6.7-1 (cli) (built: Mar 24 2015 12:30:15)
Copyright © 1997-2015 The PHP Group
Zend Engine v2.6.0, Copyright © 1998-2015 Zend Technologies
with Zend OPcache v7.0.4-dev, Copyright © 1999-2015, by Zend Technologies


Did my installation is not correct ?

Script install work on your side ?

If you want, I can provide root access, fresh install.


this sounds interesting. I am in the process to decide whether to use Ubuntu 14.04 or Debian 8 for a new dedicated server running Virtualmin. My Joomla supports currently PHP 5.5, but Debian 8 comes with 5.6.7. So any idea, how to get virtualmin running, so that debian 8 runs with php 5.5 instead of 5.6?I do not want to use debian 7, since it might be a problem with upgrade to debian 8 lateron…

So, any chance to run virtualmin on Debian 8 with PHP 5.5?

Thanks and best

I don’t want to diverge from the original topic here too much, as I’d like to help the original author resolve his Debian 8 issues – but I’ll mention that Debian 8 comes with PHP 5.6, there isn’t a supported way to downgrade that.

However, Joomla 3.x may work just fine on that PHP version, though earlier Joomla versions appear to have problems with it.

Also, it’s possible to perform in-place Debian and Ubuntu versions, though it does require some downtime to do so.

If you have additional questions, no problem, though you may want to start a new Forum thread for that. Thanks!


I’m having some problems reproducing the issues you’re seeing there.

I performed a fresh install of Debian 8, using the “netinstall.iso” CD image.

I didn’t install any packages by default other than OpenSSH.

After doing that, the ran smoothly and installed everything properly.

I was then able to install phpMyAdmin using the Install Script section of Virtualmin.

That means one of two things –

Option one, there was, at one point, a problem of some sort, and it’s now fixed :slight_smile:

Option two, there’s something unusual with your setup there that’s preventing Virtualmin from working properly.

How did you do the installation – was it using a Debian CD image of some sort?


I’m having the same problem as OP on a server that was upgraded to Jessie, the new servers I make go into Apache as *:80, which breaks them on a server that’s been using every vhost set to an IP forever. I have to force the Webmin side to allow me to manually manage vmin stuff.