Install ownCloud 9 on CentOS 6

This tutorial assumed you have already installed and setup LAMP Stack on your VPS or Dedicated server, if you have not done so you may follow our LAMP Stack tutorial before continuing the installation.

This tutorial assumed you have root access to your server. If you do not have direct root access, your login account should have at least [sudo] elevated privileges to proceed with this tutorial.

php Prerequisites

One of ownCloud 9 requirement is php 5.4+ and default CentOS 6 installation came with php 5.3 repository hence you will need to replace existing php 5.3 with at least 5.4+. This setup guide will use php 5.6+


Remi php repository

sudo wget 
sudo rpm -ivh epel-release-6-8.noarch.rpm 
sudo wget rpm -Uvh remi-release-6.rpm 
sudo nano /etc/yum.repos.d/remi.repo

Enable [remi] and [remi-php56] as shown


sudo yum install php php-gd php-mysql php-mcrypt -y
sudo yum install sqlite php-dom php-mbstring php-gd php-pdo php-json php-xml php-zip php-gd curl php-curl php-posix -y

Create ownCloud Database

Login to mysql to create a database for ownCloud.

mysql -u root -p
GRANT ALL PRIVILEGES ON owncloud.* TO 'owncloud_user'@'localhost' IDENTIFIED BY 'owncloud_user_pasword'; *Change password as required

Install unzip & download ownCloud

sudo yum install unzip

Goto home directory e.g. cd /root

unzip owncloud-9*
Next we want to move the inflated directory  [owncloud] to Apache root folder
cp -R owncloud /var/www/html/

Next we want to edit httpd.conf and add permission as shown

** ownCloud will not be able to override global php settings if you did not apply the following permissions. E.g. changing of upload limit will not work. 

nano /etc/httpd/config/httpd.conf

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


Next Change the owner of owncloud directory to apache user

cd /var/www/html
chown -R apache:apache /var/www/html/owncloud/


Restart your httpd service and now you should be able to see your ownCloud installation.


Complete your ownCloud installation

This is where you will complete the installation with your SQL Database information you created earlier.




Congratulation! Your ownCloud server is now ready!




Was this article helpful to you?


Comments are closed.