Install ownCloud Server 6.0.4 on Ubuntu 14.04 with mySQL

In this tutorial, I will show you how to setup or host your own ownCloud Server on Ubuntu 14.04. OwnCloud is open source file sync and share software for everyone from individuals operating the free Community Edition, to large enterprises and service providers operating ownCloud Enterprise Edition.

owncloud-02

With ownCloud you can share one or more folders on your PC, and sync them with your ownCloud server. Place files in your local shared directories, and those files are immediately synced to the server, and then to other PCs via the desktop client

Change Log v6.0.4

  • Fixed a security issue (Will be disclosed two weeks after this release)
  • Several LDAP fixes and improvements
  • Add deprecated warning to load function
  • File scanner fixes
  • Heart beat fixes
  • Encryption fixes for some corner cases
  • Fix conflict dialog translations
  • Fix button text overflow
  • Fix search with Oracle
  • Php upload errors are written to log
  • OCS status code fixes
  • Add PostgreSQL version warning

Install ownCloud Server 6.0.4

Step 1: Install MYSQL 5.6, PHP 5, APACHE2

– Run command below and enter new password for the SQL root account when prompted

sudo apt-get install mysql-server-5.6 libapache2-mod-auth-mysql php5 php5-mysql apache2

– Enable rewrite module

sudo a2enmod rewrite

sudo service apache2 restart

Step 2: Create dedicated Database for ownCloud

# Log into mysql with password created earlier

mysql -u root -p

mysql >
# Create ownCloud user account and set the password

mysql> CREATE USER 'owncloudsysads'@'localhost' IDENTIFIED BY 'Enter Password';
# Create ownCloud database

mysql> create database ownclouddb;
# Grant privileges to owncloudsysads user on ownclouddb database

mysql> GRANT ALL ON ownclouddb.* TO 'owncloudsysads'@'localhost';

mysql> flush privileges;

mysql> exit

Step 3: Install ownCloud Server

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

– Move ownCloud directory to /www/html

sudo mv /var/www/owncloud /var/www/html

Step 4: Create new ownCloud config file

– Create the file owncloud.conf in /etc/apache2/sites-available/

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

– Copy below content into owncloud.conf. Replace IP with server IP or server name with server FQDN name

For IP Based config

[box type=”info”]

ServerAdmin webmaster@localhost
DocumentRoot /var/www/html/owncloud

ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
AllowOverride All
Require all granted

[/box]

For Host Name Based config

[box type=”info”]

ServerAdmin webmaster@localhost
DocumentRoot /var/www/html/owncloud

ServerName owncloud.sysads.co.uk

ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
AllowOverride All
Require all granted

[/box]

– Link the config file to sites-enabled

sudo ln -s /etc/apache2/sites-available/owncloud.conf /etc/apache2/sites-enabled/owncloud.conf

– Unlink the default config file from apache

sudo unlink /etc/apache2/sites-enabled/000-default.conf

– Restart the apache2 service

sudo service apache2 restart

Step 5: Configure ownCloud Server

– Open your browser and enter IP address of your ownCloud Server. Enter username, password to be created. Click on Advanced > MySQL and enter mySQL details earlier created. Click Finish setup

owncloud-01

 
comments powered by Disqus