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.
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
6. And 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 -
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
Open the web browser and in address bar type server ip address with /owncloud .
Give administrator user name and password for your owncloud.
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
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.
I have tried to make it simple installation. Advanced user can also set, IP based and domain based apache virtual host.