Install ownCloud 6 on CentOS 6.5 linux

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 SQLiteMySQL (MariaDB)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. Here is the small guide to setup ownCloud 5 on CentOS 6.x.


As mentioned earlier, it is based on PHP and database combination, database can be any of the above four. So install PHP, Apache web server and MariaDB server on CentOS 6.5.
First, install MariaDB server. After MariaDB installation install following packages:

# yum install httpd php php-mysql sqlite php-dom php-mbstring php-gd php-pdo php-json php-xml php-zip php-gd curl php-curl -y

Disable SELinux

For disable SELinux view following tutorial

Download and Setup:

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

# http://download.owncloud.org/community/daily/owncloud-daily-master.tar.bz2

Extract the archive.

# tar -jxvfowncloud-daily-master.tar.bz2

Move ownCloud under Apache server document root.

# mv owncloud /var/www/html/

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

# chown -R apache.apache /var/www/html/owncloud
# chmod 777 /var/www/html/owncloud/config/

Enable apache rewrite mode.
Edit file “/etc/httpd/conf/httpd.conf”:

# vi /etc/httpd/conf/httpd.conf

Find the following section and Change AllowOverride None to Allowoverride All.

     AllowOverride All

Finally, restart the apachehttpd and mysql services.

# service mysql restart
# service httpd restart

Create Database for ownCloud

Let us create a database called ‘owncloud’ and database user ‘ownuser’ with password ‘ownpass’.

# mysql -u root -p
Enter password:
Welcome to the MariaDB monitor.  Commands end with ; or g.
Your MariaDB connection id is 66
Server version: 5.5.34-MariaDB MariaDB Server
Copyright (c) 2000, 2013, Oracle, Monty Program Ab and others.
Type 'help;' or 'h' for help. Type 'c' to clear the current input statement.
MariaDB [(none)]> CREATE DATABASE owncloud;
Query OK, 1 row affected (0.04 sec)
MariaDB [(none)]> GRANT ALL ON owncloud.* TO 'ownuser'@'localhost' IDENTIFIED BY 'ownpass';
Query OK, 0 rows affected (0.01 sec)
MariaDB [(none)]> flush privileges;
Query OK, 0 rows affected (0.01 sec)
MariaDB [(none)]> exit;

Begin ownCloud Installation
Navigate to http://ip.add.re.ss/owncloud or http://domain-name/owncloud from your web browser. 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. You can choose  MySQL database.

Setup ownCloud
Setup ownCloud

Show my ownCloud dashboard:

ownCloud dashboard
ownCloud dashboard

Thats it. Our cloud server is ready.
See also:
How to install CentOS 6.5 minimal
How to install Mariadb 5.5.33a on CentOS 6.5
How to install MariaDB 10.0 on CentOS 6.5

Leave a Reply

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


This site uses Akismet to reduce spam. Learn how your comment data is processed.

Back to top button