Difference between revisions of "Roundcube: Instalasi di Ubuntu"

From OnnoWiki
Jump to navigation Jump to search
Line 10: Line 10:
 
  php-imagick php7.2-intl php7.2-xml unzip wget curl
 
  php-imagick php7.2-intl php7.2-xml unzip wget curl
  
Ubah Timezone jika di perlukan
+
Ubah Timezone jika di perlukan (bisa di skip kalau untuk belajar saja)
  
 
  sudo vi /etc/php/7.2/apache2/php.ini
 
  sudo vi /etc/php/7.2/apache2/php.ini
Line 20: Line 20:
 
  sudo systemctl start apache2
 
  sudo systemctl start apache2
 
  sudo systemctl enable apache2
 
  sudo systemctl enable apache2
  sudo systemctl start mysql
+
  sudo systemctl start mysqld
  sudo systemctl enable mysql
+
  sudo systemctl enable mysqld
  
 
==Download Roundcube==
 
==Download Roundcube==
Line 27: Line 27:
 
Download
 
Download
  
 +
cd /usr/local/src
 
  wget https://github.com/roundcube/roundcubemail/releases/download/1.3.7/roundcubemail-1.3.7.tar.gz
 
  wget https://github.com/roundcube/roundcubemail/releases/download/1.3.7/roundcubemail-1.3.7.tar.gz
  
Line 39: Line 40:
 
==Database==
 
==Database==
  
Jika di perlukan buat menjadi secure
+
Jika di perlukan buat menjadi secure (bisa di skip jika untuk belajar saja)
  
 
  mysql_secure_installation
 
  mysql_secure_installation
Line 51: Line 52:
 
Konfigurasi database
 
Konfigurasi database
  
  mysql -u root -p
+
  mysql -u root -p123456
  
  MariaDB [(none)]> CREATE DATABASE roundcubedb;
+
  CREATE DATABASE roundcubedb;
  MariaDB [(none)]> CREATE USER 'roundcube'@'localhost' IDENTIFIED BY 'password';
+
  CREATE USER 'roundcube'@'localhost' IDENTIFIED BY 'password';
  MariaDB [(none)]> GRANT ALL PRIVILEGES ON roundcubedb.* to 'roundcube'@'localhost';
+
  GRANT ALL PRIVILEGES ON roundcubedb.* to 'roundcube'@'localhost';
  MariaDB [(none)]> FLUSH PRIVILEGES;
+
  FLUSH PRIVILEGES;
  MariaDB [(none)]> exit;
+
  exit;
  
 
Inisialisasi database
 
Inisialisasi database
Line 63: Line 64:
 
  cd /var/www/html/roundcube
 
  cd /var/www/html/roundcube
 
  mysql -u roundcube -p roundcubedb < SQL/mysql.initial.sql
 
  mysql -u roundcube -p roundcubedb < SQL/mysql.initial.sql
 +
 +
Masukan password "password"
  
 
==Konfigurasi Apache==
 
==Konfigurasi Apache==
Line 95: Line 98:
 
  sudo a2enmod rewrite
 
  sudo a2enmod rewrite
 
  sudo systemctl restart apache2
 
  sudo systemctl restart apache2
 +
 +
 +
Akses ke
 +
 +
http://ip-address-server/roundcube
 +
http://192.168.0.102/roundcube
  
 
==Referensi==
 
==Referensi==

Revision as of 08:01, 26 October 2018

sumber: https://www.howtoforge.com/tutorial/ubuntu-roundcube-latest/


Instalasi Apps Pendukung

sudo su
apt update
apt -y install apache2 mariadb-server php7.2 php7.2-gd \
php-mysql php7.2-curl php7.2-zip php7.2-ldap php7.2-mbstring \
php-imagick php7.2-intl php7.2-xml unzip wget curl

Ubah Timezone jika di perlukan (bisa di skip kalau untuk belajar saja)

sudo vi /etc/php/7.2/apache2/php.ini
date.timezone = Asia/Jakarta

Start

sudo systemctl start apache2
sudo systemctl enable apache2
sudo systemctl start mysqld
sudo systemctl enable mysqld

Download Roundcube

Download

cd /usr/local/src
wget https://github.com/roundcube/roundcubemail/releases/download/1.3.7/roundcubemail-1.3.7.tar.gz

Buka & Copy

tar -xvzf roundcubemail-1.3.7.tar.gz
mv roundcubemail-1.3.7 /var/www/html/roundcube
sudo chown -R www-data:www-data /var/www/html/roundcube
sudo chmod -R 775 /var/www/html/roundcube


Database

Jika di perlukan buat menjadi secure (bisa di skip jika untuk belajar saja)

mysql_secure_installation
Change the password for root ? N
Remove anonymous users? Y
Disallow root login remotely? Y
Remove test database and access to it? Y
Reload privilege tables now? Y

Konfigurasi database

mysql -u root -p123456
CREATE DATABASE roundcubedb;
CREATE USER 'roundcube'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON roundcubedb.* to 'roundcube'@'localhost';
FLUSH PRIVILEGES;
exit;

Inisialisasi database

cd /var/www/html/roundcube
mysql -u roundcube -p roundcubedb < SQL/mysql.initial.sql

Masukan password "password"

Konfigurasi Apache

Edit file

sudo vi /etc/apache2/sites-available/roundcube.conf

Tambahkan

<VirtualHost *:80>
        ServerName 192.168.0.102                          
        ServerAdmin admin@example.com
        DocumentRoot /var/www/html/roundcube 

        ErrorLog ${APACHE_LOG_DIR}/roundcube_error.log
        CustomLog ${APACHE_LOG_DIR}/roundcube_access.log combined 

        <Directory /var/www/html/roundcube>
                Options -Indexes
                AllowOverride All
                Order allow,deny
                allow from all
        </Directory>
</VirtualHost>

Save & close file

Aktifkan

sudo a2ensite roundcube
sudo a2enmod rewrite
sudo systemctl restart apache2


Akses ke

http://ip-address-server/roundcube
http://192.168.0.102/roundcube

Referensi