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.
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 http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm sudo rpm -ivh epel-release-6-8.noarch.rpm sudo wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm 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 CREATE DATABASE owncloud; GRANT ALL PRIVILEGES ON owncloud.* TO 'owncloud_user'@'localhost' IDENTIFIED BY 'owncloud_user_pasword'; *Change password as required FLUSH PRIVILEGES;
Install unzip & download ownCloud
sudo yum install unzip
Goto home directory e.g. cd /root
wget https://download.owncloud.org/community/owncloud-9.0.0.zip 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.
Options Indexes FollowSymLinks MultiViews
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!