• Categories
    Category
  • Categories
    Category
  • News
  • Tutorials
  • Forums
  • Tags
  • Users
Tutorial Comments FAQ Related Articles

How to Install OwnCloud in Debian

800

To install OwnCloud in Debian

OwnCloud is an opensource file sharing software that used to sync and share file. It allows the users to share files that are hosted on the own server. It provides access to files through an intuitive web interface. Many apps and addons are available for ownCloud including PDF viewer, email client, calendar and task tracker. Installation of OwnCloud in Debian is explained in this article.


Installation of OwnCloud

Add the repo file to the source list directory.

root@linuxhelp:~# echo ' deb http://download.opensuse.org/repositories/isv:/ownCloud:/community/Debian_8.0/ /'  > >  /etc/apt/sources.list.d/owncloud.list

Move the added repository file to ' /tmp/' directory

root@linuxhelp:~#cd /tmp

Download the OwnCloud key file for installation.

root@linuxhelp:/tmp# wget http://download.opensuse.org/repositories/isv:ownCloud:community/Debian_8.0/Release.key
--2016-11-17 06:21:22--  http://download.opensuse.org/repositories/isv:ownCloud:community/Debian_8.0/Release.key
Resolving download.opensuse.org (download.opensuse.org)... 195.135.221.134, 2001:67c:2178:8::13
Connecting to download.opensuse.org (download.opensuse.org)|195.135.221.134|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: http://download.opensuse.org/repositories/isv:ownCloud:/community/Debian_8.0/Release.key [following]
--2016-11-17 06:21:22--  http://download.opensuse.org/repositories/isv:ownCloud:/community/Debian_8.0/Release.key
Reusing existing connection to download.opensuse.org:80.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: http://download.opensuse.org/repositories/isv:/ownCloud:/community/Debian_8.0/Release.key [following]
--2016-11-17 06:21:23--  http://download.opensuse.org/repositories/isv:/ownCloud:/community/Debian_8.0/Release.key
Reusing existing connection to download.opensuse.org:80.
HTTP request sent, awaiting response... 200 OK
Length: 1098 (1.1K) [application/pgp-keys]
Saving to: ‘ Release.key’ 

Release.key         100%[=====================> ]   1.07K  --.-KB/s   in 0s     

2016-11-17 06:21:23 (101 MB/s) - ‘ Release.key’  saved [1098/1098]

Once the key file is downloaded, add it by using ' apt-key add' command.

root@linuxhelp:/tmp# apt-key add - <  Release.key
OK

Update your apt source with the following command.

root@linuxhelp:/tmp# apt-get update
Ign http://dl.google.com stable InRelease
Hit http://dl.google.com stable Release.gpg                                    
Hit http://dl.google.com stable Release                                        
Hit http://ftp.debian.org jessie-updates InRelease                             
Ign http://download.opensuse.org  InRelease                                    
Hit http://dl.google.com stable/main amd64 Packages                            
.
.
.
Hit http://ftp.debian.org stable/main Translation-en                           
Hit http://security.debian.org jessie/updates/main Translation-en              
Hit http://ftp.debian.org stable/non-free Translation-en                       
Ign http://download.opensuse.org  Translation-en_US                
Ign http://download.opensuse.org  Translation-en
Fetched 9,128 B in 3s (2,364 B/s)
Reading package lists... Done

Use ' apt-cache search' command to check the package.

root@linuxhelp:/tmp# apt-cache search owncloud
libowncloudsync-dev - development files for owncloudsync
libowncloudsync0 - ownCloudSync folder synchronization - libraries
owncloud-client - folder synchronization with an ownCloud server - GUI
owncloud-client-cmd - folder synchronization with an ownCloud server - cmd client
owncloud-client-doc - ownCloudSync folder synchronization - documentation
owncloud-client-l10n - ownCloudSync folder synchronization - localization
gnome-online-miners - Crawls through your online content
owncloud-apps - third party applications for ownCloud
owncloud-doc - documentation for ownCloud
.
.
.
.
owncloud-app-gallery - This is a transitional package and can be safely removed.
owncloud-app-provisioning-api - This is a transitional package and can be safely removed.
owncloud-app-templateeditor - This is a transitional package and can be safely removed.
owncloud-app-updater - This is a transitional package and can be safely removed.
owncloud-app-user-external - This is a transitional package and can be safely removed.
owncloud-app-user-ldap - This is a transitional package and can be safely removed.
owncloud-app-user-webdavauth - This is a transitional package and can be safely removed.
owncloud-config-apache - The ownCloud configuration for the apache web server
owncloud-server - The owncloud-server package

Now its time to install OwnCloud and set MySQL root password.

root@linuxhelp:/tmp# apt-get install owncloud
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  apache2 apache2-data apache2-utils curl libaio1 libapache2-mod-php5 libcurl3
  libdbd-mysql-perl libdbi-perl libhtml-template-perl libmcrypt4
  libmysqlclient18 libonig2 libpq5 libqdbm14 libterm-readkey-perl
  mysql-client-5.5 mysql-common mysql-server mysql-server-5.5
  mysql-server-core-5.5 owncloud-config-apache owncloud-server php-pear
  php-xml-parser php5 php5-cli php5-common php5-curl php5-gd php5-intl
  php5-json php5-ldap php5-mcrypt php5-mysqlnd php5-pgsql php5-readline
  php5-sqlite
Suggested packages:
  apache2-doc apache2-suexec-pristine apache2-suexec-custom libclone-perl
  libmldbm-perl libnet-daemon-perl libsql-statement-perl
.
.
.

OwnCloud-file-sharing-tool-mysql

OwnCloud-file-sharing-tool-configure-mysql

Creating config file /etc/php5/mods-available/curl.ini with new version
php5_invoke: Enable module curl for apache2 SAPI
php5_invoke: Enable module curl for cli SAPI
Setting up php5-ldap (5.6.27+dfsg-0+deb8u1) ...

Creating config file /etc/php5/mods-available/ldap.ini with new version
php5_invoke: Enable module ldap for apache2 SAPI
php5_invoke: Enable module ldap for cli SAPI
Setting up owncloud-server (8.1.9-12.1) ...
Setting up owncloud (8.1.9-12.1) ...
Setting up owncloud-config-apache (8.1.9-12.1) ...
Enabling conf owncloud.
To activate the new configuration, you need to run:
  service apache2 reload
apache2_invoke: Enable module rewrite
apache2_invoke owncloud: already enabled
Setting up php5-readline (5.6.27+dfsg-0+deb8u1) ...

Creating config file /etc/php5/mods-available/readline.ini with new version

php5_invoke: Enable module readline for apache2 SAPI
php5_invoke: Enable module readline for cli SAPI
Processing triggers for systemd (215-17+deb8u5) ...
Processing triggers for libc-bin (2.19-18+deb8u6) ...
Processing triggers for libapache2-mod-php5 (5.6.27+dfsg-0+deb8u1) ...

Create database for OwnCloud, once the installation is completed successfully.

root@linuxhelp:/tmp# mysql --defaults-file=/etc/mysql/debian.cnf
Welcome to the MySQL monitor.  Commands end with   or g.
Your MySQL connection id is 43
Server version: 5.5.53-0+deb8u1 (Debian)

Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type ' help '  or ' h'  for help. Type ' c'  to clear the current input statement.

mysql>  CREATE DATABASE owncloud 
Query OK, 1 row affected (0.00 sec)

mysql>  quit
Bye

Then create a directory for OwnCloud in var directory.

root@linuxhelp:/tmp# mkdir /var/owncloud

Here you need to change the owner permission.

root@linuxhelp:/tmp# chown www-data:www-data /var/owncloud

Use the following command to set execution permission.

root@linuxhelp:/tmp# chmod 750 /var/owncloud

Once the above is completed, open your browser with localhost IP.

OwnCloud-file-sharing-tool-open

Enter the following credentials to access OwnCloud.

OwnCloud-file-sharing-tool-credentials

OwnCloud-file-sharing-tool-files

Tags:
michael
Author: 

Comments ( 1 )

furios
The video you made is for internal access only. What and where do I need to change so I can access it from anywhere?
Add a comment

Frequently asked questions ( 5 )

Q

Will this Owncloud work with Nginx?

A

ownCloud's system requirements recommend using Apache 2.4 with mod_php. Although it is possible to use NGiNX, it is not officially supported. ownCloud has a community-maintained for Nginx.

Q

While trying to make an account in OwnCloud, it returns this error.
SQLSTATE[HY000][1045] Access denied for user 'user_test'@'localhost' (using password: yes)
How to resolve this?

A

Check whether the MySQL user has access to your Own cloud database.

Q

Security & setup warnings

The "X-Content-Type-Options" HTTP header is not configured to equal to "nosniff". How to overcome this warning?

A

In /etc/apache2/conf-available/ssl-params.conf. comment:



#Header always set X-Frame-Options DENY

#Header always set X-Content-Type-Options nosniff

Q

What is a Federated System?

A

A Federated System is another OwnCloud or OpenCloudMesh supporting cloud service.

Q

How to Enforce password protection?

A

Check this option to force users to set a password on all public share links. This does not apply to the local user and group shares.

Related Tutorials in How to Install OwnCloud in Debian

Related Tutorials in How to Install OwnCloud in Debian

How to install Gparted on Debian 9.0
How to install Gparted on Debian 9.0
Sep 13, 2017
How to Install Pligg - Content Management System
How to Install Pligg - Content Management System
Jul 26, 2016
Installation SSL Certificate on Ubuntu/Linuxmint/Debian to Secure Apache
Installation SSL Certificate on Ubuntu/Linuxmint/Debian to Secure Apache
Sep 19, 2018
How to install and update OpenSSL on Debian 11.3
How to install and update OpenSSL on Debian 11.3
Oct 21, 2022
How to install qBittorrent on Debian 9.0
How to install qBittorrent on Debian 9.0
Sep 8, 2017
How to Install FileZilla in Debian
How to Install FileZilla in Debian
Nov 29, 2016
How to install Nmap on Debian 9.0
How to install Nmap on Debian 9.0
Sep 9, 2017
How to install Webmin in OpenSUSE
How to install Webmin in OpenSUSE
Nov 7, 2016

Related Forums in How to Install OwnCloud in Debian

Related Forums in How to Install OwnCloud in Debian

MariaDB
ryan class=
E: Unable to locate package mariadb-server
Sep 18, 2017
Linux
AadrikaAnshu class=
How to add timestamps to history On Any Linux Machine
Jun 18, 2019
vim
jacob class=
Change true vi-compatible editor from Debian Vim-compatible
Nov 8, 2021
debian
anandaamatya class=
RedNotebook on Debian buster
Jun 30, 2020
Ubuntu
Kirin class=
Videos Always Micro-Shutter
Mar 8, 2019
debian
luke class=
workbench for debian
May 26, 2017
debian
teddybarax class=
Softwae installation problem
Aug 24, 2020
debian
colbyvance class=
Trouble Installing Debian 10.8.0 (Gnome)
Feb 28, 2021

Related News in How to Install OwnCloud in Debian

Related News in How to Install OwnCloud in Debian

Debian IceDove kicks the bucket after Thunderbird revisits Debian Repositories
Debian IceDove kicks the bucket after Thunderbird revisits Debian Repositories
Feb 28, 2017
Mass update of Jessie - A better alternative to new version?
Mass update of Jessie - A better alternative to new version?
May 8, 2017
Debian 9.2 ‘Stretch’ OS is here, download distro now
Debian 9.2 ‘Stretch’ OS is here, download distro now
Oct 9, 2017
Back To Top!
Rank
User
Points

Top Contributers

userNamenaveelansari
135850

Top Contributers

userNameayanbhatti
92510

Top Contributers

userNamehamzaahmed
32150

Top Contributers

1
userNamelinuxhelp
31040

Top Contributers

userNamemuhammadali
24500
Can you help Luk Van De Looverbosch ?
How to create a root ?

Hello,
How to create root@linuxhelp in Linux Mint 20.1 64-bit ?
Thanks in advance for your reply.
Best regards.

Networking
  • Routing
  • trunk
  • Netmask
  • Packet Capture
  • domain
  • HTTP Proxy
Server Setup
  • NFS
  • KVM
  • Memory
  • Sendmail
  • WebDAV
  • LXC
Shell Commands
  • Cloud commander
  • Command line archive tools
  • last command
  • Shell
  • terminal
  • Throttle
Desktop Application
  • Linux app
  • Pithos
  • Retrospect
  • Scribe
  • TortoiseHg
  • 4Images
Monitoring Tool
  • Monit
  • Apache Server Monitoring
  • EtherApe 
  • Arpwatch Tool
  • Auditd
  • Barman
Web Application
  • Nutch
  • Amazon VPC
  • FarmWarDeployer
  • Rukovoditel
  • Mirror site
  • Chef
Contact Us | Terms of Use| Privacy Policy| Disclaimer
© 2025 LinuxHelp.com All rights reserved. Linux™ is the registered trademark of Linus Torvalds. This site is not affiliated with linus torvalds in any way.