Problems on Debian 8 Jessie

8 posts / 0 new
Last post
#1 Mon, 05/18/2015 - 17:01
Chris sutu

Problems on Debian 8 Jessie

Hi,

On a fresh debian 8 jessie installation I encounter many problems. Some I solved, and some I'm on it ;-)

1) Install crash (with the official install.sh script launched just afterfresh debian install) => Need to before install mailman apt-get install mailman Once installation is ok, install virtualmin (with install.sh) 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> to <VirtualHost X.X.X.X:80>

Or to uncomment

        ServerName www.example.com

in /etc/apache2/sites-enabled/000-default.conf

3) 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");
                }
        }

in /usr/share/webmin/virtual-server/scripts/phpmyadmin.pl

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 }
                             &list_available_php_versions($d);
        return undef if (!$phpn);
        $cmd = $phpn->[1] || &has_command("php$cmd") || &has_command("php");
        }
&clean_environment();
local $out = &backquote_command("$cmd -v 2>&1 </dev/null");
&reset_environment();
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 ?

Best, Chris

Mon, 05/18/2015 - 23:34
andreychek

Howdy,

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?

-Eric

Tue, 05/19/2015 - 02:36
Chris sutu

Thank you for your reply.

  • It's a fully dedicated server.
  • There is no non-standards repos (fresh debian on original kernel)
: cat /etc/apt/sources.list
deb http://debian.mirrors.ovh.net/debian/ jessie main
deb-src http://debian.mirrors.ovh.net/debian/ jessie main

deb http://security.debian.org/ jessie/updates main
deb-src http://security.debian.org/ jessie/updates main

# jessie-updates, previously known as 'volatile'
deb http://debian.mirrors.ovh.net/debian/ jessie-updates main
deb-src http://debian.mirrors.ovh.net/debian/ jessie-updates main

# jessie-backports, previously on backports.debian.org
deb http://debian.mirrors.ovh.net/debian/ jessie-backports main
deb-src http://debian.mirrors.ovh.net/debian/ jessie-backports main
deb http://software.virtualmin.com/gpl/debian/ virtualmin-jessie main
deb http://software.virtualmin.com/gpl/debian/ virtualmin-universal main
  • Architecture is x86_64 GNU/Linux

It seem other people have the mailman problem: https://www.virtualmin.com/node/37004

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 (c) 1997-2015 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2015 Zend Technologies
    with Zend OPcache v7.0.4-dev, Copyright (c) 1999-2015, by Zend Technologies

Chris

Wed, 05/20/2015 - 04:18
Chris sutu

Did my installation is not correct ?

Script install work on your side ?

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

Best, CHris

Wed, 05/20/2015 - 05:31
just_me

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

Wed, 05/20/2015 - 09:39 (Reply to #5)
andreychek

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!

-Eric

Fri, 05/22/2015 - 11:53
andreychek

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 install.sh 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 :-)

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?

-Eric

Sun, 05/24/2015 - 01:22
SeanieB

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.

Topic locked