Difference between revisions of "Roundcube: Instalasi di Ubuntu 22.04"

From OnnoWiki
Jump to navigation Jump to search
Line 25: Line 25:
 
==Install PHP==
 
==Install PHP==
  
  sudo apt install php7.4 php7.4-gd php7.4-common php7.4-json php-imagick php7.4-imap php7.4-xml php7.4-opcache php7.4-mbstring php7.4-curl php7.4-zip  php7.4-bz2 php7.4-intl  
+
  sudo apt -y install php php-gd php-common php-json php-imagick \
 +
php-imap php-xml php-opcache php-mbstring php-curl php-zip \
 +
  php-bz2 php-intl  
  
 
Cek timezone https://www.php.net/manual/en/timezones.asia.php
 
Cek timezone https://www.php.net/manual/en/timezones.asia.php
  
 
+
  sed -i -e “s/^;date\.timezone =.*$/date\.timezone = ‘Asia/Jakarta’/” /etc/php8.1/apache2/php.ini
 
 
  sed -i -e “s/^;date\.timezone =.*$/date\.timezone = ‘Asia/Jakarta’/” /etc/php7.4/apache2/php.ini  
 
 
 
  
 
==Referensi==
 
==Referensi==
  
 
* https://tecadmin.net/how-to-install-roundcube-webmail-on-ubuntu-20-04/
 
* https://tecadmin.net/how-to-install-roundcube-webmail-on-ubuntu-20-04/

Revision as of 20:25, 7 December 2023

Sumber: https://tecadmin.net/how-to-install-roundcube-webmail-on-ubuntu-20-04/


Install MariaDB

sudo apt update
sudo apt install mariadb-server 
sudo systemctl start mariadb 
sudo systemctl enable mariadb 
sudo systemctl status mariadb

Pastikan mariadb "active (running)" dan berwarna hijau di systemctl status.

Setup database

sudo mysql -u root 
CREATE DATABASE roundcubedb DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci; 
CREATE USER dbuser@localhost IDENTIFIED BY 'testpassword'; 
GRANT ALL PRIVILEGES ON roundcubedb.* TO dbuser@localhost; 
FLUSH PRIVILEGES; 
exit

Install PHP

sudo apt -y install php php-gd php-common php-json php-imagick \
php-imap php-xml php-opcache php-mbstring php-curl php-zip \
php-bz2 php-intl 

Cek timezone https://www.php.net/manual/en/timezones.asia.php

sed -i -e “s/^;date\.timezone =.*$/date\.timezone = ‘Asia/Jakarta’/” /etc/php8.1/apache2/php.ini

Referensi