Quick Install Owncloud in Centos 6.x

With owncloud you can have drive storage like dropbox or google drive with your own server and your own infrastructure. Owncloud made by PHP and backend database MySQL, SQLLite or PostgreSQL. Owncloud is Opensource.

OwnCloud gives you universal access to your files through a web interface or WebDAV. It also provides a platform to easily view & sync your contacts, calendars and bookmarks across all your devices and enables basic editing right on the web. Installation has minimal server requirements, doesn’t need special permissions and is quick. ownCloud is extendable via a simple but powerful API for applications and plugins.

ownCloud started with a keynote by Frank Karlitschek at Camp KDE’10 where he talked about the need of a self-controlled free and open source cloud.

For more :- http://owncloud.org/

This chapter will introduce you to the installation of ownCloud in Centos 6 64bit.

Assumption:
Clean Fresh Minimal Installed Centos 6 64Bit .

Lets start with getting latest update for your installed system .

yum update -y

Using above command , the system will automatically detect and install latest updates available . Once its finished it’ll be something like this

Lets install the Prerequisites needed to install Owncloud .

To run ownCloud, your webserver must have the following installed:

yum -y install mysql-server httpd php php-mysql unzip wget php-json php-xml php-mbstring php-zip php-gd curl php-curl php-pdo

The system will then start installation of the above packages . After install it should be something like this :

 

 

 

 

 

chkconfig httpd on 
chkconfig mysqld on

Starting Apache & MySQL

service mysqld start

service httpd start

Install the MYSQL user and database.

mysql_secure_installation

 

 

 

[B]Lets create an database :[/B]

[code]
echo ‘CREATE DATABASE owncloud;’ | mysql -p [/code]
echo “GRANT ALL PRIVILEGES ON owncloud.* TO ‘owncloud’@’localhost’ IDENTIFIED BY ‘your_password’;” | mysql -p

echo “FLUSH PRIVILEGES;” | mysql -p

Change Directory to /var/www/html

cd /var/www/html

Download Owncloud :

wget http://download.owncloud.org/community/owncloud-4.5.10.tar.bz2

Lets extract it :

tar xvf owncloud-4.5.10.tar.bz2

It will then extract every file to owncloud folder .

OwnCloud needs these to be writable by the Webserver .

chown -R apache:apache owncloud

Follow the Install Wizard

Open your web browser and navigate to your ownCloud instance. If you are installing ownCloud on the same machine as you will access the install wizard from, the url will be: http://IP/owncloud . Click on the Advanced options to show the configuration options. You may enter admin credentials and let ownCloud create its own database user, or enter a preconfigured user. If you are not using apache as the webserver, please set the data directory to a location outside of the document root. See the advanced install settings.

 

 

Click on Finish Setup to finish up the installation . You will then have your own Cloud Server for your files .

You can also add as many users or admin in this cloud for uploading the files .

This cloud server can be used for many purposes likewise saving your documents that you can access from anywhere using cloud and if its personal then its the best .

Let me know if anyone is facing any issues in the installation or need this to be installed . Just PM me with your questions , i’ll get back to you asap .

Leave a Reply

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