• 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

Install Owncloud 7 on Ubuntu 14.04 LTS Server

November 6, 2014 by Sharad Chhetri

We are back again with Owncloud installation tutorial.In this post we will learn, how to install Owncloud 7 on Ubuntu 14.04 server. In our previous post , we have installed Owncloud 6 on Ubuntu 14.04 LTS server. Now Owncloud team presenting an awesome 7th version. It has many features. One of the known is ownCloud 7 Sneak Peek: More Sharing .

To know more about Owncloud 7 version and its features, we will suggest you to visit Owncloud 7 webpage.

How to install Owncloud 7

Follow the given below steps to achieve the succesful installation of Owncloud 7 on your Ubuntu 14.04 LTS Server.

1. Install MySQL Server

Installing mysql server 5.6 on Ubuntu 14.04 is quite easy , you have to just simply run the below given command.
At the time of writing this MySQL version 5.6 stable release was available whereas MySQL 5.7 was on preview release. Hence, we are prefer to go with stable release.

sudo apt-get update
sudo apt-get install mysql-server-5.6

Set the MySQL root password when it is prompted on screen and reconfirm the password also.Here is the below given screenshot.
Owncloud

Owncloud MySQL

2. Create Owncloud database and its user in MySQL

Now MySQL server is installed in system. Create database and user in MySQL for Owncloud.
For security point of view we are not using MySQL root user in Owncloud.

Owncloud Database Name : owncloudDB
Owncloud MySQL User : ownclouduser
Password for MySQL User (ownclouduser) : Password (Replace this and use your strong password)

Here is given below summary for creating database,user in MySQL server for Owncloud.

1. login into mysql server mysql -u root -p
2. Create database create database owncloudDB;
3. Create User and set password CREATE USER 'ownclouduser'@'localhost' IDENTIFIED BY 'Password';
4. Grant privileges user on database GRANT ALL ON owncloudDB.* TO 'ownclouduser'@'localhost';
5. Flush privileges flush privileges;
6. And exit exit

The below given is the reference from our system.

sharad@ubuntu:~$ mysql -u root -p
Enter password: 
Welcome to the MySQL monitor.  Commands end with ; or g.
Your MySQL connection id is 44
Server version: 5.6.19-0ubuntu0.14.04.1 (Ubuntu)

Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or 'h' for help. Type 'c' to clear the current input statement.

mysql> create database owncloudDB;
Query OK, 1 row affected (0.04 sec)

mysql> 
mysql> CREATE USER 'ownclouduser'@'localhost' IDENTIFIED BY 'Password';
Query OK, 0 rows affected (0.07 sec)

mysql> 
mysql> show databases;
+--------------------+
| Database           |
+--------------------+
| information_schema |
| mysql              |
| owncloudDB         |
| performance_schema |
+--------------------+
4 rows in set (0.00 sec)

mysql> 
mysql> GRANT ALL ON owncloudDB.* TO 'ownclouduser'@'localhost';
Query OK, 0 rows affected (0.04 sec)

mysql> 
mysql> flush privileges;
Query OK, 0 rows affected (0.02 sec)

mysql> exit
Bye
sharad@ubuntu:~$ 

Install Apache web server, PHP and PHP-MySQL extension

For web server we will install Apache server and by defualt in Ubuntu 14.04 LTS, it will install Apache 2.4 version .
Owncloud is PHP based, so installing PHP also.
To connect the MySQL from PHP code, we will install PHP-MySQL module.

sudo apt-get install apache2 php5 php5-mysql

The following extra packages will be installed by default. If not happened, install it by using apt-get command just as we are doing with other packages:

apache2-bin apache2-data libapache2-mod-php5 libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap php5-cli php5-common php5-json php5-readline ssl-cert

Enabling rewrite module in Apache

The Owncloud will use .htaccess with some rewrite rule. Hence to make it working enable rewrite module.

sudo a2enmod rewrite
sudo service apache2 restart

Add Owncloud repository

First install apt key.

wget http://download.opensuse.org/repositories/isv:ownCloud:community/xUbuntu_14.04/Release.key
sudo apt-key add - < Release.key 

Add Owncloud repository information in apt.

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

Installing Owncloud 7

The owncloud apt repository information is saved in system ( at /etc/apt/sources.list.d/owncloud.list).

Now it is time to get the awesome Owncloud 7.Run the below given command.

sudo apt-get update
sudo apt-get install owncloud

Setup Owncloud via Web browser

The further steps will be done on we browser. So open your favorite web browser like firefox/chrome/midori .

Our Ubuntu server ip address is 192.168.56.102 . Check your system ip address by using command - ifconfig

First take the backup of Apache's owncloud.conf original file.

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

Lets have take a look on owncloud.conf file. The given below is default setup for owncloud.

cat /etc/apache2/conf.d/owncloud.conf
 
Alias /owncloud /var/www/owncloud

  AllowOverride All

Open the web browser and in address bar type server ip address with /owncloud .
Give administrator user name and password for your owncloud.

owncloud 7

Click on "Storage & database". Then click on "MySQL/MariaDB" - it will show other fields related to database information.

Fill up the information which we have set at Step 2. Create Owncloud database and its user in MySQL
Owncloud 7

It will take some time and in next screen you will get welcome page. Close the welcome page get the world of Owncloud 7 on your web browser.

owncloud3

owncloud4

I have tried to make it simple installation. Advanced user can also set, IP based and domain based apache virtual host.

Share this:

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

Related posts:

  1. How to install Owncloud 6 on Ubuntu 14.04 LTS Server
  2. Setup self signed ssl certificate on Owncloud 6 in Ubuntu 14.04 LTS Server
  3. How to install Owncloud 6 in Ubuntu 13.10 Server
  4. Install owncloud 8 on ubuntu server 14.04
  5. htaccess file does not work : Owncloud 6 in Ubuntu 13.10 Server
  6. How to install owncloud in Ubuntu 12.10
  7. Install Openssh server on Ubuntu Desktop / Server
  8. How to install and configure FTP server in Ubuntu 12.04 LTS
  9. How to install Apache Web Server on Ubuntu 14.04 LTS (Trusty Tahr)
  10. Install MariaDB Server 10.0 on Ubuntu 14.04 LTS ( Trusty Tahr )

Filed Under: Linux Tagged With: owncloud 7

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

Install libjpegtran by using yum command in CentOS 6.x

Change default editor of crontab in Ubuntu

How to find when Operating system was installed in linux CentOS and Red Hat

Protect from w00tw00t.at.blackhats.romanian.anti-sec

Error: Could not stat() command file ‘/var/lib/nagios3/rw/nagios.cmd’!

How to find swap partition or file in linux

find command to search keyword in files recursively in linux

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