How to install Owncloud 6 in Ubuntu 13.10 Server

In this tutorial we will learn,how to install Owncloud 6 in Ubuntu 13.10 Server.Recently, the Owncloud community has released its new verison called Owncloud 6. Owncloud is one the best alternative for Dropbox and Google Drive. You can self host the Owncloud very quickly in short span of time.You can access,share and sync the data from owncloud from computers and mobile devices.

Detail of Server in which practical is done

Operating System: Ubuntu 13.10 Server editon
Operating System Architecture: x86_64
IP Address: 192.168.56.102

To install Owncloud 6 in Ubuntu 13.10,follow the given below steps

Step 1: Become a superuser

Login into Ubuntu System.Open the terminal and become a superuser by typing given below password

sudo su -

Step 2: Add Owncloud repository information in Apt source list file

Run the below command to add Owncloud repo URL in Apt source list file

apt-get install -y wget

sh -c "echo 'deb http://download.opensuse.org/repositories/isv:/ownCloud:/community/xUbuntu_13.10/ /' >> /etc/apt/sources.list.d/owncloud.list"

wget http://download.opensuse.org/repositories/isv:ownCloud:community/xUbuntu_13.10/Release.key

apt-key add - < Release.key  

apt-get update

Step 3: Install Web Server,Database Server,Owncloud package and PHP 5

Run the below given command to install apache,mysql-server,owncloud and php version 5. While installation it will ask to give new password for MySQL root user.Hence give new MySQL root password while installation.

apt-get install owncloud apache2 mysql-server php5 php5-mysql

Step 4: Edit the apache2.conf file

First take the backup of apache2.conf file,

cp -p /etc/apache2/apache2.conf /etc/apache2/apache2.conf.orig

Now edit the apache2.conf, find the line <Directory /var/www> .Now replace AllowOverride None to AllowOverride All as given below.
Note: I have edited with vim editor,use your favorite editor

vim /etc/apache2/apache2.conf


        Options Indexes FollowSymLinks
        AllowOverride All
        Require all granted

Step 5: Edit the owncloud.conf file

First we will take backup of owncloud.conf file. Clear all the contents from /etc/apache2/conf.d/owncloud.conf and paste below given content.

cp -p /etc/apache2/conf.d/owncloud.conf  /etc/apache2/conf.d/owncloud.conf.orig
vim /etc/apache2/conf.d/owncloud.conf 


    Options Indexes FollowSymLinks MultiViews
    AllowOverride All
    Require all granted

Step 6: Enable rewrite module in apache

Enable rewrite module in apache and restart the apache service

a2enmod rewrite

/etc/init.d/apache2 restart

Step 7: Create Database and user for owncloud in MySQL server

We will create database called owncloud and mysql user called ownclouduser.Now login into mysql server.Create mysql user and database plus grant privileges to user on the database.

First restart the mysql (If mysql server is running then not require)

/etc/init.d/mysql restart
mysql -u root -p
 
After login you will get the mysql prompt like this
mysql >
 
Now create a user and set the password. Use strong password
 
mysql> CREATE USER 'ownclouduser'@'localhost' IDENTIFIED BY 'Password';
 
create database called owncloud
 
mysql> create database owncloud;
 
Grant privileges to owncloud user in owncloud database
 
mysql> GRANT ALL ON owncloud.* TO 'ownclouduser'@'localhost';
 
mysql> flush privileges;
 
mysql> exit

Step 8: Install Owncloud from Web interface

Open the browser and type http://IP-address-Of-Server/owncloud .Fill all the information field as asked in Webinterface

User Name : Give Admin user name
Password : Give Admin user's password

Click on Advanced button

Data Folder: It will be selected by-default

In "configure the database" section,click on MySQL and fill

MySQL user : ownclouduser
Password : Give mysql ownclouduser password
Database Name : owncloud
Database Host: localhost

Owncloud 6

Now it takes a few seconds to complete and suddenly you will get next screen opened like this

Owncloud 6 dashboard

Now the installation is completed.Now you can start uploading,downloading,sharing the data in owncloud. With Admin user you can create user and install useful apps. Explore owncloud,it is awesome

Further Reading : Setup Owncloud 6 with Self Signed SSL Certificate in Ubuntu 13.10


Posted

in

,

by

Tags:

Comments

43 responses to “How to install Owncloud 6 in Ubuntu 13.10 Server”

  1. Evgeniy Popov Avatar
    Evgeniy Popov

    Привет есть вопрос как можно убрать вункцую восстановление пароля в owncloud

  2. Armen Avatar
    Armen

    Nice article but I have found this one
    http://example.com

    1. sharadchhetri Avatar
      sharadchhetri

      Hello Armen,

      Thankyou,I have checked your given URL. The post is nice. I have edited your comment because we do not promote backlinks.
      I hope you understand.

  3. fawzi Avatar
    fawzi

    hi Sharad,
    Thanks for the tutorial above.
    My ownCloud 6 server works fine on my Ubuntu 13.1, both with HTTP and HTTPS access.
    I also used the instructions from owncloud to allow uploads of files larger that 512MB and it works well in HTTP access. (http://doc.owncloud.org/server/6.0/admin_manual/configuration/configuring_big_file_upload.html)

    However in HTTPS access, my max file size limit is set back to 512MB. Do you know how to address this? is there a php file for https mode?
    thanks,

    1. sharad chhetri Avatar

      Welcome Fawzi,

      I am glad, my tutorial helped you.
      As per your question, php size upload limit can be controlled from php.ini file.
      Well, for SSL connection. I have written this post https://sharadchhetri.com/2014/03/09/setup-owncloud-6-self-signed-ssl-certificate-ubuntu-13-10/ .
      You have to modify some setting as per your requirement from above tutorial.

      Let me know in case still the issue is not solved.

      Regards
      Sharad

Leave a 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.

%d bloggers like this: