This is a basic level tutorial in which we will learn Howto Install OwnCloud in Ubuntu 14.04 ownCloud a web based application that can store and serve data from a central location. ownCloud allows you to host the software on your own machines (Servers), putting you in charge of your personal data.

 

ownCloud in Ubuntu 14.04

ownCloud (Open source)

What is owncloud?

ownCloud gives you universal access to your files through a web interface. It also provides a platform to easily view & sync your contacts, calendars and bookmarks across all your devices and enables basic editing right on the web. Installation has minimal server requirements, doesn’t need special permissions and is quick. ownCloud is extendable via a simple but powerful API for applications and plugins.

ownCloud started with a keynote by Frank Karlitschek at Camp KDE’10 where he talked about the need of a self-controlled free and open source cloud. To learn more visit the official website.

If I have to explain in simple words what Owncloud is I will simply say it’s just another Dropbox/GoogleDrive kinda application, But what makes it better than all other File Hosting Applications.. It’s Free & Open Source 🙂

It’s a good alternate for those who are a little concerned about NSA watching everything, You can setup Owncloud on your own Server, so you don’t have to host your data with 3rd parties, & you can ask your friends to join your Secure File Hosting Server.

 

Howto Install OwnCloud in Ubuntu 14.04

Below are the few steps we will follow to install ownCloud.

Step1: Basic Requirnments

The only requirement for installing ownCloud is LAMP Stack. You should have a running LAMP. Follow the tutorial LAMP in Ubuntu 14.04 .

 

Step2: Necassary Packages

Run the below command to install all the necessary packages for ownCloud.

apt-get install libapache2-mod-php5 php5-gd php5-json php5-curl php5-intl php5-mcrypt php5-imagick

Step 3: Download ownCloud.

Now we will Download the latest version of the ownCloud which as writing of this is 6.0.3 & untar it.

wget http://download.ownCloud.org/community/ownCloud-6.0.3.tar.bz2
tar -xjvf ownCloud-6.0.3.tar.bz2

Step 4: Create Database for ownCloud.

Now we will create a new Database for ownCloud & give access to the ownCloud user to the newly created database.

mysql -u root -p #Enter Root DB Credentials
create database ownCloud_db; #Create New Database
grant all privileges on ownCloud_db.* to 'ownCloud'@'localhost' identified by 'word2pass'; #Grant Access to the user of the newly created Database.
flush privileges; #Changes should take effect immediately.
quit #Quit MySQL

Step 5: Move the extracted files.

Move the extracted files of Step 3 to the Document Root of the Server, Which in my case is /home/ownCloud/public_html/

mv owncloud /home/owncloud/public_html/

Step6: Change permissions

Change Permissions of ownCloud directory so the Apache can read & write the directory.

chown -R www-data:www-data /home/owncloud/public_html/ownCloud

 

Step7: Enable SSL

The next thing to do is Enable SSL Module & Reload Apache.

a2enmod ssl
a2ensite default-ssl
service apache2 reload

Step8: Changes in Default SSL

Make the following changes in default-ssl.conf file. Add the below lines in the end of the file, Before the </virtualhost> closing tag.

vi /etc/apache2/sites-available/default-ssl.conf #Open file in vi editor

Add this portion in the end of the file just before the closing of the virtualhost.

<Directory /var/www/html/ownCloud>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Require all granted
</Directory>

Step 9: Enable Rewrite Mode & Restart Apache.

Enable mod_rewrite & restart Apache. (It is mandatory to Restart Apache after making any changes in it.)

a2enmod rewrite
/etc/init.d/apache2 restart

Step10: Access ownCloud via browser

All the work on Command Line is done now move towards the browser & access ownCloud.

http://server-ip/owncloud

 

Step11: Create New Admin User

Now you have to create a new admin account with which you will control ownCloud & add the details of the Database you created in Step4.

 

ownCloud in Ubuntu 14.04

How To Install ownCloud in Ubuntu 14.04

 

Step12: Congragulations! You have successfully Installed ownCloud in Ubuntu 14.04.

 

ownCloud in Ubuntu 14.04

Welcome to ownCloud.

 

 

ownCloud is a very powerful tool which can replicate all the functionality of many popular softwares of today! Advantage of using ownCloud is that the data is stored in a place that you own & control.

Explore the web interface. Many of the available extensions for ownCloud have the ability to import all the content from the applications like Dropbox & Google Drive to your ownCloud.

Feel free to leave feedback in the comment section after installing ownCloun in Ubuntu 14.04 8)