Owncloud which is now very very famous and considered as one the best free Open Source alternate of Dropbox. The steps of installation is almost similar as we did while installing Owncloud 7.
Checkout what is new in Owncloud 8.
Install Owncloud 8
Before starting , let’s share our practical scenario –
1. Owncloud : Owncloud version 8
2. Database : MySQL Server version 5.6
3. Web Server : Apache 2.4 (Default shipped with Ubuntu 14.04 LTS)
4. No. of server : One (Webserver,Database and Owncloud installed on single server)
Install MySQL Server :
First we will install MySQL Server 5.6 on Ubuntu Server. (Learn more about installing MySQL Server on Ubuntu)
sudo apt-get install mysql-server-5.6 sudo service mysql restart
While installation you will see couple of screen to set the MySQL root password. Hence, set the strong password for root user.
Now login into MySQL Server with root user
mysql -u root -p
Create Database , Owncloud Database user and password in MySQL Server.
You will get the mysql prompt after login (mysql> )
mysql> create database owncloudDB; mysql> CREATE USER 'ownclouduser'@'localhost' IDENTIFIED BY 'Password'; mysql> GRANT ALL ON owncloudDB.* TO 'ownclouduser'@'localhost'; mysql> flush privileges; mysql> exit
Install Apache,php and php mysql module
Now install the Apache web browser. Because owncloud is php based application hence installation of php is required. To connect with mysql , php require module called php-mysql, so it is also to be installed.
sudo apt-get install apache2 php5 php5-mysql
Now enable the rewrite in apache that is requirement by Owncloud application. And then restart the Apache service.
sudo a2enmod rewrite sudo service apache2 restart
Install Owncloud with apt-get command
Just hit the command as given below.We will first add Owncloud repo and then start installing owncloud.
sudo sh -c "echo 'deb http://download.opensuse.org/repositories/isv:/ownCloud:/community/xUbuntu_14.04/ /' >> /etc/apt/sources.list.d/owncloud.list" wget http://download.opensuse.org/repositories/isv:ownCloud:community/xUbuntu_14.04/Release.key sudo apt-key add - < Release.key sudo apt-get update sudo apt-get install owncloud
After owncloud package get installed you will see a new file called owncloud.conf in Apache config directory.
Given below is reference of owncloud.conf content.
sharad@ubuntu:~$ cat /etc/apache2/conf-enabled/owncloud.conf Alias /owncloud "/var/www/owncloud/"Options +FollowSymLinks AllowOverride All sharad@ubuntu:~$
Now time to complete the owncloud installation from Web browser.
Open the web browser and in address field, type the ip address of server prefix with /owncloud.
http://IP-ADDRESS-OF-SERVER/owncloud
EXAMPLE: Check you server ip address with command ifconfig and replace with 192.168.122.85 inbelow given reference.
http://192.168.122.85/owncloud
Set the Admin username and password for Owncloud. Give the details of database which we have set in first section in this post. Click on MySQL/MariaDB tab as given in below given screenshot.
Wait for a few minutes, and you will see Owncloud dashboard and admin user by default get login on first time.
Por si acso tienes como configurar el owncloud con protocolo https
Buen articulo, Gracias
Hi. I’m reading https://sharadchhetri.com/2015/04/26/install-owncloud-8-on-ubuntu-server-14-04/. I’m nothing when it comes to Linux. I just want to ask what do you mean when a text is green or red or blue or violet.
Thank you.
Hi Noel,
These are just highlight for writing tutorial. It has no co-relation with functionality of the system.
Regards
Sharad
Thanks a lot, its working)) simple and usefull)
create database owncloudDB; do the trick
Yeah, error on first command
mysql> mysql> create database owncloudDB;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘mysql> create database owncloudDB’ at line 1