Skip to main content

Personal cloud storage on your server similar like Dropbox : Installation OwnCloud on CentOS


Introduction:



OwnCloud is a open score system for File hosting for self-host. It has a good web suite that provides a cloud storage over the network, data can be uploaded via web browser or using software client. The project is based on PHP and a SQLite, MySQL or PostgreSQL database. This blog for install ownCloud on CentOS. Personal cloud storage : Installation OwnCloud on CentOS

Initial setup:

Install all CentOS current updates

yum -y update                                                                                           

Next, Need to install Apache, PHP and MySQL (LAMP) and some php extensions

Apache Install



yum -y install httpd                                                                                    

PHP Install with Extensions

yum -y install php php-mysql php-dom php-mbstring php-gd php-pdo            

MySQL Install

yum -y install mysql-server                                                                         

Start Apache using the following command:
service httpd start                                                                                      

Start  MySQL by issuing this command:
service mysqld start                                                                                    

OwnCloud Installation:

First need to download ownCloud with following command.



wget https://download.owncloud.org/community/owncloud-7.0.0.tar.bz2        

Extract the archive we just downloaded.

tar -jxvf owncloud-7.0.0.tar.bz2 -C /var/www/html/                                      

Next, Need to assign the permission of read and write the files to owncloud directory.

chown -R apache.apache /var/www/html/owncloud/                                      

DataBase configuration

Login to mysql server, Using the following command

mysql -u root -p                                                                                         

mysql> create database clouddb;                                                      
mysql> create user 'clouddbuser'@'localhost' identified by'password';  
mysql> grant all on clouddb.* to 'clouddbuser'@'localhost';                 
mysql> flush privileges;                                                                   
mysql> quit;                                                                                   

Apache server configuration

nano /etc/httpd/conf.d/owncloud.conf                                                           

Add the following lines in the config file.


<IfModule mod_alias.c>

Alias /owncloud /var/www/html/owncloud

</IfModule>

<Directory “/var/www/html/owncloud”>

Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
allow from all
</Directory>

Restart all apache and MySQL services:

service httpd restart                                                                                 


service mysqld restart                                                                                 



OwnCloud configuration:

Open up your browser and paste http://your_ip_address/owncloud.
It will shows the initial owncloud setup page.
it must be configured before going to live.  


                                                                                                                       



Now you have your own storage in the cloud. Congratulations !!              






Comments

  1. This comment has been removed by a blog administrator.

    ReplyDelete
  2. This comment has been removed by a blog administrator.

    ReplyDelete
  3. This comment has been removed by a blog administrator.

    ReplyDelete

Post a Comment

Popular posts from this blog

How to Speedup your WordPress site with Amazon CloudFront.

Introduction A WordPress performance is quite excellent . The number of WordPress plugins to handle performance is such evidence. But the easiest way to improve your user experience is to accelerate the entire WordPress website using CloudFront. This will help you not only improve site response time reduces the necessary infrastructure, reducing the load on the Web server, so you can reduce the total cost of the infrastructure works WordPress. CloudFront is actually a site can greatly help your site to respond to unexpected load when gained popularity. Today this post is to clarify the method of providing a reasonable standard configuration on the WordPress website or blog. How does CloudFront help? Amazon CloudFront is to improve the user's experience accessing the Web site in several ways: 1.  Anycast DNS is to ensure that customers are routed to the nearest edge location. 2.  The cached content is available to users at the edge positi...

YouTube channels data migration in new google account

Introduction : YouTube all data (Channels, Videos, Likes, subscribes) migration from one google account to another google account. Please follow below steps to migration YouTube data. For example your source email id is source@gmail.com  and target email id is target@gmail.com . We need to move all source@gmail.com ’s YouTube data to target@gmail.com . Step 1 . Login in source@gmail.com  account and open YouTube settings Step 2 .   Now that you have to create a Brand Account, For that See all my channels or create a new channel   ( Note :- If you haven’t any Channel so click on Create a new channel   Then back on setting and follow Setp 2. ) After Click on Create a new channel . You will be move on for create new Brand Account.   Step 3.  You have to add your Brand Account name here. Step 4.  Open YouTube setting for source@gmail.com     and click the Advanced   Step 5 . Now you need to move your YouTube all data in new created...

How To Install cPanel On Amazon Cloud (AWS) EC2 Instance?

Why easy to use cPanel ?   cPanel  is a Linux   based web GUI hosting control panel. The main advantage of cPanel servers is that you can easily install and configure the W ebsite and E -mail.   WHM  - Web Host Manager is a tool that is also used, as well as the reseller server administrator. Resellers can be accessed by authorized resellers in WHM, by using a reseller account can create and manage sub-accounts which may be limited modifications.   To change all the server level, server administrators need the Administrator login that you use to manage tasks such as Apache , Php and upgrading perl module  installed. cPanel servers have access to the root password of the server. In the following blog , we look at the installation of cPanel Server  on EC2 . Setup AWS EC2 for cPanel.   1. Start with log into the  AWS Management Console . Open the Amazon EC2 console by choosing EC2 under Compute.   2...