Sabtu, 31 Maret 2012

Cara Instal Webmin di Server Unix / FreeBSD

Webmin adalah Web-based interface untuk administrasi sistem (System Administration) di Unix termasuk di FreeBSD. Menggunakan browser yang mendukung tabel dan forms, kita bisa mengatur user accounts, Apache, Firewall, dan lain sebagainya. Webmin terdiri dari sebuah web server sederhana dan beberapa program CGI yang secara langsung mengupdate file sistem seperti /etc/inetd.conf.
Webmin membutuhkan PERL maka pastikan PERL terinstall di mesin FreeBSD anda..
INSTALASI WEBMIN
update paket program
#Portsnap Fetch Update
Install Webmin dari ports
# cd /usr/ports/sysutils/webmin
# make install clean
KONFIGURASI WEBMIN
Setelah Webmin terinstall maka sekarang konfigurasi…. pastikan webmin berjalan pada saat booting
# ee /etc/rc.conf
tambahkan baris berikut
webmin_enable=”YES”
simpan dan tutup file tersebut. Seanjutnya kita menjalankan /usr/local/lib/webmin/setup.sh untuk melakukan setup pada konfigurasi selanjutnya, ketik :
#/usr/local/lib/webmin/setup.sh
akan muncul
***********************************************************************
*            Welcome to the Webmin setup script, version 1.420        *
***********************************************************************
Webmin is a web-based interface that allows Unix-like operating
systems and common Unix services to be easily administered.

Installing Webmin in /usr/local/lib/webmin ...

***********************************************************************
Webmin uses separate directories for configuration files and log files.
Unless you want to run multiple versions of Webmin at the same time
you can just accept the defaults.

Log file directory [/var/log/webmin]: [tekan Enter]

***********************************************************************
Webmin is written entirely in Perl. Please enter the full path to the
Perl 5 interpreter on your system.

Full path to perl (default /usr/bin/perl):  [tekan Enter]

Testing Perl ...
Perl seems to be installed ok

***********************************************************************
Operating system name:    FreeBSD
Operating system version: 7.0

***********************************************************************
Webmin uses its own password protected web server to provide access
to the administration programs. The setup script needs to know :
- What port to run the web server on. There must not be another
web server already using this port.
- The login name required to access the web server.
- The password required to access the web server.
- If the webserver should use SSL (if your system supports it).
- Whether to start webmin at boot time.

Web server port (default 10000):  [tekan enter]
Login name (default admin):  [tekan enter]
Login password: [ketik Password]
Password again:
Use SSL (y/n): y
***********************************************************************
Creating web server config files..
..done

Creating access control file..
..done

Creating start and stop scripts..
..done

Copying config files..
..done

Changing ownership and permissions ..
..done

Running postinstall scripts ..
..done
Pada banyak tutorial setelah langkah ini langsung bisa dijalankan si browser namun saran saya restart dulu mesin FreeBSD anda karena menurut pengalaman di browser tidak akan jalan sebelum di reboot.
Langkah selanjutnya adalah menjalankan browser
buka webbrowser dan jalankan
https://domain.com:10000/
atau
https://ip-server-anda:10000/
ingat jangan lupa menggunakan https bukan http karena webmin menggunakan SSL
pada saat pertama menjalankan webmin dari browser, anda akan menerima pesan get certificate, accept aja dan jalankan webmin
referensi

Tidak ada komentar:

Posting Komentar