• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

Jaranguda

Belajar Mengajar

  • Home
  • Sponsor/Jasa
  • Tentang

Install Owncloud 10 PHP 7.1 MySQL Debian 8

Last Updated on 6 June 2017 By tommy Leave a Comment

Untuk memudahkan tutorial ini saya akan menggunakan domain owncloud.jaranguda.com. Ingat untuk mengarahkan A record DNS ke IP Server anda.
megarahkan A DNS ke IP Server

Install MySQL Server

apt-get install mysql-server -y

Buat password root untuk MySQL anda
buat password root MySQL Debian 8
masukkan sekali lagi
masukkan password root MySQL sekali lagiDebian 8
buat database untuk owncloud

create database owncloud;
GRANT ALL PRIVILEGES ON owncloud.* TO "owncloud"@"localhost" IDENTIFIED BY "eJrwt3gbdVtbWWYgPwro";

Database : owncloud
User : owncloud
Password : eJrwt3gbdVtbWWYgPwro

Install PHP 7.1

apt-get install php7.1 php7.1-cli php7.1-common php7.1-gd php7.1-xmlrpc php7.1-fpm php7.1-curl php7.1-intl php7.1-mcrypt php7.1-imagick php7.1-mysqlnd php7.1-zip php7.1-xml php7.1-mbstring  -y

Install Webserver NGINX

apt-get install nginx -y

edit file /etc/nginx/nginx.conf
ubah

user  nginx;

menjadi

user  www-data;

Folder tempat menyimpan owncloud

mkdir /var/www
cd /var/www
wget https://download.owncloud.org/community/owncloud-10.0.2.zip
unzip owncloud-10.0.2.zip 
chown www-data:www-data -R /var/www/owncloud

Buat file /etc/nginx/conf.d/owncloud.jaranguda.com.conf

server {
    listen       80;
    server_name  owncloud.jaranguda.com;
    root /var/www/owncloud/;
 
    location / {
        rewrite ^/remote/(.*) /remote.php last;
        rewrite ^(/core/doc/[^\/]+/)$ $1/index.html;
        try_files $uri $uri/ =404;
    }
 
    location ~ \.php(?:$|/) {
        fastcgi_split_path_info ^(.+\.php)(/.+)$;
        include fastcgi_params;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        fastcgi_param PATH_INFO $fastcgi_path_info;
        fastcgi_param HTTPS on;
        fastcgi_param modHeadersAvailable true; #Avoid sending the security headers twice
        fastcgi_pass unix:/run/php/php7.1-fpm.sock;
        fastcgi_intercept_errors on;
    }
}

restart nginx

systemctl restart nginx

Install SSL Lets Encrypt

Install certbot

echo "deb http://ftp.debian.org/debian jessie-backports main" >> /etc/apt/sources.list
apt-get update
apt-get install certbot python-ndg-httpsclient -t jessie-backports -y

Request SSL

certbot certonly --webroot -w /var/www/owncloud/ -d owncloud.jaranguda.com

Yang perlu di input
1. Enter email address (used for urgent renewal and security notices) (Enter ‘c’ to
cancel): [email protected]
2. (A)gree/(C)ancel: A

SSL letsecrypt debian 8

buka file /etc/nginx/conf.d/owncloud.jaranguda.com.conf dibagian paling bawah tambahkan

server {
 
    listen 443 http2;
    ssl    on;
 
    server_name  owncloud.jaranguda.com;
    root /var/www/owncloud/;
 
    location / {
        rewrite ^/remote/(.*) /remote.php last;
        rewrite ^(/core/doc/[^\/]+/)$ $1/index.html;
        try_files $uri $uri/ =404;
    }
 
    location ~ \.php(?:$|/) {
        fastcgi_split_path_info ^(.+\.php)(/.+)$;
        include fastcgi_params;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        fastcgi_param PATH_INFO $fastcgi_path_info;
        fastcgi_param HTTPS on;
        fastcgi_param modHeadersAvailable true; #Avoid sending the security headers twice
        fastcgi_pass unix:/run/php/php7.1-fpm.sock;
        fastcgi_intercept_errors on;
    }
 
    ssl_certificate    /etc/letsencrypt/live/owncloud.jaranguda.com/fullchain.pem;
    ssl_certificate_key    /etc/letsencrypt/live/owncloud.jaranguda.com/privkey.pem;
 
}

Ingat untuk mengganti server_name dan lokasi /etc/letsencrypt/live/owncloud.jaranguda.com sesuaikan dengan domain anda.

restart nginx

systemctl restart nginx

Install owncloud

Buka http://subdomain.domain.com atau http://IP.SERVER/
owncloud debian 8 jaranguda

Isikan semua inputan
owncloud debian 8 fill the blank jaranguda
Untuk user yang akan dibuat disini otomatis menjadi admin. Username, Password, Database lihat diatas seperti yang kita buat sebelumnya.
Akhiri dengan mengklik Finish.

Halaman Login Owncloud
halaman login owncloud x

Tulisan menarik lainnya

  • Nginx SSL di Debian

    Untuk instalasi bisa dilihat di Instalasi nginx PHP MySQL (LEMP) di Debian 7. Disini kita…

  • Install PHP 7.1 Nginx MariaDB WordPress di CentOS 7

    Sekarang ini WordPress merupakan pilihan utama untuk blog, situs perusahaan, situs belanja, dan banyak lainnya.…

  • Instalasi nginx PHP MySQL (LEMP) di Debian 7

    Debian digabungkan dengan Nginx, PHP, dan MySQL (MariaDB) adalah kombinasi yang tepat dan powerfull untuk…

  • Instalasi nginx PHP MySQL (LEMP) di Debian 8

    Ditutorial kali ini kita akan menginstall Nginx, PHP dan MySQL di Debian 8 (Jessie). Upgrade…

Filed Under: Linux Tagged With: owncloud

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

Pencarian

Tanya Jawab tentang DevOps SRE CPE, gabung di https://t.me/devopsindonesia

Terbaru

  • Cara Mengganti Port Screen Sharing macOS
  • Cara Menonaktifkan Pager di macOS
  • Cara Mengupdate Nama Apple silicon-as-a-Service Scaleway
  • Cara Force Delete Namespace di Kubernetes
  • Install PHP MariaDB di Mac Monterey

Komentar

  • mazda on Tutorial Lengkap Install Mail Server Postfix Dovecot MariaDB di CentOS 7
  • adi on Menggunakan Mikrotik Sebagai SSH Client
  • aris u on Solusi Simple Queue Mikrotik Tidak Berjalan
  • Bowo on Cara Mematikan SSID Molecool Balifiber
  • aris on Solusi Simple Queue Mikrotik Tidak Berjalan

Tulisan Populer

  • Password Router Huawei HG8245H5 Indihome 1.2m views
  • Password Terbaru ZTE F609 Indihome 784.5k views
  • Password Superadmin Huawei HG8245A 318.3k views
  • Cara Setting Manual Modem GPON ZTE F609 Indihome 273.1k views
  • Cara Setting Wireless ZTE F609 Indihome 257.1k views
  • Mengaktifkan Port LAN di Huawei HG8245 Indihome 169.9k views
  • Akses UseeTV Indihome via Wireless ZTE F609 156.8k views
  • Kemana Menghilangnya Saldo BCA 50 ribu 153.2k views
  • Cara Reset Password ZTE F609 Indihome 147.6k views
  • Cara Setting DHCP Server Modem/Router ZTE F609 113.6k views

Kategori

  • Delphi
  • dll
  • Gambas
  • Internet
  • Java
  • Lazarus
  • Linux
  • PHP
  • Review
  • Teknologi

Sponsor

kadal.id
carakami.com
kuotabisa.com
Untuk jadi sponsor, hubungi kita lewat halaman sponsor
© 2021. Jaranguda
  • Linux
  • PHP
  • Internet
  • Teknologi
  • Delphi
  • Gambas
  • Java