How To Install OwnCloud on Ubuntu

Step 1: Prerequisites

To install the OwnCloud on Ubuntu, firstly you have to install and configure following prerequisites.

Step 2: Create Database

Create a new MySQL database for OwnCloud using the following commands.

# mysql -u root -p
Enter password:

mysql> CREATE USER 'ownclouduser'@'localhost' IDENTIFIED BY 'YOURPASSWORD';
mysql> CREATE DATABASE ownclouddb;
mysql> GRANT ALL ON ownclouddb.* TO 'ownclouduser'@'localhost';
mysql> exit

Step 3: Installation

First we will need to download the latest stable release of OwnCloud on your server.

# wget
# tar -xvf owncloud-8.0.0.tar.bz2 -C /var/www/html/
# chown www-data:www-data -R /var/www/html/owncloud/

Step 4: Configuration

# vi /etc/apache2/sites-available/owncloud.conf

Alias /owncloud /var/www/html/owncloud

Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
allow from all

Step 5: Restart Apache Service

# service apache2 restart

Step 6: Open OwnCloud on Browser

Open your favorite browser and hit the URL http://YOUR-IP-ADDRESS/owncloud


Click on storage & database


Enter the username and password along with database name, then press Finish Setup button


0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

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