How to Install ownCloud 5 on Ubuntu 13.04 and Linux Mint 14

Hello Linux Geekster.

In this article I will show you how to install OwnCloud 5 on Ubuntu 13.04 Raring Ringtail and Linux Mint 14 Nadia.

As you may know, ownCloud web service that allows you to upload data via browser or by using a software client (similar to Dropbox, let’s say). ownCloud uses PHP and one of the following databases SQLite, MySQL, Oracle or PostgreSQL (you decide which db you install) and runs on all the operating systems that have support for at least one of this databases.

From the ownCloud 5.0.5 changelog:

  • Fix navigation hover effect
  • Fix database migration
  • Add a warning in the logfile when doing a migration
  • Fix renaming of shared files
  • Improved quota calculation
  • Fix free space calculation
  • Several layout fixes
  • Better save mode check
  • Cleanup database after user deletion
  • Fix touch for creating new files
  • Several trash bin fixes
  • Update MediaElement.js
  • Fix double address book problem
  • Fix layout problem triggered by impress
  • Several smaller fixes
  • Security: XSS in flashmediaelement.swf (oC-SA-2013-017)
  • Security: Authentication bypass in Contacts (oC-SA-2013-018)

How to install ownCloud 5 on Ubuntu 13.04:

Ok, let’s start the installation guide. At first, we need to install some dependencies: Apache and MySQL.

I have chosen to use the MySQL database because it is the best choice for Ubuntu Raring.

$ sudo apt-get install apache2 php5 php5-mysql php5-gd mysql-server

During the MySQL installation process, you are asked to set up a root password for MySQL.

Download ownCloud 5:

$ wget http://download.owncloud.org/community/owncloud-5.0.5.tar.bz2

Extract the archive:

$ sudo tar -jxvf owncloud-5.0.5.tar.bz2

Move the ownCloud directory to /var/www/cloud:

$ sudo mv owncloud /var/www/cloud

Create /var/www/cloud/data directory:

$ sudo mkdir /var/www/cloud/data

Set the propper permissions on the directory:

sudo chown -R www-data:www-data /var/www/cloud/

Create the MySQL database:

Start the MySQL server and login to it:

$ mysql -u root -p

Create a database called clouddb:

$ create database clouddb;

Allow “clouddbuser” to access the “clouddb” database on localhost with your password:

$ grant all on clouddb.* to 'clouddbuser'@'localhost' identified by 'password';

Configure the Apache server:

$ sudo gedit /etc/apache2/sites-enabled/000-default

Change the following code block. From this:

<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>

To this:

<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>

Restart the Apache server:

$ sudo /etc/init.d/apache2 restart

To use ownCloud, open your browser and type as url: http://127.0.0.1/cloud and fill in the needed information.

This is it. Enjoy.

https://linuxg.net/wp-content/uploads/2013/05/od.png

Tagged with: , , , , , , , ,
Posted in The Linux and Unix Articles!
One comment on “How to Install ownCloud 5 on Ubuntu 13.04 and Linux Mint 14
  1. Marcus says:

    Worked on Ubuntu server 3.10, thank you!

Leave a Reply

Your email address will not be published. Required fields are marked *

*

Subscribe

  

Subscribe to get the latest Linux news and how to guides directly on your e-mail!