Facebook Twitter Instagram
    TecAdmin
    • Home
    • Ubuntu 20.04
      • Upgrade Ubuntu
      • Install Java
      • Install Node.js
      • Install Docker
      • Install LAMP Stack
    • Tutorials
      • AWS
      • Shell Scripting
      • Docker
      • Git
      • MongoDB
    • FeedBack
    • Submit Article
    • About Us
    Facebook Twitter Instagram
    TecAdmin
    Home»Linux Distributions»Debian»How to Install ownCloud on Debian 10 (Buster)

    How to Install ownCloud on Debian 10 (Buster)

    RahulBy RahulMarch 5, 20203 Mins ReadUpdated:March 7, 2020

    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 the 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 10 Buster Linux system.

    Prerequsites

    • Shell access to Debian 10 Linux system
    • Sudo privilege account access

    Step 1 – Install LAMP

    The first of all, to set up ownCloud you must have running LAMP server on your Debian 10 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 10 Buster Linux system.

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

    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 the admin dashboard. Where you can create a user, groups, assigned them permissions, etc.

    install owncloud Dashboard

    Conclusion

    Congratulations, You have a working ownCloud instance on your Debian 10 Buster Linux system.

    owncloud
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email WhatsApp
    Previous ArticleHow to Install Magento2 on Ubuntu 18.04
    Next Article How to Start and Stop All Sites in IIS

    Related Posts

    How to Create a Sudo User in Debian

    Updated:June 26, 20212 Mins Read

    How To Install XRDP (Remote Desktop) on Debian 10

    4 Mins Read

    Initial Server Setup with Debian 10/9/8

    Updated:June 25, 20214 Mins Read

    How To Install and Configure VNC Server on Debian 10

    Updated:June 26, 20215 Mins Read

    How to Install TeamViewer on Debian 10

    3 Mins Read

    How to Install .NET Core on Debian 10

    2 Mins Read

    Leave A Reply Cancel Reply

    Recent Posts
    • How to Enable / disable Firewall in Windows
    • How to Install JAVA on Ubuntu 22.04
    • Switching Display Manager in Ubuntu – GDM, LightDM & SDDM
    • Changing the Login Screen Background in Ubuntu 22.04 & 20.04
    • How To Install PHP (8.1, 7.4 or 5.6) on Ubuntu 22.04
    Facebook Twitter Instagram Pinterest
    © 2022 Tecadmin.net. All Rights Reserved | Terms  | Privacy Policy

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