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 !!              






Personal cloud storage on your server similar like Dropbox : Installation OwnCloud on CentOS Personal cloud storage on your server similar like Dropbox : Installation OwnCloud on CentOS Reviewed by Raj on October 08, 2018 Rating: 5

No comments:

Powered by Blogger.