Facebook Twitter Instagram
    TecAdmin
    • Home
    • FeedBack
    • Submit Article
    • About Us
    Facebook Twitter Instagram
    TecAdmin
    You are at:Home»Linux Tutorials»How to Install ownCloud 10 on Debian 9 (Stretch)

    How to Install ownCloud 10 on Debian 9 (Stretch)

    By RahulMarch 7, 20203 Mins Read

    ownCloud is a software application provide self hosted file hosting services. You can install owncloud application on your server and use it as your own file server. Where you can easily upload/sync files from client machine. It also provides options to sync and share across devices—all under your control. This tutorial will help you to set up your own file hosting server with the ownCloud on Debian 9 Strech Linux operating system.

    Advertisement

    Step 1 – Prerequsites

    The first of all, to set up ownCloud you must have running LAMP server on your Debian 9 system. If you already have running LAMP stack skip this step else use the following commands to install it.

    Install PHP

    Let’s start with the installation of PHP 5.6 or higher version on your Debian 9 Stretch system.

    wget -q https://packages.sury.org/php/apt.gpg -O- | sudo apt-key add -
    sudo echo "deb https://packages.sury.org/php/ stretch main" | tee /etc/apt/sources.list.d/php.list
    
    sudo apt-get update
    sudo apt-get install -y php php-gd php-curl php-zip php-dom php-xml php-simplexml php-mbstring
    

    Install Apache2

    sudo apt-get install -y apache2 libapache2-mod-php
    

    Install MySQL

    sudo apt-get install -y mysql-server php-mysql
    

    Step 2 – Download ownCloud Source

    After successfully configuring lamp server on your system, Let’s download latest ownCloud from its official website.

    cd /tmp
    wget https://download.owncloud.org/community/owncloud-10.4.0.tar.bz2
    

    Now extract downloaded archive under website document root and setup appropriate permissions on files and directories.

    cd /var/www/html
    sudo tar xjf /tmp/owncloud-10.4.0.tar.bz2
    sudo chown -R www-data:www-data owncloud
    sudo chmod -R 755 owncloud
    

    Now, remove the archive file.

    sudo rm -f /tmp/owncloud-10.4.0.tar.bz2
    

    Step 3 – Create MySQL Database and User

    After extracting code, let’s create a MySQL database and user account for configuring ownCloud. Use following set of command to login to MySQL server and create database and user.

    $ mysql -u root -p
    Enter password:
    
    mysql> CREATE DATABASE owncloud;
    mysql> GRANT ALL ON owncloud.* to 'owncloud'@'localhost' IDENTIFIED BY '_password_';
    mysql> FLUSH PRIVILEGES;
    mysql> quit
    

    Step 4 – Install ownCloud with Web Installer

    Now access the ownCloud directory on a web browser as below. Change localhost to your server IP address or domain name.

     http://localhost/owncloud/
    

    Enter new admin credentials to create an admin account and provide the location of the data folder.

    install owncloud 1

    Now slide your page down and input the database credentials and click on Finish Setup.

    install owncloud 2

    After completing setup you will get admin dashboard. Where you can create a user, groups, assigned them permissions etc.

    install owncloud Dashboard

    Congratulations, You have a working ownCloud instance on your Debian 9 Stretch system.

    filemanager owncloud
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email WhatsApp

    Related Posts

    What are the difference between SH and BASH

    What are the difference between SH and BASH?

    Understanding the Zombie Processes in Linux

    A Comprehensive Guide to Shutting Down or Rebooting Linux System

    View 2 Comments

    2 Comments

    1. Yiannis on May 28, 2019 10:10 am

      What a bad guide…
      localhost mysql
      localhost the web, default with apache2…
      no effort whatsover to make anything useful

      Reply
    2. Fábio Guedes on March 27, 2019 7:00 pm

      Hi, i´ve installed today (27-03-2019) on Debian 9 and display this message when i run http://server/owncloud.

      This version of ownCloud is not compatible with PHP 7.3
      You are currently running PHP 7.3.3-1+0~20190307202245.32+stretch~1.gbp32ebb2.

      Reply

    Leave A Reply Cancel Reply

    Advertisement
    Recent Posts
    • A Comprehensive Look at the Simple Mail Transfer Protocol (SMTP)
    • Understanding Basic Git Workflow: Add, Commit, Push
    • The Difference Between Git Reset –soft, –mixed, and –hard
    • Understanding the Staging Area in Git’s Workflow
    • Python Function with Parameters, Return and Data Types
    Facebook Twitter Instagram Pinterest
    © 2023 Tecadmin.net. All Rights Reserved | Terms  | Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.