Pada seri tutorial linux kali ini kita akan menginstall RoundCube di CentOS 7. Jadi silakan siapkan server CentOS 7 dengan update terbaru dan terkoneksi jaringan internet yang baik. Untuk menginstall Roundcube, setidaknya ada beberapa aplikasi yang harus terpasang, diantaranya dovecot dan apache/mysql/php.
Langkah pertama, enable repo EPEL:
[sourcecode]
yum install epel-release
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
rpm -Uvh https://repo.mysql.com/mysql80-community-release-el7-1.noarch.rpm
[/sourcecode]
kemudian install Apache, MySQL dan PHP:
[sourcecode]
sudo yum --enablerepo=epel,remi-php74 install httpd \
mysql mysql-server \
php php-common php-curl php-json php-xml php-mbstring php-imap \
php-mysql php-pear-DB php-pspell php-imagick php-mcrypt php-cli php-gd
[/sourcecode]
setelah itu, enable service mereka:
systemctl enable httpd.service
systemctl start httpd.service
systemctl enable mysqld.service
systemctl start mysqld.service
sebelum lupa, silakan salin dari password root MySQL dengan mengambil dari lognya:
[sourcecode]grep "A temporary password" /var/log/mysqld.log | tail -n1[/sourcecode]
kemudian ganti password root tersebut dengan perintah:
[sourcecode]sudo mysql_secure_installation[/sourcecode]
Install Roundcube
sebagai persiapan silakan buat database untuk Roundcube, dengan login ke MySQL server dengan user root:
mysql> CREATE DATABASE roundcubemail;
mysql> CREATE USER 'roundcube'@'localhost' IDENTIFIED BY 'DFksfkksd89k32&ks';
mysql> GRANT ALL ON roundcubemail.* to 'roundcube'@'localhost';
mysql> FLUSH PRIVILEGES;
mysql> exit
download dulu sourcecode dari Roundcube dari halaman resmi github mereka di https://github.com/roundcube/roundcubemail/releases. Contohnya, kita download Roundcube 1.4.3.
wget https://github.com/roundcube/roundcubemail/releases/download/1.4.3/roundcubemail-1.4.3-complete.tar.gz
kemudian ekstrak dan pindah folder hasil ekstrak ke /var/www/html/
tar -zxvf roundcubemail-1.4.3-complete.tar.gz
mv roundcubemail-1.4.3 /var/www/html/roundcubemail
setelah itu chmod dan chown folder-foldernya:
chown -R apache:apache /var/www/html/roundcubemail
chmod -R 755 /var/www/html/roundcubemail
buat config apache baru untuk Roundcube:
[sourcecode]
<VirtualHost *:80>
ServerAdmin admin@contoh.com
ServerName roundcube.contoh.com
DocumentRoot /var/www/html/roundcubemail
<Directory /var/www/html/roundcubemail>
Allowoverride all
</Directory>
</VirtualHost>
[/sourcecode]
Restart apache.
Setelah itu buka browser pada komputer dan buka halaman http://roundcube.contoh.com/ (sesuaikan sendiri) dan lanjutkan proses instalasi lewat browser.