Rabu, 20 Juli 2022

Install Nextcloud 15 PHP 7.3 MariaDB 10.3 CentOS 7



Cara Install Nextcloud 15 PHP 7.3 MariaDB 10.3 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.toolsit89.co.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.toolsit89.co.id/public_html

chown apache.apache -R /var/www/html/cloud.toolsit89.co.id


9. Download nextcloud dan ekstrak

cd /var/www/html/cloud.toolsit89.co.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.toolsit89.co.id/public_html/

mv .htaccess /var/www/html/cloud.toolsit89.co.id/public_html/

chown -R apache.apache /var/www/html/cloud.toolsit89.co.id/public_html/*


10. Buat virtualhost

vi /etc/httpd/conf.d/nextcloud.conf


Masukkan line berikut

<VirtualHost *:80>

  DocumentRoot /var/www/html/cloud.toolsit89.co.id/public_html/

  ServerName  cloud.toolsit89.co.id

 

<Directory "/var/www/html/cloud.toolsit89.co.id/public_html/">

  Require all granted

  AllowOverride All

  Options FollowSymLinks MultiViews

  SetEnv HOME /var/www/html/cloud.toolsit89.co.id/public_html

  SetEnv HTTP_HOME /var/www/html/cloud.toolsit89.co.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.toolsit89.co.id/public_html/data(/.*)?'

semanage fcontext -a -t httpd_sys_rw_content_t '/var/www/html/cloud.toolsit89.co.id/public_html/config(/.*)?'

semanage fcontext -a -t httpd_sys_rw_content_t '/var/www/html/cloud.toolsit89.co.id/public_html/apps(/.*)?'

semanage fcontext -a -t httpd_sys_rw_content_t '/var/www/html/cloud.toolsit89.co.id/public_html/.htaccess'

semanage fcontext -a -t httpd_sys_rw_content_t '/var/www/html/cloud.toolsit89.co.id/public_html/.user.ini'

semanage fcontext -a -t httpd_sys_rw_content_t '/var/www/html/cloud.toolsit89.co.id/public_html/3rdparty/aws/aws-sdk-php/src/data/logs(/.*)?'

 

restorecon -Rv '/var/www/html/cloud.toolsit89.co.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.toolsit89.co.id/

Tags :

Cara Install Nextcloud 15 PHP 7.3 MariaDB 10.3 CentOS 7

Cara Install Nextcloud 15

Install Nextcloud 15 PHP 7.3 MariaDB 10.3 CentOS 7

Install Nextcloud 15

Cara Install Nextcloud 15 PHP 7.3 MariaDB 10.3 CentOS 7

Cara Install Nextcloud 15

Install Nextcloud 15 PHP 7.3 MariaDB 10.3 CentOS 7

Install Nextcloud 15

Cara Install Nextcloud 15 PHP 7.3 MariaDB 10.3 CentOS 7

Cara Install Nextcloud 15

Install Nextcloud 15 PHP 7.3 MariaDB 10.3 CentOS 7

Install Nextcloud 15


Jangan lupa bantu kami untuk mengembangkan chanel youtube kami Abu Habibie Usman ya dengan klik subscribe, like, komen dan shared ke sosmed temen-teman lainnya.

--------------------------------------------------------------------
Daftar Playlist Youtube Abu Habibie Usman
1. Review Barang https://s.id/1QDph 
2. Pengalaman IT Support https://s.id/-18bbR
3. Ulasan Singkat https://s.id/UlasSingkat
4. Kegiatan Keluarga Abu Habibie Usman : https://s.id/1QDrg
5. Bermain Game Sambil Murojaah Juz Amma: https://s.id/1QDsw
--------------------------------------------------------------------

Artikel Terkait

Install Nextcloud 15 PHP 7.3 MariaDB 10.3 CentOS 7
4/ 5
Oleh

Berlangganan

Suka dengan artikel di atas? Silakan berlangganan gratis via email