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

sharadchhetri

Tutorials On Linux, Unix & Open Source

  • Home
  • Linux Commands
  • Resources
    • Learn Linux
  • My WordPress plugins

How to install owncloud in Debian Wheezy 7

August 8, 2013 by Sharad Chhetri 11 Comments

Installing owncloud in Debian is easy stuff. And hardly take a few minutes to install.I have posted some how to on installing owncloud in CentOS and Ubuntu as well.

The details of Debian server

IP Address: 10.0.0.24
OS info: Debian GNU/Linux 7 n l
arch: x86_64

To install owncloud in Debian Wheezy 7, follow the given below steps

Step 1 : Login into server and become super user (root)

sudo su -

OR

su -

Step 2: Run the below given command to add repo of owncloud and its repo key.

echo 'deb http://download.opensuse.org/repositories/isv:ownCloud:community/Debian_7.0/ /' >> /etc/apt/sources.list.d/owncloud.list 

wget http://download.opensuse.org/repositories/isv:ownCloud:community/Debian_7.0/Release.key
apt-key add - < Release.key  
apt-get update

Step 3: Install owncloud,mysql-server,apache2 and php5

apt-get install owncloud mysql-server apache2 php5

Note: while installation you will get screen of setting mysql root password. Hence set the mysql root password

Step 4: Now enable apache rewrite module.

a2enmod rewrite

Step 5: Login into mysql with user root and create database for owncloud. Here we are also creating owncloud user in mysql and only giving privileges to owncloud database.

Database Name: owncloud
MySQL User name: ownclouduser
Password of MySQL user(ownclouduser): GivePassword


# mysql -u root -p
(give mysql root password)

mysql> create database owncloud;

mysql> create user 'ownclouduser'@'localhost' IDENTIFIED BY 'GivePassword';

mysql> GRANT ALL ON owncloud.* TO 'ownclouduser'@'localhost';

mysql> flush privileges;

mysql> exit;

Step 6: Now open the webbrowser and type http://localhost/owncloud OR if you have installed in remote server then http://ip-address/owncloud.
Here I have installed the owncloud in remote server hence I am using debian server ip address 10.0.0.24.
Find the ip address of your server by using ifconfig command.

Set owncloud admin username and password. Here I am using username as admin,you can also use any other name and that username will be admin of owncloud web console.
After setting admin username and password, click on Advanced button and select MySQL

shot0002

Step 8: Now give all information of mysql database which you have set. And then click on "Finish Setup"

shot0005


After clicking Finish Setup,you will be redirected to Admin panel of owncloud. This is last step of owncloud server.
Enjoy uploading,downloading and sharing your stuffs.

shot0006

Share this:

  • Twitter
  • Facebook
  • More
  • Print
  • Email
  • LinkedIn
  • Reddit
  • Tumblr
  • Pinterest
  • Pocket
  • Telegram
  • WhatsApp
  • Mastodon

Related posts:

  1. How to install Seafile server in Debian Wheezy 7
  2. Debian Wheezy 7.1 package not found
  3. How to install owncloud in Ubuntu 12.10
  4. NonInteractive apt-get install in Debian
  5. Installing owncloud in Ubuntu 13.04
  6. How to configure self signed SSL certificate in owncloud Ubuntu
  7. Your data directory and files are probably accessible from the internet because the .htaccess file does not work owncloud
  8. how to mount NAS storage in owncloud to keep all users data
  9. How to rescan filesystem in owncloud 5
  10. Setup Owncloud 6 with self signed SSL certificate on Ubuntu 13.10

Filed Under: Linux, owncloud Tagged With: debian, owncloud

Reader Interactions

Comments

  1. E says

    July 8, 2014 at 5:42 am

    Thank you Sharad for the insights. I have tried a few ways of installing ownCloud and still receive the same message:
    After “reading state information” i receive “E: unable to locate package owncloud”. Do you know where this error stems from?

    Reply
    • sharadchhetri says

      July 9, 2014 at 2:27 am

      Thankyou Eric,

      Definitely we will solve this issue. I need some information from your side –
      1. What is the Debian system (Run the 2 command
      a. cat /etc/issue
      b. arch
      )
      2. I would like to know how many ways have you attempt to install owncloud .

      I believe the problem is related to owncloud-client.

      Meanwhile kindly read this post from owncloud forum http://forum.owncloud.org/viewtopic.php?f=14&t=15675

      Reply
  2. akhfa says

    January 25, 2014 at 3:52 am

    Very useful. But first time I saw php script as plain text when I access http://my.ip/owncloud. You can fix it by installing libapache2-mod-php5

    apt-get install libapache2-mod-php5
    or
    aptitude install libapache2-mod-php5

    I think you should add it 😀

    Reply
  3. zitom says

    November 15, 2013 at 9:25 pm

    Thank you Sharad. Very useful and well done.
    All the best,
    zitom

    Reply
    • sharad chhetri says

      November 16, 2013 at 2:33 am

      Thankyou Zitom

      Reply
  4. Roel says

    October 25, 2013 at 9:53 am

    Hey,

    Thank you for this great user friendly tutorial.
    everything working within a few minutes.

    could you make a similair one regarding making owncloud accessible from outside ones home network and maybe include how to set up selfsigned ssl connection.

    Thanks

    Reply
    • sharad chhetri says

      October 26, 2013 at 6:03 am

      Thanks Roel, for setting self signed ssl connection you can follow this tutorial https://sharadchhetri.com/2013/05/24/how-to-configure-self-signed-ssl-certificate-in-owncloud-ubuntu/ . The tutorial was written on Ubuntu but it is also applicable to Debian. Let me know if you face any issue

      Reply
  5. Robert says

    October 24, 2013 at 8:34 pm

    Vielen Dank für diese Anleitung für ownCloud.
    Ein super AddOn für meinen Schulserver.

    Reply
    • sharad chhetri says

      October 25, 2013 at 5:21 am

      Danke Robert, übersetzte ich Ihren Kommentar und froh zu wissen, dass Sie es verwenden in Ihrer Schule.

      Thankyou Robert, I translated your comment and glad to know you are using it in your school.

      Reply
  6. Alan Feather says

    October 13, 2013 at 6:18 pm

    Thank you for posting this easy to follow guide to installing ownCloud.

    I had mine working in 20 minutes.

    Reply
    • sharad chhetri says

      October 16, 2013 at 1:49 am

      Thanks Alan

      Reply

Leave a Reply Cancel reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Primary Sidebar

Our Social Media Presence

  • Facebook
  • GitHub
  • Twitter

Linux Command

What is Linux Internal And External Command

Linux Basic Commands With Examples For Every Beginner

tr command to convert lines to space , tab and vertical tab

smbpasswd command not found on CentOS 7 and RHEL 7

Solution : semanage command not found

Unix / Linux : How to print duplicate lines from file

More Posts from this Category

You Might Like These Articles!

simplecodesyntax wordpress plugin

SimpleCodeSyntax : My Another WordPress Plugin

Install Nginx

How To Install Nginx On Ubuntu 22.04 LTS

Install Latest Git package in Ubuntu Operating System

How To Always Install Latest Git Package In Ubuntu Operating System

Bash script for installing VirtualBox on Ubuntu 22.04 LTS Desktop

Install VirtualBox On Ubuntu 22.04 LTS Desktop (Bash Script)

libfuse

dlopen(): error loading libfuse.so.2 – Got Error On Ubuntu

Failed to open/create the internal network

VirtualBox Error: Failed to open/create the internal network

Always Useful Tips And Tricks

Recover Linux Grub Password in linux rescue mode CentOS/Red Hat

Print double hyphen sign simultaneously in post of Octopress

safest method to remove softlink in linux

Virtual Machine inaccessible status on VirtualBox 4.3

find command to search keyword in files recursively in linux

rsync all files,hidden files,symlinks,hardlinks to remotes Linux Server

GNU Screen

Explore 90+ Article On "Linux Tips And Tricks"

Copyright © 2023 ·
The material in this site cannot be republished either online or offline, without our permission.
Proudly Blogging From Bharat.

  • Contact
  • About Me
  • My WordPress plugins
  • Privacy Policy