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

Read Some More Articles

43 Comments

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

    1. 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.

  2. 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,

  3. извиняюсь еще один вопрос как установить модель ldap для аутентификации active directory

    1. Login into Owncloud dashboard with Admin user.
      See at right hand side bar, bottom. Click on App button.
      Now list will be open, click on “LDAP user and group backend” , enable it.
      Click on Admin User > Admin (at top right corner of dashboard)
      Now from “LDAP user and group backend” option will be enabled and you can set the configuration

      Вход в OwnCloud приборной панели с пользователем Админ.
      Смотреть на правой стороне панели, внизу. Нажмите на кнопку App.
      Теперь список будет открыт, нажмите на кнопку “пользователь LDAP и группы серверной”, включите его.
      Нажмите на Админ пользователей> Администратор (в верхнем правом углу панели)
      Теперь из “пользователь LDAP и группы серверной” опция активируется, и вы можете настроить конфигурацию

        1. Для почтового сервера, у вас есть для устранения себя.
          Вещи, чтобы проверить во время рассылки устранение неполадок
          (1) Является ли от OwnCloud сервере, вы в состоянии связаться с вашим почтовым сервером
          (2) тип аутентификации используется в почтовому серверу
          (3) Проверьте журналы в Mail Server
          (4) Кроме того, проверить журналы в OwnCloud сервере
          (5) Это ваш почтовый сервер учетные данные правильно

          For mail server ,you have to troubleshoot yourself.
          Things to check while mailing troubleshooting
          (1) Is from owncloud server,are you able to contact to your mail server
          (2) type of authentication used in Mail server
          (3) Check the logs in Mail Server
          (4) Also check the logs in owncloud server
          (5) Is your mail server credentials are correct

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.