Test Block Top

The Blog...
Articles, Tips & Trick and Other Interesting Information...
Tampilkan postingan dengan label Webmin. Tampilkan semua postingan
Tampilkan postingan dengan label Webmin. Tampilkan semua postingan
23 April 2012

Install Webmin Pada CentOS 6.2

Webmin merupakan web interface yang digunakan oleh sistem administrator pada OS Unix. Webmin dapat diakses menggunakan hampir semua web browser yang ada saat ini, dengan syarat browser harus sudah support tabel, form dan Java (Java untuk module File Manager). Dengan menggunakan webmin, sistem administrator dapat setup user account, DNS, Apache, Database dan lain sebagainya.

Install webmin sangatlah mudah. Berikut panduan singkat install Webmin (OS menggunakan CentOS 6.2):

Install Package "perl-Net-SSLeay" menggunakan command:


yum -y install perl-Net-SSLeay



[root@server5 ~]# yum -y install perl-Net-SSLeay
Loaded plugins: fastestmirror
base                                                     | 3.7 kB     00:00
http://centos.biz.net.id/6.2/os/x86_64/repodata/ceb77f94eaccd4b2ec5546135bdd06692393e7deb6e8aaf86d6f479b84bec06b-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 18 - "transfer closed with 4683564 bytes remaining to read"
Trying other mirror.
base/primary_db                                          | 4.5 MB     00:19
extras                                                   | 3.5 kB     00:00
http://centos.biz.net.id/6.2/extras/x86_64/repodata/b1cda4f460b583687346e0a7ce7bed67049498506434134bdd172f7b59f2b271-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 403"
Trying other mirror.
extras/primary_db                                        | 6.3 kB     00:00
updates                                                  | 3.5 kB     00:00
updates/primary_db                                       | 2.9 MB     00:12
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package perl-Net-SSLeay.x86_64 0:1.35-9.el6 will be installed
--> Processing Dependency: perl >= 5.005_03 for package: perl-Net-SSLeay-1.35-9.el6.x86_64
--> Processing Dependency: perl(:MODULE_COMPAT_5.10.1) for package: perl-Net-SSLeay-1.35-9.el6.x86_64
--> Processing Dependency: perl(Errno) for package: perl-Net-SSLeay-1.35-9.el6.x86_64
--> Processing Dependency: perl(strict) for package: perl-Net-SSLeay-1.35-9.el6.x86_64
--> Processing Dependency: perl(AutoLoader) for package: perl-Net-SSLeay-1.35-9.el6.x86_64
--> Processing Dependency: perl(vars) for package: perl-Net-SSLeay-1.35-9.el6.x86_64
--> Processing Dependency: perl(Exporter) for package: perl-Net-SSLeay-1.35-9.el6.x86_64
--> Processing Dependency: perl(Socket) for package: perl-Net-SSLeay-1.35-9.el6.x86_64
--> Processing Dependency: perl(Carp) for package: perl-Net-SSLeay-1.35-9.el6.x86_64
--> Running transaction check
---> Package perl.x86_64 4:5.10.1-119.el6_1.1 will be installed
--> Processing Dependency: perl-libs = 4:5.10.1-119.el6_1.1 for package: 4:perl-5.10.1-119.el6_1.1.x86_64
--> Processing Dependency: perl-libs for package: 4:perl-5.10.1-119.el6_1.1.x86_64
--> Processing Dependency: perl(Pod::Simple) for package: 4:perl-5.10.1-119.el6_1.1.x86_64
--> Processing Dependency: perl(version) for package: 4:perl-5.10.1-119.el6_1.1.x86_64
--> Processing Dependency: perl(Module::Pluggable) for package: 4:perl-5.10.1-119.el6_1.1.x86_64
--> Processing Dependency: libperl.so()(64bit) for package: 4:perl-5.10.1-119.el6_1.1.x86_64
--> Running transaction check
---> Package perl-Module-Pluggable.x86_64 1:3.90-119.el6_1.1 will be installed
---> Package perl-Pod-Simple.x86_64 1:3.13-119.el6_1.1 will be installed
--> Processing Dependency: perl(Pod::Escapes) >= 1.04 for package: 1:perl-Pod-Simple-3.13-119.el6_1.1.x86_64
---> Package perl-libs.x86_64 4:5.10.1-119.el6_1.1 will be installed
---> Package perl-version.x86_64 3:0.77-119.el6_1.1 will be installed
--> Running transaction check
---> Package perl-Pod-Escapes.x86_64 1:1.04-119.el6_1.1 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package                   Arch       Version                    Repository
                                                                           Size
================================================================================
Installing:
 perl-Net-SSLeay           x86_64     1.35-9.el6                 base     173 k
Installing for dependencies:
 perl                      x86_64     4:5.10.1-119.el6_1.1       base      10 M
 perl-Module-Pluggable     x86_64     1:3.90-119.el6_1.1         base      37 k
 perl-Pod-Escapes          x86_64     1:1.04-119.el6_1.1         base      30 k
 perl-Pod-Simple           x86_64     1:3.13-119.el6_1.1         base     209 k
 perl-libs                 x86_64     4:5.10.1-119.el6_1.1       base     575 k
 perl-version              x86_64     3:0.77-119.el6_1.1         base      49 k

Transaction Summary
================================================================================
Install       7 Package(s)

Total download size: 11 M
Installed size: 36 M
Downloading Packages:
(1/7): perl-5.10.1-119.el6_1.1.x86_64.rpm                |  10 MB     00:44
(2/7): perl-Module-Pluggable-3.90-119.el6_1.1.x86_64.rpm |  37 kB     00:00
(3/7): perl-Net-SSLeay-1.35-9.el6.x86_64.rpm             | 173 kB     00:00
(4/7): perl-Pod-Escapes-1.04-119.el6_1.1.x86_64.rpm      |  30 kB     00:00
(5/7): perl-Pod-Simple-3.13-119.el6_1.1.x86_64.rpm       | 209 kB     00:00
(6/7): perl-libs-5.10.1-119.el6_1.1.x86_64.rpm           | 575 kB     00:02
(7/7): perl-version-0.77-119.el6_1.1.x86_64.rpm          |  49 kB     00:00
--------------------------------------------------------------------------------
Total                                           232 kB/s |  11 MB     00:49
warning: rpmts_HdrFromFdno: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
Importing GPG key 0xC105B9DE:
 Userid : CentOS-6 Key (CentOS 6 Official Signing Key) 
 Package: centos-release-6-2.el6.centos.7.x86_64 (@anaconda-CentOS-201112091719.x86_64/6.2)
 From   : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : 1:perl-Pod-Escapes-1.04-119.el6_1.1.x86_64                   1/7
  Installing : 1:perl-Module-Pluggable-3.90-119.el6_1.1.x86_64              2/7
  Installing : 4:perl-libs-5.10.1-119.el6_1.1.x86_64                        3/7
  Installing : 1:perl-Pod-Simple-3.13-119.el6_1.1.x86_64                    4/7
  Installing : 3:perl-version-0.77-119.el6_1.1.x86_64                       5/7
  Installing : 4:perl-5.10.1-119.el6_1.1.x86_64                             6/7
  Installing : perl-Net-SSLeay-1.35-9.el6.x86_64                            7/7

Installed:
  perl-Net-SSLeay.x86_64 0:1.35-9.el6

Dependency Installed:
  perl.x86_64 4:5.10.1-119.el6_1.1
  perl-Module-Pluggable.x86_64 1:3.90-119.el6_1.1
  perl-Pod-Escapes.x86_64 1:1.04-119.el6_1.1
  perl-Pod-Simple.x86_64 1:3.13-119.el6_1.1
  perl-libs.x86_64 4:5.10.1-119.el6_1.1
  perl-version.x86_64 3:0.77-119.el6_1.1

Complete!
[root@server5 ~]#

Download & Install Webmin Distribution Package



[root@server5 ~]# cd /usr/src
[root@server5 src]# wget http://prdownloads.sourceforge.net/webadmin/webmin-1.580-1.noarch.rpm
--2012-04-21 21:06:20--  http://prdownloads.sourceforge.net/webadmin/webmin-1.580-1.noarch.rpm
Resolving prdownloads.sourceforge.net... 216.34.181.59
Connecting to prdownloads.sourceforge.net|216.34.181.59|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: http://downloads.sourceforge.net/project/webadmin/webmin/1.580/webmin-1.580-1.noarch.rpm [following]
--2012-04-21 21:06:20--  http://downloads.sourceforge.net/project/webadmin/webmin/1.580/webmin-1.580-1.noarch.rpm
Resolving downloads.sourceforge.net... 216.34.181.59
Reusing existing connection to prdownloads.sourceforge.net:80.
HTTP request sent, awaiting response... 302 Found
Location: http://nchc.dl.sourceforge.net/project/webadmin/webmin/1.580/webmin-1.580-1.noarch.rpm [following]
--2012-04-21 21:06:21--  http://nchc.dl.sourceforge.net/project/webadmin/webmin/1.580/webmin-1.580-1.noarch.rpm
Resolving nchc.dl.sourceforge.net... 211.79.60.17, 2001:e10:ffff:1f02::17
Connecting to nchc.dl.sourceforge.net|211.79.60.17|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 17112780 (16M) [application/octet-stream]
Saving to: âwebmin-1.580-1.noarch.rpmâ

100%[============================================================================>] 17,112,780   235K/s   in 74s

2012-04-21 21:07:36 (225 KB/s) - âwebmin-1.580-1.noarch.rpmâ

[root@server5 src]# rpm -i webmin-1.580-1.noarch.rpm
warning: webmin-1.580-1.noarch.rpm: Header V3 DSA/SHA1 Signature, key ID 11f63c51: NOKEY
Operating system is CentOS Linux
Webmin install complete. You can now login to https://server5:10000/
as root with your root password.
[root@server5 src]#

Jika CentOS 6.2 anda sebelumnya diinstall dengan minimal installation, terlebih dahulu sebelum webmin dapat diakses pada web browser, apache webserver harus terinstall dan aktif. Install Group Apache & MySQL databases dengan menggunakan command berikut:

yum -y groupinstall "Web Server" "MySQL Database"



[root@server5 src]# yum -y groupinstall "Web Server" "MySQL Database"
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: centos.biz.net.id
 * extras: centos.biz.net.id
 * updates: mirror.averse.net
Setting up Group Process
Checking for new repos for mirrors
http://centos.biz.net.id/6.2/os/x86_64/repodata/badeded316fc87571779d92c5cde816fdc357646b84cb191c4611e05c981ffa1-c6-x86_64-comps.xml.gz: [Errno 14] PYCURL ERROR 18 - "transfer closed with 203863 bytes remaining to read"
Trying other mirror.
base/group_gz                                            | 199 kB     00:00
Warning: Group MySQL Database does not exist.
Resolving Dependencies
--> Running transaction check
---> Package crypto-utils.x86_64 0:2.4.1-24.2.el6 will be installed
--> Processing Dependency: perl(Newt) for package: crypto-utils-2.4.1-24.2.el6.x86_64
---> Package httpd.x86_64 0:2.2.15-15.el6.centos.1 will be installed
--> Processing Dependency: httpd-tools = 2.2.15-15.el6.centos.1 for package: httpd-2.2.15-15.el6.centos.1.x86_64
--> Processing Dependency: /etc/mime.types for package: httpd-2.2.15-15.el6.centos.1.x86_64
--> Processing Dependency: apr-util-ldap for package: httpd-2.2.15-15.el6.centos.1.x86_64
--> Processing Dependency: libaprutil-1.so.0()(64bit) for package: httpd-2.2.15-15.el6.centos.1.x86_64
--> Processing Dependency: libapr-1.so.0()(64bit) for package: httpd-2.2.15-15.el6.centos.1.x86_64
---> Package httpd-manual.noarch 0:2.2.15-15.el6.centos.1 will be installed
---> Package mod_perl.x86_64 0:2.0.4-10.el6 will be installed
--> Processing Dependency: perl(ExtUtils::MakeMaker) for package: mod_perl-2.0.4-10.el6.x86_64
--> Processing Dependency: perl(BSD::Resource) for package: mod_perl-2.0.4-10.el6.x86_64
---> Package mod_ssl.x86_64 1:2.2.15-15.el6.centos.1 will be installed
---> Package mod_wsgi.x86_64 0:3.2-1.el6 will be installed
---> Package webalizer.x86_64 0:2.21_02-3.3.el6 will be installed
--> Processing Dependency: libgd.so.2()(64bit) for package: webalizer-2.21_02-3.3.el6.x86_64
--> Processing Dependency: libpng12.so.0()(64bit) for package: webalizer-2.21_02-3.3.el6.x86_64
--> Running transaction check
---> Package apr.x86_64 0:1.3.9-3.el6_1.2 will be installed
---> Package apr-util.x86_64 0:1.3.9-3.el6_0.1 will be installed
---> Package apr-util-ldap.x86_64 0:1.3.9-3.el6_0.1 will be installed
---> Package gd.x86_64 0:2.0.35-10.el6 will be installed
--> Processing Dependency: libXpm.so.4()(64bit) for package: gd-2.0.35-10.el6.x86_64
--> Processing Dependency: libX11.so.6()(64bit) for package: gd-2.0.35-10.el6.x86_64
--> Processing Dependency: libfontconfig.so.1()(64bit) for package: gd-2.0.35-10.el6.x86_64
--> Processing Dependency: libfreetype.so.6()(64bit) for package: gd-2.0.35-10.el6.x86_64
--> Processing Dependency: libjpeg.so.62()(64bit) for package: gd-2.0.35-10.el6.x86_64
---> Package httpd-tools.x86_64 0:2.2.15-15.el6.centos.1 will be installed
---> Package libpng.x86_64 2:1.2.48-1.el6_2 will be installed
---> Package mailcap.noarch 0:2.1.31-2.el6 will be installed
---> Package perl-BSD-Resource.x86_64 0:1.29.03-3.el6 will be installed
---> Package perl-ExtUtils-MakeMaker.x86_64 0:6.55-119.el6_1.1 will be installed
--> Processing Dependency: perl(Test::Harness) for package: perl-ExtUtils-MakeMaker-6.55-119.el6_1.1.x86_64
--> Processing Dependency: perl-devel for package: perl-ExtUtils-MakeMaker-6.55-119.el6_1.1.x86_64
---> Package perl-Newt.x86_64 0:1.08-26.el6 will be installed
--> Running transaction check
---> Package fontconfig.x86_64 0:2.8.0-3.el6 will be installed
---> Package freetype.x86_64 0:2.3.11-6.el6_2.9 will be installed
---> Package libX11.x86_64 0:1.3-2.el6 will be installed
--> Processing Dependency: libX11-common = 1.3-2.el6 for package: libX11-1.3-2.el6.x86_64
--> Processing Dependency: libxcb.so.1()(64bit) for package: libX11-1.3-2.el6.x86_64
---> Package libXpm.x86_64 0:3.5.8-2.el6 will be installed
---> Package libjpeg.x86_64 0:6b-46.el6 will be installed
---> Package perl-Test-Harness.x86_64 0:3.17-119.el6_1.1 will be installed
---> Package perl-devel.x86_64 4:5.10.1-119.el6_1.1 will be installed
--> Processing Dependency: perl(ExtUtils::ParseXS) for package: 4:perl-devel-5.10.1-119.el6_1.1.x86_64
--> Running transaction check
---> Package libX11-common.noarch 0:1.3-2.el6 will be installed
---> Package libxcb.x86_64 0:1.5-1.el6 will be installed
--> Processing Dependency: libXau.so.6()(64bit) for package: libxcb-1.5-1.el6.x86_64
---> Package perl-ExtUtils-ParseXS.x86_64 1:2.2003.0-119.el6_1.1 will be installed
--> Running transaction check
---> Package libXau.x86_64 0:1.0.5-1.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package                   Arch     Version                     Repository
                                                                           Size
================================================================================
Installing:
 crypto-utils              x86_64   2.4.1-24.2.el6              base       76 k
 httpd                     x86_64   2.2.15-15.el6.centos.1      updates   813 k
 httpd-manual              noarch   2.2.15-15.el6.centos.1      updates   781 k
 mod_perl                  x86_64   2.0.4-10.el6                base      3.2 M
 mod_ssl                   x86_64   1:2.2.15-15.el6.centos.1    updates    87 k
 mod_wsgi                  x86_64   3.2-1.el6                   base       66 k
 webalizer                 x86_64   2.21_02-3.3.el6             base      128 k
Installing for dependencies:
 apr                       x86_64   1.3.9-3.el6_1.2             base      123 k
 apr-util                  x86_64   1.3.9-3.el6_0.1             base       87 k
 apr-util-ldap             x86_64   1.3.9-3.el6_0.1             base       15 k
 fontconfig                x86_64   2.8.0-3.el6                 base      186 k
 freetype                  x86_64   2.3.11-6.el6_2.9            updates   359 k
 gd                        x86_64   2.0.35-10.el6               base      142 k
 httpd-tools               x86_64   2.2.15-15.el6.centos.1      updates    70 k
 libX11                    x86_64   1.3-2.el6                   base      582 k
 libX11-common             noarch   1.3-2.el6                   base      188 k
 libXau                    x86_64   1.0.5-1.el6                 base       22 k
 libXpm                    x86_64   3.5.8-2.el6                 base       59 k
 libjpeg                   x86_64   6b-46.el6                   base      134 k
 libpng                    x86_64   2:1.2.48-1.el6_2            updates   181 k
 libxcb                    x86_64   1.5-1.el6                   base      100 k
 mailcap                   noarch   2.1.31-2.el6                base       27 k
 perl-BSD-Resource         x86_64   1.29.03-3.el6               base       35 k
 perl-ExtUtils-MakeMaker   x86_64   6.55-119.el6_1.1            base      290 k
 perl-ExtUtils-ParseXS     x86_64   1:2.2003.0-119.el6_1.1      base       42 k
 perl-Newt                 x86_64   1.08-26.el6                 base       72 k
 perl-Test-Harness         x86_64   3.17-119.el6_1.1            base      229 k
 perl-devel                x86_64   4:5.10.1-119.el6_1.1        base      420 k

Transaction Summary
================================================================================
Install      28 Package(s)

Total download size: 8.3 M
Installed size: 24 M
Downloading Packages:
(1/28): apr-1.3.9-3.el6_1.2.x86_64.rpm                   | 123 kB     00:00
(2/28): apr-util-1.3.9-3.el6_0.1.x86_64.rpm              |  87 kB     00:00
(3/28): apr-util-ldap-1.3.9-3.el6_0.1.x86_64.rpm         |  15 kB     00:00
(4/28): crypto-utils-2.4.1-24.2.el6.x86_64.rpm           |  76 kB     00:00
(5/28): fontconfig-2.8.0-3.el6.x86_64.rpm                | 186 kB     00:00
(6/28): freetype-2.3.11-6.el6_2.9.x86_64.rpm             | 359 kB     00:01
(7/28): gd-2.0.35-10.el6.x86_64.rpm                      | 142 kB     00:00
(8/28): httpd-2.2.15-15.el6.centos.1.x86_64.rpm          | 813 kB     00:03
(9/28): httpd-manual-2.2.15-15.el6.centos.1.noarch.rpm   | 781 kB     00:03
(10/28): httpd-tools-2.2.15-15.el6.centos.1.x86_64.rpm   |  70 kB     00:00
(11/28): libX11-1.3-2.el6.x86_64.rpm                     | 582 kB     00:02
(12/28): libX11-common-1.3-2.el6.noarch.rpm              | 188 kB     00:00
(13/28): libXau-1.0.5-1.el6.x86_64.rpm                   |  22 kB     00:00
(14/28): libXpm-3.5.8-2.el6.x86_64.rpm                   |  59 kB     00:00
(15/28): libjpeg-6b-46.el6.x86_64.rpm                    | 134 kB     00:00
(16/28): libpng-1.2.48-1.el6_2.x86_64.rpm                | 181 kB     00:00
(17/28): libxcb-1.5-1.el6.x86_64.rpm                     | 100 kB     00:00
(18/28): mailcap-2.1.31-2.el6.noarch.rpm                 |  27 kB     00:00
(19/28): mod_perl-2.0.4-10.el6.x86_64.rpm                | 3.2 MB     00:13
(20/28): mod_ssl-2.2.15-15.el6.centos.1.x86_64.rpm       |  87 kB     00:00
(21/28): mod_wsgi-3.2-1.el6.x86_64.rpm                   |  66 kB     00:00
(22/28): perl-BSD-Resource-1.29.03-3.el6.x86_64.rpm      |  35 kB     00:00
(23/28): perl-ExtUtils-MakeMaker-6.55-119.el6_1.1.x86_64 | 290 kB     00:01
(24/28): perl-ExtUtils-ParseXS-2.2003.0-119.el6_1.1.x86_ |  42 kB     00:00
(25/28): perl-Newt-1.08-26.el6.x86_64.rpm                |  72 kB     00:00
(26/28): perl-Test-Harness-3.17-119.el6_1.1.x86_64.rpm   | 229 kB     00:01
(27/28): perl-devel-5.10.1-119.el6_1.1.x86_64.rpm        | 420 kB     00:01
(28/28): webalizer-2.21_02-3.3.el6.x86_64.rpm            | 128 kB     00:00
--------------------------------------------------------------------------------
Total                                           217 kB/s | 8.3 MB     00:39
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Warning: RPMDB altered outside of yum.
  Installing : apr-1.3.9-3.el6_1.2.x86_64                                  1/28
  Installing : apr-util-1.3.9-3.el6_0.1.x86_64                             2/28
  Installing : 2:libpng-1.2.48-1.el6_2.x86_64                              3/28
  Installing : freetype-2.3.11-6.el6_2.9.x86_64                            4/28
  Installing : fontconfig-2.8.0-3.el6.x86_64                               5/28
  Installing : apr-util-ldap-1.3.9-3.el6_0.1.x86_64                        6/28
  Installing : httpd-tools-2.2.15-15.el6.centos.1.x86_64                   7/28
  Installing : 1:perl-ExtUtils-ParseXS-2.2003.0-119.el6_1.1.x86_64         8/28
  Installing : 4:perl-devel-5.10.1-119.el6_1.1.x86_64                      9/28
  Installing : perl-Test-Harness-3.17-119.el6_1.1.x86_64                  10/28
  Installing : perl-ExtUtils-MakeMaker-6.55-119.el6_1.1.x86_64            11/28
  Installing : libXau-1.0.5-1.el6.x86_64                                  12/28
  Installing : libxcb-1.5-1.el6.x86_64                                    13/28
  Installing : libjpeg-6b-46.el6.x86_64                                   14/28
  Installing : mailcap-2.1.31-2.el6.noarch                                15/28
  Installing : httpd-2.2.15-15.el6.centos.1.x86_64                        16/28
  Installing : perl-Newt-1.08-26.el6.x86_64                               17/28
  Installing : perl-BSD-Resource-1.29.03-3.el6.x86_64                     18/28
  Installing : libX11-common-1.3-2.el6.noarch                             19/28
  Installing : libX11-1.3-2.el6.x86_64                                    20/28
  Installing : libXpm-3.5.8-2.el6.x86_64                                  21/28
  Installing : gd-2.0.35-10.el6.x86_64                                    22/28
  Installing : webalizer-2.21_02-3.3.el6.x86_64                           23/28
  Installing : mod_perl-2.0.4-10.el6.x86_64                               24/28
  Installing : crypto-utils-2.4.1-24.2.el6.x86_64                         25/28
  Installing : httpd-manual-2.2.15-15.el6.centos.1.noarch                 26/28
  Installing : mod_wsgi-3.2-1.el6.x86_64                                  27/28
  Installing : 1:mod_ssl-2.2.15-15.el6.centos.1.x86_64                    28/28

Installed:
  crypto-utils.x86_64 0:2.4.1-24.2.el6
  httpd.x86_64 0:2.2.15-15.el6.centos.1
  httpd-manual.noarch 0:2.2.15-15.el6.centos.1
  mod_perl.x86_64 0:2.0.4-10.el6
  mod_ssl.x86_64 1:2.2.15-15.el6.centos.1
  mod_wsgi.x86_64 0:3.2-1.el6
  webalizer.x86_64 0:2.21_02-3.3.el6

Dependency Installed:
  apr.x86_64 0:1.3.9-3.el6_1.2
  apr-util.x86_64 0:1.3.9-3.el6_0.1
  apr-util-ldap.x86_64 0:1.3.9-3.el6_0.1
  fontconfig.x86_64 0:2.8.0-3.el6
  freetype.x86_64 0:2.3.11-6.el6_2.9
  gd.x86_64 0:2.0.35-10.el6
  httpd-tools.x86_64 0:2.2.15-15.el6.centos.1
  libX11.x86_64 0:1.3-2.el6
  libX11-common.noarch 0:1.3-2.el6
  libXau.x86_64 0:1.0.5-1.el6
  libXpm.x86_64 0:3.5.8-2.el6
  libjpeg.x86_64 0:6b-46.el6
  libpng.x86_64 2:1.2.48-1.el6_2
  libxcb.x86_64 0:1.5-1.el6
  mailcap.noarch 0:2.1.31-2.el6
  perl-BSD-Resource.x86_64 0:1.29.03-3.el6
  perl-ExtUtils-MakeMaker.x86_64 0:6.55-119.el6_1.1
  perl-ExtUtils-ParseXS.x86_64 1:2.2003.0-119.el6_1.1
  perl-Newt.x86_64 0:1.08-26.el6
  perl-Test-Harness.x86_64 0:3.17-119.el6_1.1
  perl-devel.x86_64 4:5.10.1-119.el6_1.1

Complete!
[root@server5 src]#

Login ke webmin pada alamat URL https://[Alamat IP]:10000/ menggunakan detail login user & password root. Jika web browser menampilkan pesan peringatan This Connection is Untrusted, klik tombol Add Exception..., kemudian centang checkbox Permanently store this exception klik tombol Confirm Security Exception.

Install Webmin

Install Webmin: Untrusted Connection

Install Webmin 2

Install Webmin: Confirm Security Exception

Install Webmin 3

Install Webmin: Login Webmin Server


Install Webmin 4

Install Webmin: Webmin Web Interface


Uninstall Webmin

Untuk uninstall webmin, ketikkan command;

/etc/webmin/uninstall.sh.



[root@server5 ~]# /etc/webmin/uninstall.sh
Are you sure you want to uninstall Webmin? (y/n) : y

Removing webmin RPM ..
Running uninstall scripts ..
Deleted init script /etc/rc.d/init.d/webmin
Subroutine list_servers redefined at /usr/libexec/webmin/servers/servers-lib.pl line 91.
Subroutine list_servers_sorted redefined at /usr/libexec/webmin/servers/servers-lib.pl line 110.
Subroutine get_server redefined at /usr/libexec/webmin/servers/servers-lib.pl line 142.
Subroutine save_server redefined at /usr/libexec/webmin/servers/servers-lib.pl line 157.
Subroutine delete_server redefined at /usr/libexec/webmin/servers/servers-lib.pl line 174.
Subroutine can_use_server redefined at /usr/libexec/webmin/servers/servers-lib.pl line 187.
Subroutine list_all_groups redefined at /usr/libexec/webmin/servers/servers-lib.pl line 207.
Subroutine logged_in redefined at /usr/libexec/webmin/servers/servers-lib.pl line 275.
Subroutine get_server_types redefined at /usr/libexec/webmin/servers/servers-lib.pl line 300.
Subroutine this_server redefined at /usr/libexec/webmin/servers/servers-lib.pl line 310.
Subroutine get_my_address redefined at /usr/libexec/webmin/servers/servers-lib.pl line 329.
Subroutine address_to_broadcast redefined at /usr/libexec/webmin/servers/servers-lib.pl line 358.
Subroutine test_server redefined at /usr/libexec/webmin/servers/servers-lib.pl line 372.
Subroutine find_cron_job redefined at /usr/libexec/webmin/servers/servers-lib.pl line 391.
Subroutine find_servers redefined at /usr/libexec/webmin/servers/servers-lib.pl line 404.
Done!
[root@server5 ~]#

Selesai. Semoga bermanfaat.
:)
09 Maret 2012

Install ConfigServer Firewall WHM Plugin & Webmin Modul

ConfigServer Firewall (CSF) merupakan salah satu plugin cPanel/WHM (free/gratis) dari ConfigServer.Com dengan fungsi utama sebagai security firewall pada Linux Server.

Kemampuan script ConfigServer Firewall ini diantaranya:


  1. Dapat cek otentikasi gagal login pada:

    • Courier imap, Dovecot, uw-imap, Kerio

    • openSSH

    • cPanel, WHM, Webmail (hanya pada server cPanel)

    • Pure-ftpd, vsftpd, Proftpd

    • Password protected web pages (htpasswd)

    • Mod_security failures (v1 and v2)

    • Suhosin failures

    • Exim SMTP AUTH

    • Custom login failures with separate log file and regular expression matching



  2. Notifikasi login SSH

  3. Notifikasi login SU (Super User)

  4. Notifikasi WHM root login (hanya pada server cPanel)

  5. Integrasi User Interface (UI) untuk cPanel, DirectAdmin dan Webmin

  6. Exploit checks

  7. BOGON packet protection

  8. Port Scan tracking & blocking

  9. dan beberapa fungsi lainnya. Selengkapnya dapat dilihat pada halaman ini.



Berikut tutorial singkat install ConfigServer Firewall pada cPanel/WHM Server:

Command:
rm -fv csf.tgz
wget http://www.configserver.com/free/csf.tgz
tar -xzf csf.tgz
cd csf
sh install.sh


[bash collapse="false"]
root@server5 [~]# rm -fv csf.tgz
root@server5 [~]#
[/bash]

[bash collapse="false"]
root@server5 [~]# wget http://www.configserver.com/free/csf.tgz
--2012-05-28 03:38:24-- http://www.configserver.com/free/csf.tgz
Resolving www.configserver.com... 85.13.195.235
Connecting to www.configserver.com|85.13.195.235|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 434432 (424K) [application/x-tar]
Saving to: âcsf.tgzâ

100%[======================================>] 434,432 91.8K/s in 4.6s

2012-05-28 03:38:30 (91.8 KB/s) - âcsf.tgzâ

root@server5 [~]#
[/bash]

[bash collapse="false"]
root@server5 [~]# tar -xzf csf.tgz
root@server5 [~]#
[/bash]

[bash collapse="false"]
root@server5 [~]# cd csf
root@server5 [~/csf]#
[/bash]

[bash]
root@server5 [~/csf]# sh install.sh

Configuring for OS

Running csf cPanel installer

Installing csf and lfd

Check we're running as root

Checking Perl modules...Using configuration defaults
ok

mkdir: created directory `/etc/csf'
mkdir: created directory `/etc/csf/zone'
mkdir: created directory `/etc/csf/stats'
mkdir: created directory `/etc/csf/lock'
`csf.conf' -> `/etc/csf/./csf.conf'
`csf.allow' -> `/etc/csf/./csf.allow'
`csf.deny' -> `/etc/csf/./csf.deny'
`csf.redirect' -> `/etc/csf/./csf.redirect'
`csf.resellers' -> `/etc/csf/./csf.resellers'
`reselleralert.txt' -> `/etc/csf/./reselleralert.txt'
`csf.dirwatch' -> `/etc/csf/./csf.dirwatch'
`csf.logfiles' -> `/etc/csf/./csf.logfiles'
`csf.logignore' -> `/etc/csf/./csf.logignore'
`logalert.txt' -> `/etc/csf/./logalert.txt'
`csf.ignore' -> `/etc/csf/./csf.ignore'
`csf.pignore' -> `/etc/csf/./csf.pignore'
`csf.rignore' -> `/etc/csf/./csf.rignore'
`csf.fignore' -> `/etc/csf/./csf.fignore'
`csf.signore' -> `/etc/csf/./csf.signore'
`csf.suignore' -> `/etc/csf/./csf.suignore'
`csf.mignore' -> `/etc/csf/./csf.mignore'
`csf.sips' -> `/etc/csf/./csf.sips'
`csf.dyndns' -> `/etc/csf/./csf.dyndns'
`alert.txt' -> `/etc/csf/./alert.txt'
`logfloodalert.txt' -> `/etc/csf/./logfloodalert.txt'
`integrityalert.txt' -> `/etc/csf/./integrityalert.txt'
`exploitalert.txt' -> `/etc/csf/./exploitalert.txt'
`queuealert.txt' -> `/etc/csf/./queuealert.txt'
`tracking.txt' -> `/etc/csf/./tracking.txt'
`connectiontracking.txt' -> `/etc/csf/./connectiontracking.txt'
`processtracking.txt' -> `/etc/csf/./processtracking.txt'
`accounttracking.txt' -> `/etc/csf/./accounttracking.txt'
`usertracking.txt' -> `/etc/csf/./usertracking.txt'
`sshalert.txt' -> `/etc/csf/./sshalert.txt'
`sualert.txt' -> `/etc/csf/./sualert.txt'
`consolealert.txt' -> `/etc/csf/./consolealert.txt'
`uialert.txt' -> `/etc/csf/./uialert.txt'
`cpanelalert.txt' -> `/etc/csf/./cpanelalert.txt'
`scriptalert.txt' -> `/etc/csf/./scriptalert.txt'
`relayalert.txt' -> `/etc/csf/./relayalert.txt'
`filealert.txt' -> `/etc/csf/./filealert.txt'
`watchalert.txt' -> `/etc/csf/./watchalert.txt'
`loadalert.txt' -> `/etc/csf/./loadalert.txt'
`resalert.txt' -> `/etc/csf/./resalert.txt'
`portscan.txt' -> `/etc/csf/./portscan.txt'
`permblock.txt' -> `/etc/csf/./permblock.txt'
`netblock.txt' -> `/etc/csf/./netblock.txt'
`portknocking.txt' -> `/etc/csf/./portknocking.txt'
`regex.custom.pm' -> `/etc/csf/./regex.custom.pm'
`pt_deleted_action.pl' -> `/etc/csf/./pt_deleted_action.pl'
`messenger' -> `/etc/csf/./messenger'
`messenger/index.text' -> `/etc/csf/./messenger/index.text'
`messenger/index.html' -> `/etc/csf/./messenger/index.html'
`messenger/csf_small.png' -> `/etc/csf/./messenger/csf_small.png'
`ui' -> `/etc/csf/./ui'
`ui/server.key' -> `/etc/csf/./ui/server.key'
`ui/ui.ban' -> `/etc/csf/./ui/ui.ban'
`ui/server.crt' -> `/etc/csf/./ui/server.crt'
`ui/ui.allow' -> `/etc/csf/./ui/ui.allow'
`ui/images' -> `/etc/csf/./ui/images'
`ui/images/cxs.png' -> `/etc/csf/./ui/images/cxs.png'
`ui/images/icon.gif' -> `/etc/csf/./ui/images/icon.gif'
`ui/images/cxs_small.png' -> `/etc/csf/./ui/images/cxs_small.png'
`ui/images/minus.png' -> `/etc/csf/./ui/images/minus.png'
`ui/images/viewdelivery.png' -> `/etc/csf/./ui/images/viewdelivery.png'
`ui/images/delete.png' -> `/etc/csf/./ui/images/delete.png'
`ui/images/deliver.png' -> `/etc/csf/./ui/images/deliver.png'
`ui/images/cxs-loader.gif' -> `/etc/csf/./ui/images/cxs-loader.gif'
`ui/images/plus.png' -> `/etc/csf/./ui/images/plus.png'
`ui/images/perm.png' -> `/etc/csf/./ui/images/perm.png'
`ui/images/cse_small.png' -> `/etc/csf/./ui/images/cse_small.png'
`ui/images/csf_small.png' -> `/etc/csf/./ui/images/csf_small.png'
`lfd.logrotate' -> `/etc/logrotate.d/lfd'
`csfcron.sh' -> `/etc/cron.d/csfcron.sh'
`lfdcron.sh' -> `/etc/cron.d/lfdcron.sh'
`csf.pl' -> `/etc/csf/csf.pl'
`csfui.pl' -> `/etc/csf/csfui.pl'
`csfuir.pl' -> `/etc/csf/csfuir.pl'
`cseui.pl' -> `/etc/csf/cseui.pl'
`csftest.pl' -> `/etc/csf/csftest.pl'
`lfd.pl' -> `/etc/csf/lfd.pl'
`regex.pm' -> `/etc/csf/regex.pm'
`servercheck.pm' -> `/etc/csf/servercheck.pm'
`readme.txt' -> `/etc/csf/readme.txt'
`sanity.txt' -> `/etc/csf/sanity.txt'
`x-arf.txt' -> `/etc/csf/x-arf.txt'
`changelog.txt' -> `/etc/csf/changelog.txt'
`install.txt' -> `/etc/csf/install.txt'
`version.txt' -> `/etc/csf/version.txt'
`license.txt' -> `/etc/csf/license.txt'
`uninstall.sh' -> `/etc/csf/uninstall.sh'
`remove_apf_bfd.sh' -> `/etc/csf/remove_apf_bfd.sh'
`lfd.sh' -> `/etc/init.d/lfd'
`csf.sh' -> `/etc/init.d/csf'
`Net' -> `/etc/csf/Net'
`Net/CIDR' -> `/etc/csf/Net/CIDR'
`Net/CIDR/Lite.pm' -> `/etc/csf/Net/CIDR/Lite.pm'
`Geo' -> `/etc/csf/Geo'
`Geo/IP' -> `/etc/csf/Geo/IP'
`Geo/IP/PurePerl.pm' -> `/etc/csf/Geo/IP/PurePerl.pm'
`Crypt' -> `/etc/csf/Crypt'
`Crypt/Blowfish_PP.pm' -> `/etc/csf/Crypt/Blowfish_PP.pm'
`Crypt/CBC.pm' -> `/etc/csf/Crypt/CBC.pm'
`csf.div' -> `/etc/csf/csf.div'
`ui/images/cxs.png' -> `/etc/csf/ui/./images/cxs.png'
`ui/images/icon.gif' -> `/etc/csf/ui/./images/icon.gif'
`ui/images/cxs_small.png' -> `/etc/csf/ui/./images/cxs_small.png'
`ui/images/minus.png' -> `/etc/csf/ui/./images/minus.png'
`ui/images/viewdelivery.png' -> `/etc/csf/ui/./images/viewdelivery.png'
`ui/images/delete.png' -> `/etc/csf/ui/./images/delete.png'
`ui/images/deliver.png' -> `/etc/csf/ui/./images/deliver.png'
`ui/images/cxs-loader.gif' -> `/etc/csf/ui/./images/cxs-loader.gif'
`ui/images/plus.png' -> `/etc/csf/ui/./images/plus.png'
`ui/images/perm.png' -> `/etc/csf/ui/./images/perm.png'
`ui/images/cse_small.png' -> `/etc/csf/ui/./images/cse_small.png'
`ui/images/csf_small.png' -> `/etc/csf/ui/./images/csf_small.png'
chmod: cannot access `/var/log/lfd.log*': No such file or directory
mode of `/etc/csf/cseui.pl' changed to 0700 (rwx------)
mode of `/etc/csf/csf.pl' changed to 0700 (rwx------)
mode of `/etc/csf/csftest.pl' changed to 0700 (rwx------)
mode of `/etc/csf/csfui.pl' changed to 0700 (rwx------)
mode of `/etc/csf/csfuir.pl' changed to 0700 (rwx------)
mode of `/etc/csf/lfd.pl' changed to 0700 (rwx------)
mode of `/etc/csf/pt_deleted_action.pl' changed to 0700 (rwx------)
mode of `/etc/csf/regex.custom.pm' changed to 0700 (rwx------)
mode of `/etc/csf/regex.pm' changed to 0700 (rwx------)
mode of `/etc/csf/servercheck.pm' changed to 0700 (rwx------)
mode of `/etc/csf/remove_apf_bfd.sh' changed to 0700 (rwx------)
mode of `/etc/csf/uninstall.sh' changed to 0700 (rwx------)
chmod: cannot access `/etc/csf/*.php': No such file or directory
failed to change mode of `/etc/csf/*.php' to 0000 (---------)
mode of `/etc/init.d/lfd' changed to 0700 (rwx------)
mode of `/etc/init.d/csf' changed to 0700 (rwx------)
mode of `/etc/cron.d/lfdcron.sh' changed to 0644 (rw-r--r--)
mode of `/etc/cron.d/csfcron.sh' changed to 0644 (rw-r--r--)
`/usr/sbin/csf' -> `/etc/csf/csf.pl'
`/usr/sbin/lfd' -> `/etc/csf/lfd.pl'
`addon_csf.cgi' -> `/usr/local/cpanel/whostmgr/docroot/cgi/./addon_csf.cgi'
mode of `/usr/local/cpanel/whostmgr/docroot/cgi/addon_csf.cgi' changed to 0700 (rwx------)
`csf/' -> `/usr/local/cpanel/whostmgr/docroot/cgi/csf'
`csf/minus.png' -> `/usr/local/cpanel/whostmgr/docroot/cgi/csf/minus.png'
`csf/delete.png' -> `/usr/local/cpanel/whostmgr/docroot/cgi/csf/delete.png'
`csf/plus.png' -> `/usr/local/cpanel/whostmgr/docroot/cgi/csf/plus.png'
`csf/perm.png' -> `/usr/local/cpanel/whostmgr/docroot/cgi/csf/perm.png'
`csf/csf_small.png' -> `/usr/local/cpanel/whostmgr/docroot/cgi/csf/csf_small.png'

*** IPV6 Enabled


*** IPV6_SPI set to 1


TCP ports currently listening for incoming connections:
21,22,25,53,80,110,143,443,465,587,993,995,2077,2078,2082,2083,2086,2087,2095,2096,3306,5672

UDP ports currently listening for incoming connections:
53,68

IPv6 TCP ports currently listening for incoming connections:
21,22,25,465,587,5672

IPv6 UDP ports currently listening for incoming connections:


Note: The port details above are for information only, csf hasn't been auto-configured.

Don't forget to:
1. Configure the following options in the csf configuration to suite your server: TCP_*, UDP_*, IPV6, TCP6_*, UDP6_*
2. Restart csf and lfd
3. Set TESTING to 0 once you're happy with the firewall

Adding current SSH session IP address to the csf whitelist in csf.allow:
Adding 192.168.211.1 to csf.allow only while in TESTING mode (not iptables ACCEPT)
*WARNING* TESTING mode is enabled - do not forget to disable it in the configuration

Installation Completed

root@server5 [~/csf]#
[/bash]

Selanjutnya, cek apakah iptables modules diminta (diperlukan) dengan menjalankan command berikut:

[bash]
root@server5 [~/csf]# perl /etc/csf/csftest.pl
Testing ip_tables/iptable_filter...OK
Testing ipt_LOG...OK
Testing ipt_multiport/xt_multiport...OK
Testing ipt_REJECT...OK
Testing ipt_state/xt_state...OK
Testing ipt_limit/xt_limit...OK
Testing ipt_recent...OK
Testing xt_connlimit...OK
Testing ipt_owner/xt_owner...OK
Testing iptable_nat/ipt_REDIRECT...OK
Testing iptable_nat/ipt_DNAT...OK

RESULT: csf should function on this server
root@server5 [~/csf]#
[/bash]

Konfigurasi iptables apapun lainnya harus di-disabled, misal jika sebelumnya menggunakan APF+BFD dengan terlebih dahulu men-disable (hapus/remove).

Command:

sh /etc/csf/remove_apf_bfd.sh

Selesai. CSF dapat dikonfigurasikan langsung via edit file /etc/csf/*, atau pada cPanel dapat menggunakan WHM UI (User Interface).

[caption id="attachment_1217" align="alignnone" width="150" caption="ConfigServer Security & Firewall (CSF) WHM Plugin"]CSF WHM Plugin[/caption]

Harap diingat, CSF auto configure port ssh sesuai pada saat instalasi dan juga otomatis menambahkan IP Address administrator waktu install ke daftar whitelist.

Webmin Module Installation/Upgrade

Untuk install atau upgrade module csf pada webmin, install csf seperti command di atas, kemudian install module csf.

WebminWebmin ConfigurationWebmin ModulesFrom local file/etc/csf/csfwebmin.tgzInstall Module


[caption id="attachment_1218" align="alignleft" width="150" caption="CSF Webmin Module 1"]CSF Webmin Module 1[/caption][caption id="attachment_1219" align="alignleft" width="150" caption="CSF Webmin Module 2"]CSF Webmin Module 2[/caption][caption id="attachment_1220" align="alignleft" width="150" caption="CSF Webmin Module 3"]CSF Webmin Module 3[/caption]


Klik Refresh ModuleSystemConfigServer Security & Firewall untuk mulai configurasi CSF.


[caption id="attachment_1221" align="alignleft" width="150" caption="CSF Webmin Module 4"]CSF Webmin Module 4[/caption][caption id="attachment_1222" align="alignleft" width="150" caption="CSF Webmin Module 5"]CSF Webmin Module 5[/caption]


Uninstall CSF

cPanel Server, gunakan command berikut:

[bash collapse="false"]
[root@localhost ~]# cd /etc/csf
[root@localhost csf]# sh uninstall.sh
[/bash]

Pada DirectAdmin servers, jalankan command berikut:

[bash collapse="false"]
[root@localhost ~]# cd /etc/csf
[root@localhost csf]# sh uninstall.directadmin.sh
[/bash]

Pada Generic Linux Server, jalankan command berikut:

[bash collapse="false"]
[root@localhost ~]# cd /etc/csf
[root@localhost csf]# sh uninstall.generic.sh
[/bash]

Visit Publisher Script
25 Februari 2012

Install Nginx Webserver Webmin Plugin

Tutorial Install Nginx Webserver Webmin Plugin



» Buka link 'Webmin' → 'Webmin Configuration' → 'Webmin Modules'

[caption id="attachment_1291" align="alignnone" width="150" caption="Webmin Modules"]Install Nginx Webmin Plugin[/caption]

» Pada halaman 'Install Module', silahkan pilih mode instalasi (local file, uploaded file, ftp/http url). Pada artikel ini akan menggunakan type instalasi ftp/http url. Klik checkbox 'From ftp or http URL', kemudian isikan dengan alamat url download.

Contoh: https://github.com/downloads/vixh/nginx-webmin/nginx0.0.2.wbm.gz (dapat dilihat pada alamat url https://github.com/vixh/nginx-webmin/downloads).

» Klik tombol Install Module


[caption id="attachment_1292" align="alignleft" width="150" caption="Install Module"]Install Nginx Webmin Plugin 2[/caption][caption id="attachment_1293" align="alignleft" width="150" caption="Module Installed"]Install Nginx Webmin Plugin 3[/caption]


Selesai. Manage Nginx di menu "Servers" > "Nginx Webserver".

[caption id="attachment_1294" align="alignnone" width="150" caption="Webmin Nginx Webserver"]Install Nginx Webmin Plugin 4[/caption]
Loncat ke Atas ↑