Cara Install Roundcube pada Ubuntu 20.04/22.04
0 people liked this article
A. Pendahuluan
Roundcube adalah salah satu webmail open-source paling populer yang menawarkan interface yang intuitif dan fitur-fitur pendukung. Dengan menginstal Roundcube di server Ubuntu, Anda dapat dengan lebih efisien, baik untuk keperluan pribadi maupun bisnis. Roundcube menjadi pilihan yang ideal bagi pengguna untuk pengalaman email yang lebih baik.
B. Persiapan
Pastikan Anda sudah mengkonfigurasi webserver (apache,nginx,dll), postfix, dan dovecot. Tutorial ini akan memandu Anda langkah demi langkah untuk menginstal Roundcube di sistem operasi Ubuntu 20.04/22.04. Kita akan membahas instalasi paket yang diperlukan, konfigurasi server, dan proses instalasi.
C. Langkah-Langkah
Install Mariadb
Pertama sebelum melakukan instalasi pastikan sudah terlebih dahulu lakukan update dan upgrade sistem menggunakan command di bawah ini,
sudo apt update && sudo apt upgrade
Install Roundcube
kemudian lakukan instalasi MariaDB, karena Roundcube memerlukan mysql database maka kita harus menginstalnya, pada tutorial ini kita menggunakan mariadb database.
sudo apt install -y mariadb-server
Gunakan command di atas berikut dan jangan lupa untuk melakukan set root password.
sudo mysql_secure_installation
NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB
SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY!In order to log into MariaDB to secure it, we'll need the current
password for the root user. If you've just installed MariaDB, and
you haven't set the root password yet, the password will be blank,
so you should just press enter here.Enter current password for root (enter for none): [enter]
OK, successfully used password, moving on...Setting the root password ensures that nobody can log into the MariaDB
root user without the proper authorisation.Set root password? [Y/n] Y
New password:
Re-enter new password:
Password updated successfully!
Reloading privilege tables..
... Success!
By default, a MariaDB installation has an anonymous user, allowing anyone
to log into MariaDB without having to have a user account created for
them. This is intended only for testing, and to make the installation
go a bit smoother. You should remove them before moving into a
production environment.Remove anonymous users? [Y/n] Y
... Success!Normally, root should only be allowed to connect from 'localhost'. This
ensures that someone cannot guess at the root password from the network.Disallow root login remotely? [Y/n] Y
... Success!By default, MariaDB comes with a database named 'test' that anyone can
access. This is also intended only for testing, and should be removed
before moving into a production environment.Remove test database and access to it? [Y/n] Y
- Dropping test database...
... Success!
- Removing privileges on test database...
... Success!Reloading the privilege tables will ensure that all changes made so far
will take effect immediately.Reload privilege tables now? [Y/n] Y
... Success!Cleaning up...
All done! If you've completed all of the above steps, your MariaDB
installation should now be secure.Thanks for using MariaDB!
Kemudian kita dapat memulai menginstall Roundcube menggunakan perintah berikut.
sudo apt install -y roundcube
Pilih "Yes"

Masukkan password user root mysql (yang tadi dibuat saat instalasi).

Ulangi masukkan password.

D. Konfigurasi Alias
Kali ini kita akan melakukan Konfigurasi alias agar roundcube bisa di akses via alias (http://ip-address/roundcube), edit Konfigurasi pada roundcube.conf.
sudo nano /etc/apache2/conf-available/roundcube.conf
Cari baris “# Alias /roundcube /var/lib/roundcube” dan hapus tAnda ”#" , kemudian setelah melakukan config tersebut lakukan restart pada apache dengan command di bawah ini,
sudo systemctl restart apache2
E. Konfigurasi Roundcube
Selanjutnya Konfigurasi mail server pada config.inc.php.
sudo nano /var/lib/roundcube/config/config.inc.php
Isikan nama host dan SMTP server email. Untuk SMTP server secara default akan running pada port 25. Isi juga autentikasi SMTP server seperti smtp_user dan smtp_pass jika SMTP server Anda sebelumnya menggunakan autentikasi dan jika tidak cukup dikosongi saja ‘ ’.
// The IMAP host chosen to perform the log-in.
// Leave blank to show a textbox at login, give a list of hosts
// to display a pulldown menu or set one host as string.
// Enter hostname with prefix ssl:// to use Implicit TLS, or use
// prefix tls:// to use STARTTLS.
// Supported replacement variables:
// %n - hostname ($_SERVER['SERVER_NAME'])
// %t - hostname without the first part
// %d - domain (http hostname $_SERVER['HTTP_HOST'] without the first part)
// %s - domain name after the '@' from e-mail address provided at login screen
// For example %n = mail.domain.tld, %t = domain.tld
$config['default_host'] = 'contoh.com';// SMTP server host (for sending mails).
// Enter hostname with prefix ssl:// to use Implicit TLS, or use
// prefix tls:// to use STARTTLS.
// Supported replacement variables:
// %h - user's IMAP hostname
// %n - hostname ($_SERVER['SERVER_NAME'])
// %t - hostname without the first part
// %d - domain (http hostname $_SERVER['HTTP_HOST'] without the first part)
// %z - IMAP domain (IMAP hostname without the first part)
// For example %n = mail.domain.tld, %t = domain.tld
$config['smtp_server'] = 'contoh.com';// SMTP port. Use 25 for cleartext, 465 for Implicit TLS, or 587 for STARTTLS (default)
$config['smtp_port'] = 25;// SMTP username (if required) if you use %u as the username Roundcube
// will use the current username for login
$config['smtp_user'] = '';// SMTP password (if required) if you use %p as the password Roundcube
// will use the current user's password for login
$config['smtp_pass'] = '';
Untuk pengujian buka web browser kemudian ketik URL http://ip-address/roundcube.
F. Kesimpulan
Instalasi Roundcube melibatkan beberapa tahap penting. Pertama, pastikan sistem operasi sudah diperbarui. Kemudian, instalasi database seperti MariaDB atau PostgreSQL untuk menyimpan data pengguna dan email. Selanjutnya, instalasi server web seperti Apache atau Nginx untuk menyajikan antarmuka web Roundcube. Jangan lupa juga menginstal PHP dan ekstensi yang diperlukan agar Roundcube dapat berfungsi dengan baik. Terakhir, konfigurasikan Roundcube untuk terhubung dengan database dan server email yang sudah ada. Dengan mengikuti langkah-langkah ini, Anda akan memiliki server email berbasis web yang hAndal dan mudah digunakan.
Selamat! Anda sudah bisa menginstal Roundcube pada Ubuntu 20.04/22.04. Semoga artikel ini dapat membantu Anda. Temukan bantuan lainnya melalui Knowledge Base Biznet Gio. Jika Anda masih memiliki kendala silahkan hubungi support@biznetgio.com atau (021) 5714567.
Popular Articles
-
Cara Install & Konfigurasi Monitoring Cacti Serta Mengetahui Fungsi Fitur Pada Cacti
10 people say this guide was helpful
-
Cara Mengaktifkan Telnet pada Windows 7, 8 dan 10
3 people say this guide was helpful
-
Install dan Konfigurasi Samba Server pada Ubuntu
2 people say this guide was helpful
-
Instalasi DNS Server Menggunakan Service Bind di CentOS 7
4 people say this guide was helpful