Cara Install Virtualmin di VPS Ubuntu 16.04 LTS

Virtualmin adalah modul Webmin yang memungkinkan untuk manajemen yang luas dari server virtual pribadi. Anda akan dapat mengelola Apache, Nginx, PHP, DNS, MySQL, PostgreSQL, kotak surat, FTP, SSH, SSL, Subversion / Git repositori dan banyak lagi.

Ubuntu

Pada artikel ini saya akan membuat tutorial Install Virtualmin pada VPS Ubuntu 16.04.

Langkah pertama : - Akses VPS menggunakan console atau Putty. - Ubah Password root dan ubuntu

ubuntu@ip-172-31-39-39:~$ sudo passwd root
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
ubuntu@ip-172-31-39-39:~$ sudo passwd ubuntu
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
  • Gunakan hak akses root bash ubuntu@ip-172-31-39-39:~$ su - Password: root@ip-172-31-39-39:~#
  • Konfigurasi file /etc/ssh/sshd_config
root@ip-172-31-39-39:~# nano /etc/ssh/sshd_config
Ubah bagian
Change to no to disable tunnelled clear text passwords
PasswordAuthentication no
Menjadi yes
Change to no to disable tunnelled clear text passwords
PasswordAuthentication yes

root@ip-172-31-39-39:~# reboot
  • Setelah reboot selesai, masuk lagi ke console.
  • Setelah login, masuk sebagai root
  • Konfigurasi file /etc/hosts
root@ip-172-31-39-39:~# nano /etc/hosts
  GNU nano 2.5.3              File: /etc/hosts                        Modified

127.0.0.1 localhost
#alamat server kamu ( pastikan domain sudah di pointing alamat ip vps )
127.0.0.1 server2.iqbalbirrul.my.id
The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
  • Kemudian konfigurasi juga file /etc/hostname
root@ip-172-31-39-39:~# nano /etc/hostname
  GNU nano 2.5.3             File: /etc/hostname
hapus saja yang ini
ip-172-31-39-39
tambah hostname kamu
server2.iqbalbirrul.my.id

Langkah kedua : Virtualmin siap di Install - Download terlebih dahulu script installernya.

root@ip-172-31-39-39:~# wget http://software.virtualmin.com/gpl/scripts/install.sh -O /root/virtualmin-install.sh
  • Install Virtualmin
root@ip-172-31-39-39:~# sh /root/virtualmin-install.sh
Checking for Perl
found Perl at /usr/bin/perl

Welcome to the Virtualmin GPL installer, version 1.1.5

 WARNING:

 The installation is quite stable and functional when run on a freshly
 installed supported Operating System.

 If you have existing websites, email users, or if you manually installed
 Virtualmin via a Webmin 'wbm' module, you are likely to run into problems.
 Please read the Virtualmin Administrators Guide before proceeding if
 your system is not a freshly installed and supported OS.

 This script is not intended to update your system!  It should only be
 used to perform your initial Virtualmin installation.  If you have previously
 run the Virtualmin installer, you can perform upgrades and updates from within
 Virtualmin itself, or using your system's package manager. Once Virtualmin is
 installed, you never need to run this script again.

 The systems currently supported by install.sh are:
 CentOS/RHEL/Scientific Linux 7 on x86_64
 CentOS and RHEL 5-6 on i386 and x86_64
 Scientific Linux 6 on i386 and x86_64
 Debian 6, 7, and 8 on i386 and amd64
 Ubuntu 12.04 LTS, 14.04, and 16.04 LTS on i386 and amd64
 FreeBSD 7.0 and 8 on i386 and amd64

 If your OS is not listed above, this script will fail.  More details
 about the systems supported by the script can be found here:

   http://www.virtualmin.com/os-support.html

 Continue? (y/n) y
Checking for HTTP client...found /usr/bin/curl -s -O
Checking for perl...found /usr/bin/perl
Loading log4sh logging library...
INFO - Started installation log in /root/virtualmin-install.log
INFO - Checking for fully qualified hostname...
INFO - Hostname OK: fully qualified as ip-172-31-39-39.us-west-2.compute.internal
INFO - Installing serial number and license key into /etc/virtualmin-license
INFO - Loading OS selection library...
INFO - Download of http://software.virtualmin.com/lib/oschooser.pl Succeeded.
INFO - Loading OS list...
INFO - Download of http://software.virtualmin.com/lib/os_list.txt Succeeded.
INFO - Operating system name:    Ubuntu Linux
INFO - Operating system version: 16.04.1
INFO - Configuring package manager for Ubuntu Linux 16.04.1...
INFO - Enabling universe repositories, if not already available...
INFO - Disabling cdrom repositories...
Hit:1 http://us-west-2.ec2.archive.ubuntu.com/ubuntu xenial InRelease
Get:2 http://us-west-2.ec2.archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB]
Get:3 http://us-west-2.ec2.archive.ubuntu.com/ubuntu xenial-backports InRelease [102 kB]
Get:4 http://us-west-2.ec2.archive.ubuntu.com/ubuntu xenial/main Sources [868 kB]
Get:5 http://us-west-2.ec2.archive.ubuntu.com/ubuntu xenial/restricted Sources [4808 B]
Get:6 http://us-west-2.ec2.archive.ubuntu.com/ubuntu xenial/universe Sources [7728 kB]
Get:7 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB]
Get:8 http://us-west-2.ec2.archive.ubuntu.com/ubuntu xenial/multiverse Sources [179 kB]
Get:9 http://us-west-2.ec2.archive.ubuntu.com/ubuntu xenial-updates/main Sources [220 kB]
Get:10 http://us-west-2.ec2.archive.ubuntu.com/ubuntu xenial-updates/restricted Sources [1800 B]
Get:11 http://us-west-2.ec2.archive.ubuntu.com/ubuntu xenial-updates/universe Sources [121 kB]
Get:12 http://us-west-2.ec2.archive.ubuntu.com/ubuntu xenial-updates/multiverse Sources [4552 B]
Get:13 http://us-west-2.ec2.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages [459 kB]
Get:14 http://us-west-2.ec2.archive.ubuntu.com/ubuntu xenial-updates/main Translation-en [182 kB]
Get:15 http://us-west-2.ec2.archive.ubuntu.com/ubuntu xenial-updates/restricted amd64 Packages [6568 B]
Get:16 http://us-west-2.ec2.archive.ubuntu.com/ubuntu xenial-updates/restricted Translation-en [2020 B]
Get:17 http://us-west-2.ec2.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages [387 kB]
Get:18 http://us-west-2.ec2.archive.ubuntu.com/ubuntu xenial-updates/universe Translation-en [143 kB]
Get:19 http://us-west-2.ec2.archive.ubuntu.com/ubuntu xenial-updates/multiverse amd64 Packages [8080 B]
Get:20 http://us-west-2.ec2.archive.ubuntu.com/ubuntu xenial-updates/multiverse Translation-en [3580 B]
Get:21 http://us-west-2.ec2.archive.ubuntu.com/ubuntu xenial-backports/main Sources [3168 B]
Get:22 http://us-west-2.ec2.archive.ubuntu.com/ubuntu xenial-backports/universe Sources [1868 B]
Get:23 http://us-west-2.ec2.archive.ubuntu.com/ubuntu xenial-backports/main amd64 Packages [4404 B]
Get:24 http://us-west-2.ec2.archive.ubuntu.com/ubuntu xenial-backports/main Translation-en [3124 B]
Get:25 http://us-west-2.ec2.archive.ubuntu.com/ubuntu xenial-backports/universe amd64 Packages [2412 B]
Get:26 http://us-west-2.ec2.archive.ubuntu.com/ubuntu xenial-backports/universe Translation-en [1216 B]
Get:27 http://security.ubuntu.com/ubuntu xenial-security/main Sources [55.8 kB]
Get:28 http://security.ubuntu.com/ubuntu xenial-security/restricted Sources [1800 B]
Get:29 http://security.ubuntu.com/ubuntu xenial-security/universe Sources [18.5 kB]
Get:30 http://security.ubuntu.com/ubuntu xenial-security/multiverse Sources [1144 B]
Get:31 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages [202 kB]
Get:32 http://security.ubuntu.com/ubuntu xenial-security/main Translation-en [85.0 kB]
Get:33 http://security.ubuntu.com/ubuntu xenial-security/restricted amd64 Packages [6568 B]
Get:34 http://security.ubuntu.com/ubuntu xenial-security/restricted Translation-en [2020 B]
Get:35 http://security.ubuntu.com/ubuntu xenial-security/universe amd64 Packages [72.1 kB]
Get:36 http://security.ubuntu.com/ubuntu xenial-security/universe Translation-en [39.6 kB]
Get:37 http://security.ubuntu.com/ubuntu xenial-security/multiverse amd64 Packages [2744 B]
Get:38 http://security.ubuntu.com/ubuntu xenial-security/multiverse Translation-en [1232 B]
Fetched 11.1 MB in 2s (4305 kB/s)
Reading package lists... Done
INFO - Cleaning up apt headers and packages, so we can start fresh...
INFO -
INFO - Download of http://software.virtualmin.com/lib/apt.conf.noninteractive Succeeded.
INFO - Installing Webmin and Virtualmin package signing keys...
INFO - Download of http://software.virtualmin.com/lib/RPM-GPG-KEY-virtualmin Succeeded.
INFO - Download of http://software.virtualmin.com/lib/RPM-GPG-KEY-webmin Succeeded.
INFO - OK
INFO - OK
INFO - Hit:1
INFO - Removing Debian standard Webmin package, if they exist...
INFO - Removing Debian apache packages...
INFO - Installing dependencies using command: /usr/bin/apt-get --config-file apt.conf.noninteractive -y --force-yes install bsdutils postfix postfix-pcre webmin usermin ruby libxml-simple-perl libcrypt-ssleay-perl unzip zip libfcgi-dev bind9 spamassassin spamc procmail procmail-wrapper libnet-ssleay-perl libpg-perl libdbd-pg-perl libdbd-mysql-perl quota iptables openssl python mailman subversion ruby irb rdoc ri mysql-server mysql-client mysql-common postgresql postgresql-client awstats webalizer dovecot-common dovecot-imapd dovecot-pop3d proftpd libcrypt-ssleay-perl awstats clamav-base clamav-daemon clamav clamav-freshclam clamav-docs clamav-testfiles libapache2-mod-fcgid apache2-suexec-custom scponly apache2 apache2-doc libapache2-svn libsasl2-2 libsasl2-modules sasl2-bin php-pear php php-cgi libapache2-mod-php php-mysql ntpdate
...in progress, please wait...
Extracting templates from packages: 100%
Extracting templates from packages: 100%
.................................................................................................................................................................................................................W.: --force-yes is deprecated, use one of the options starting with --allow instead.

INFO - /usr/bin/apt-get --config-file apt.conf.noninteractive -y --force-yes install bsdutils postfix postfix-pcre webmin usermin ruby libxml-simple-perl libcrypt-ssleay-perl unzip zip libfcgi-dev bind9 spamassassin spamc procmail procmail-wrapper libnet-ssleay-perl libpg-perl libdbd-pg-perl libdbd-mysql-perl quota iptables openssl python mailman subversion ruby irb rdoc ri mysql-server mysql-client mysql-common postgresql postgresql-client awstats webalizer dovecot-common dovecot-imapd dovecot-pop3d proftpd libcrypt-ssleay-perl awstats clamav-base clamav-daemon clamav clamav-freshclam clamav-docs clamav-testfiles libapache2-mod-fcgid apache2-suexec-custom scponly apache2 apache2-doc libapache2-svn libsasl2-2 libsasl2-modules sasl2-bin php-pear php php-cgi libapache2-mod-php php-mysql ntpdate: Succeeded.
INFO -  Succeeded.
INFO - Installing Virtualmin and all related packages now using the command:
INFO - /usr/bin/apt-get --config-file apt.conf.noninteractive -y --force-yes install virtualmin-base
...in progress, please wait...
................................................W: --force-yes is deprecated, use one of the options starting with --allow instead.

INFO - /usr/bin/apt-get --config-file apt.conf.noninteractive -y --force-yes install virtualmin-base: Succeeded.
insserv: warning: current start runlevel(s) (empty) of script `mailman' overrides LSB defaults (2 3 4 5).
insserv: warning: current stop runlevel(s) (2 3 4 5) of script `mailman' overrides LSB defaults (empty).
update-rc.d: error: cannot find a LSB script for postgresql-8.3
Failed to stop postgresql-8.3.service: Unit postgresql-8.3.service not loaded.
update-rc.d: error: cannot find a LSB script for postgresql-8.4
Failed to stop postgresql-8.4.service: Unit postgresql-8.4.service not loaded.
insserv: warning: current start runlevel(s) (empty) of script `spamassassin' overrides LSB defaults (2 3 4 5).
insserv: warning: current stop runlevel(s) (0 1 2 3 4 5 6) of script `spamassassin' overrides LSB defaults (0 1 6).
insserv: warning: current start runlevel(s) (empty) of script `clamav-daemon' overrides LSB defaults (2 3 4 5).
insserv: warning: current stop runlevel(s) (0 1 2 3 4 5 6) of script `clamav-daemon' overrides LSB defaults (0 1 6).
INFO - Installing Virtualmin modules:
INFO - /usr/bin/apt-get --config-file apt.conf.noninteractive -y --force-yes install webmin-security-updates webmin-virtual-server webmin-virtual-server-theme webmin-virtualmin-awstats webmin-virtualmin-htpasswd
...in progress, please wait...
....W: --force-yes is deprecated, use one of the options starting with --allow instead.

INFO - /usr/bin/apt-get --config-file apt.conf.noninteractive -y --force-yes install webmin-security-updates webmin-virtual-server webmin-virtual-server-theme webmin-virtualmin-awstats webmin-virtualmin-htpasswd: Succeeded.
31 Jan 14:04:09 ntpdate[18069]: adjust time server 91.189.91.157 offset 0.000499 sec
Enabling module suexec.
To activate the new configuration, you need to run:
  service apache2 restart
Enabling module actions.
To activate the new configuration, you need to run:
  service apache2 restart
Module fcgid already enabled
Considering dependency setenvif for ssl:
Module setenvif already enabled
Considering dependency mime for ssl:
Module mime already enabled
Considering dependency socache_shmcb for ssl:
Module socache_shmcb already enabled
Module ssl already enabled
[Tue Jan 31 14:04:09.609049 2017] [so:warn] [pid 18102] AH01574: module dav_module is already loaded, skipping
Enabling module cgi.
To activate the new configuration, you need to run:
  service apache2 restart
INFO - Checking for updates to Virtualmin-related packages...
...in progress, please wait...
.
INFO - /usr/bin/apt-get --config-file apt.conf.noninteractive -y --force-yes install bsdutils postfix postfix-pcre webmin usermin ruby libxml-simple-perl libcrypt-ssleay-perl unzip zip libfcgi-dev bind9 spamassassin spamc procmail procmail-wrapper libnet-ssleay-perl libpg-perl libdbd-pg-perl libdbd-mysql-perl quota iptables openssl python mailman subversion ruby irb rdoc ri mysql-server mysql-client mysql-common postgresql postgresql-client awstats webalizer dovecot-common dovecot-imapd dovecot-pop3d proftpd libcrypt-ssleay-perl awstats clamav-base clamav-daemon clamav clamav-freshclam clamav-docs clamav-testfiles libapache2-mod-fcgid apache2-suexec-custom scponly apache2 apache2-doc libapache2-svn libsasl2-2 libsasl2-modules sasl2-bin php-pear php php-cgi libapache2-mod-php php-mysql ntpdate: Succeeded.
INFO - Updating SpamAssassin rules...
INFO - Rule updates done

Selesai, sekarang buka Virtualmin di browser https://yourdomain.com:10000 atau https://alamatip:10000 Lalu login dengan user root/ubuntu dan juga password yang sudah dibuat tadi.

Virtualmin Login

Sekian semoga bermanfaat :).