Hi,
On a fresh debian 8 jessie installation I encounter many problems.
Some I solved, and some I’m on it
-
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
-
Apache doesn’t match the first domain I created (domain = hostname)
Nee to modify from
<VirtualHost *:80>
to
Or to uncomment ServerName www.example.com
in
/etc/apache2/sites-enabled/000-default.conf
- 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