Friday, January 24, 2014

Installation of Owncloud in Centos 6.5 64 bit

Installation of Owncloud in Centos 6.5 64 bit
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.
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

http://i.imgur.com/u5MOof7.png
Using above command , the system will automatically detect and install latest updates available . Once its finished it’ll be something like this
http://i.imgur.com/AxsSPM1.png
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

http://i.imgur.com/ZaWez6I.png
The system will then start installation of the above packages . After install it should be something like this :
http://i.imgur.com/nJKNujy.png
 chkconfig httpd on 
chkconfig mysqld on
http://i.imgur.com/Mefs1iM.png
Starting Apache & MySQL
service mysqld start
service httpd start
http://i.imgur.com/v2YJY8p.png
Install the MYSQL user and database.
mysql_secure_installation
http://i.imgur.com/ucfG8Le.png


http://i.imgur.com/5qwPDdi.png
http://i.imgur.com/Lp0KvCZ.png

Lets create an database :

[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

http://i.imgur.com/19t3sGj.png
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.
http://i.imgur.com/xiG3hP4.png


http://i.imgur.com/we1GWaF.png
Click on Finish Setup to finish up the installation . You will then have your own Cloud Server for your files .
http://i.imgur.com/Z0c1p4b.png
You can also add as many users or admin in this cloud for uploading the files .
http://i.imgur.com/syrkUdn.png
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 .