How to install Owncloud 6 on Ubuntu 14.04 LTS Server

Thanks to: http://sharadchhetri.com/

In this tutorial we will learn about, how to install Owncloud 6 on Ubuntu 14.04 LTS Server. Owncloud now a days very popular in Internet World. It is one the awesome alternate for Drop Box. Moreover it is free and Open Source software, primarily using for ‘file hosting’.
In case you are looking for creating your Own file hosting Server, Owncloud is more suitable for you. It is free and Open source, has many great features.
You can find many apps developed by Owncloud team and many volunteers in owncloud apps repository. You can also write the apps for Owncloud and submit in the repository . It will be great help to Owncloud community.
Currently, Owncloud has released version 6 series. You can read about the new features of Owncloud 6 from this link.

Installing Owncloud 6 on Ubuntu 14.04 LTS Server (Trusty Tahr)

In this practical, the installation has been done on Single Server, where Owncloud, Apache and MySQL are installed.
Requirements :
(1) Database Server : MySQL (version 5.6)
(2) Web Server : Apache (version 2.4)
(3) Operating System : Ubuntu 14.04 LTS Server Edition
(4) Web Application : Owncloud version 6.x
(5) Knowledge of IP based and Name based Virtual Hosting in Apache
Follow the given below steps to install Owncloud 6 on Ubuntu 14.04 LTS (Trusty Tahr)
(Step 1): Install MySQL Server
You can install MySQL 5.6 on Ubuntu 14.04 LTS . At the time of writing this post, it is the latest and stable release. The latest MySQL 5.6 version is available in Ubuntu repository, hence it can be installed via using apt-get command .
(Step 2) : Create MySQL user for Owncloud server
Now create mysql user for Owncloud server. The MySQL user will help the Owncloud Server to connect with Database. We also give full privilege to this MySQL user on Owncloud’s database.
The given below are the details which will create in MySQL Server.
Database Name : owncloud
MySQL User Name : ownclouduser
MySQL User’s Password : Password
Login into MySQL Server with root user (Use MySQL root password here).
( Step 3 ): Install Apache and PHP
For web server requirement, we are installing Apache . The Owncloud is PHP based application, hence we will install PHP version 5 . To connect PHP code with MySQL database, we will install the module named as php5-mysql.
(Step 4 ) : Enable rewrite module
The Owncloud application has .htaccess file which has some rewrite rules. Use below given command to enable rewrite module
(Step 5 ): Install Owncloud Server
Now in this step we will install owncloud package on Ubuntu 14.04 LTS
( Step 6 ): Move Owncloud data directory
By default, after installation of Owncloud its data directory is saved in /var/www .
In Ubuntu 14.04, default Apache 2.4 is shipped. You can see defualt DocumentRoot as /var/www/html in Apache 2.4 (Ubuntu 14.04 LTS) , which is different than previous Ubuntu version (Earlier it was only /var/www)
Move the Owncloud data directory to /var/www/html
(Step 7 ) : Configuring owncloud.conf file
By default, you will get owncloud.conf file in /etc/apache2/conf.d after owncloud installation.
Here we will do some changes, so that it should work with Apache 2.4 version
Take backup of original owncloud.conf file.
Move owncloud.conf file to /etc/apache2/sites-enabled
Unlink the default Apache Configuration file, known as 000-default.conf
Note: 000-default.conf is softlink
Edit the owncloud.conf file as given below .
YOU HAVE TWO OPTIONS EITHER CONFIGURE WITH IP BASED VIRTUAL HOST or NAME BASED VIRTUAL HOST.
I AM WRITING BOTH METHOD. YOU HAVE TO SELECT ONLY ONE METHOD TO EDIT owncloud.conf FILE

IP based Virtual Host

For configuring Apache we use IP Address of Server here. Which you can obtain by using ifconfigcommand
Paste given below contents in owncloud.conf file. NOTE: Replace 192.168.56.101 with your Server IP Address
OR

Name based Virtual Hosting

In case you have Domain name, you can use Name based Virtual Hosting .
Paste given below contents in owncloud.conf file. NOTE: Replace owncloud.example.com with your domain name.
(Step 8): Restart apache service
After doing configuration, restart apache service.
( Step 8 ): Installing Owncloud through Web Interface
* Open the Owncloud URL in Web Browser .
* Give Owncloud Dashboard administrator user name. We have given the name as “admin”
* Click on Advanced tab , it will open the Database option. Click on MySQL tab. And give the MySQL credentials, which we have already set up in Step 2
Then, finally click on Finish setup button. And that is it, you are into Owncloud Admin dashboard.
Owncloud 6 , Ubuntu 14.04 LTS
We would like you to explore awesome features of Owncloud. You can give your contribution to Owncloudproject, it will be wonderful gift to others.

For oficial repositories: https://software.opensuse.org/download/package?project=isv:ownCloud:community:nightly&package=owncloud

Comentarios

Entradas populares de este blog

Guía de herramientas básicas para estudiantes: 31 apps y webs imprescindibles para ayudarte con los estudios

Comando FOR para archivos BAT

How to Setup and Configure Your Own GitLab Server on Ubuntu 20.04