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.confOptions 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.confOptions 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
Now it takes a few seconds to complete and suddenly you will get next screen opened like this
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
Leave a Reply