Install ownCloud 5 on Ubuntu 13.04


ownCloud Logo

ownCloud is a web suite that provides a cloud storage over the network, data can be uploaded via web browser or using software client. Data will be stored on the server and can be downloaded or access any time with browser. The project is based on PHP and a SQLite, MySQL, Oracle or PostgreSQL database, so it can run on all platforms that meet these requirements. It provides almost all possibility of functions that are available on commercial suites; it is released under AGPLv3 license, so you can setup own cloud storage server without any additional cost.  Commercial version of ownCloud is also available.


The following are the list of features available on ownCloud.

  •     File storage in conventional directory structures (also via WebDAV)
  •     Cryptography
  •     Synchronization of personal computers
  •     Calendar (also as CalDAV)
  •     Task scheduler
  •     Address book (also as CardDAV)
  •     Music streaming (through Ampache)
  •     User and group administration (via OpenID or LDAP)
  •     Sharing of content across groups or public URLs
  •     Online text editor with syntax highlighting and code folding
  •     Bookmarking
  •     URL shortening Suite
  •     Photo gallery
  •     PDF viewer (using pdf.js)
  •     Viewer for ODF Files (.odt, .odp, .ods)

New Features in ownCloud 5:

  • New User interface
  • Restore Deleted files.
  • contact groups
  • New powerful search
  • File Version
  • Mount External Storage (Dropbox, FTP, Google docs etc)
  • Migration and backup
  • Application store


Here is the small guide to setup ownCloud 5 on Ubuntu 13.04.


As mentioned earlier, it is based on PHP and database combination, database can be any of the above four. To setup ownClound on Ubuntu 13.04, MySQL database is the best to choose over others. So install PHP, Apache web server and MySQL server on Ubuntu.

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

While installing MySQL server, you will be asked to setup a password for MySQL root user.

Download and Setup:

Download ownCloud from official website or enter the fallowing command on terminal.


Extract the archive.

sudo tar -jxvf owncloud-5.0.5.tar.bz2

Move ownCloud under Apache server document root.

sudo mv owncloud /var/www/cloud

Create a data directory under the /var/www/cloud, it will hold the data uploaded by the users.

sudo mkdir /var/www/cloud/data

Allow the web server to read and write the files on cloud directory.

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

Create Database:

MySQL server must be started before creating the database, login to MySQL server.

mysql -u root -p

Create database called “clouddb”

create database clouddb;

Allow “clouddbuser” to access the “clouddb” database on localhost with predefined password.

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

Configure Apache server:

While configuring Apache web server, it is recommended that you to enable .htaccess to get a enhanced security features, by default .htaccess is disabled in Apache server. To enable it, open your virtual host file and make AllowOverride is set to All.For example, here i used default virtual host.

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


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


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

Configure ownCloud:

Open up web browser, point a url to ( http://Your-custom-domain). Browser will automatically take you to ownCloud setup page where it must be configured before going to live. Enter admin user name, password, data folder location and database details.

Ubuntu ownCloud Setup

Now you can start upload a file via browser, alternately you can download ownCloud client to upload the files.

Ubuntu ownCloud Upload

That’s All!.

You might also like