How to Install OwnCloud in Debian
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 . . .![]()
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.
Enter the following credentials to access OwnCloud.
Comments ( 1 )