Install Nextcloud 15 PHP 7.3 MariaDB 10.3 CentOS 7
Install Nextcloud 15 PHP 7.3 MariaDB 10.3 CentOS 7 dengan mudah dilakukkan dengan menerapkan tutorial berikut. Nextcloud bisa di kolaborasikan dengan zimbra 8.7 keatas. Untuk menyimpan file besar bisa langsung dilakukkan melalui webclient zimbra tanpa harus membuka nextcloud. Pada nextcloud ini sudah bisa diakses melalui Mobile App dan Desktop Komputer. Zimbra dan Nextcloud harus di install pada server yang berbeda. Tidak bisa dilakukkan dalam satu server. Berikut tutorial saadwebid untuk melakukkan instalasi nextcloud di centOS 7.
1. Install Paket yang dibutuhkan
yum install -y epel-release yum-utils unzip curl wget nano bash-completion policycoreutils-python mlocate bzip2 screen firewalld telnet httpd yum -y install http://rpms.remirepo.net/enterprise/remi-release-7.rpm
2. Set Hostname dan TimeZone
hostnamectl set-hostname cloud.saad.my.id timedatectl set-timezone Asia/Jakarta
3. Update Centos
yum update -y
4. Disable php 5.4 dan enable php 7.3
sudo yum-config-manager --disable remi-php54 sudo yum-config-manager --enable remi-php73
5. Jalankan service httpd
systemctl enable httpd.service systemctl start httpd.service
6. Install php 7.3
yum install -y php php-gd php-mbstring php-intl php-pecl-apcu php-mysqlnd php-pecl-redis php-opcache php-imagick php-pecl-zip php-xml php-process
7. Install MariaDB 10.3
nano /etc/yum.repos.d/maria10-3.repo
Masukkan line berikut
# MariaDB 10.3 CentOS repository list - created 2018-11-19 23:14 UTC # http://downloads.mariadb.org/mariadb/repositories/ [mariadb] name = MariaDB baseurl = http://yum.mariadb.org/10.3/centos7-amd64 gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB gpgcheck=1
Install mariaDB
yum install -y mariadb mariadb-server
8. Buat direktori baru untuk file nextcloud
mkdir -p /var/www/html/cloud.saad.my.id/public_html chown apache.apache -R /var/www/html/cloud.saad.my.id
9. Download nextcloud dan ekstrak
cd /var/www/html/cloud.saad.my.id/public_html mkdir data wget https://download.nextcloud.com/server/releases/nextcloud-15.0.9.zip unzip nextcloud-*.zip cd nextcloud/ mv * /var/www/html/cloud.saad.my.id/public_html/ mv .htaccess /var/www/html/cloud.saad.my.id/public_html/ chown -R apache.apache /var/www/html/cloud.saad.my.id/public_html/*
10. Buat virtualhost
vi /etc/httpd/conf.d/nextcloud.conf
Masukkan line berikut
<VirtualHost *:80> DocumentRoot /var/www/html/cloud.saad.my.id/public_html/ ServerName cloud.saad.my.id <Directory "/var/www/html/cloud.saad.my.id/public_html/"> Require all granted AllowOverride All Options FollowSymLinks MultiViews SetEnv HOME /var/www/html/cloud.saad.my.id/public_html SetEnv HTTP_HOME /var/www/html/cloud.saad.my.id/public_html </Directory> </VirtualHost>
11. Beri akses http dan https di firewall
systemctl start firewalld systemctl enable firewalld firewall-cmd --zone=public --add-service=http --permanent firewall-cmd --zone=public --add-service=https --permanent firewall-cmd --reload
12. Beri akses nextcloud pada selinux
semanage fcontext -a -t httpd_sys_rw_content_t '/var/www/html/cloud.saad.my.id/public_html/data(/.*)?' semanage fcontext -a -t httpd_sys_rw_content_t '/var/www/html/cloud.saad.my.id/public_html/config(/.*)?' semanage fcontext -a -t httpd_sys_rw_content_t '/var/www/html/cloud.saad.my.id/public_html/apps(/.*)?' semanage fcontext -a -t httpd_sys_rw_content_t '/var/www/html/cloud.saad.my.id/public_html/.htaccess' semanage fcontext -a -t httpd_sys_rw_content_t '/var/www/html/cloud.saad.my.id/public_html/.user.ini' semanage fcontext -a -t httpd_sys_rw_content_t '/var/www/html/cloud.saad.my.id/public_html/3rdparty/aws/aws-sdk-php/src/data/logs(/.*)?' restorecon -Rv '/var/www/html/cloud.saad.my.id/public_html/' setsebool -P httpd_can_network_connect on
13. Buat database nextcloud
Jalankan database mariadb
systemctl start mariadb
Enable database mariadb
systemctl enable mariadb
Jalankan konfigurasi awal
mysql_secure_installation
login mariadb dengan user root
mysql -uroot -p
Buat database dengan nama nextcloud
CREATE DATABASE `nextcloud`;
Buat user dan password untuk database nextcloud
CREATE USER 'nextcloud' IDENTIFIED BY 'Password';
Beri permission user nextcloud untuk akses dan menggunakan mariaDB Server
GRANT USAGE ON *.* TO 'nextcloud'@localhost IDENTIFIED BY 'Password';
Beri privileges user nextcloud untuk database nextcloud
GRANT ALL privileges ON `nextcloud`.* TO 'nextcloud'@localhost;
Terapkan perubahan konfigurasi
FLUSH PRIVILEGES;
Verifikasi user nextcloud sudah benar diberikan permission
SHOW GRANTS FOR 'nextcloud'@localhost;
14. Install Nextcloud 15
Buka http://cloud.saad.my.id/
Selesai
Bila membutuhkan layanan implementasi nextcloud bisa menghubungi kami melalui Contact atau WhatsApp Chat
Berikut layanan yang ada di saadwebid terkait zimbra
Layanan Jasa Maintenance Zimbra
Layanan Jasa Migrasi Zimbra Mail Server
VPS/Cloud Zimbra
SSL Zimbra Mail Server
SMTP Relay