Setup your personal Cloud server in minutes using ownCloud
ownCloud is a free Open Source software, used to setup your own personal cloud for file sharing, Calender, Contact and Bookmark sharing and Personal Audio/Video Streaming. It is pretty easy to setup and manage.
Make sure that your DNS server has properly installed and configured with your OwnCloud server IP and Hostname. For more information about configure DNS server follow this how-to tutorial.
In this tutorial i am using CentOS 6.3 minimal server to setup ownCloud.
Install the necessary packages for owncloud
[root@cloud ~]# yum -y install mysql-server httpd php php-mysql wget php-json php-xml php-mbstring php-zip php-gd curl php-curl php-pdo
Start mysql and httpd services and let them to start automatically on every reboot.
[root@cloud ~]# /etc/init.d/mysqld start [root@cloud ~]# /etc/init.d/httpd start [root@cloud ~]# chkconfig mysqld on [root@cloud ~]# chkconfig httpd on
Adjust iptables to access owncloud server from outside of the network.
Add the following lines to the iptables config file and restart iptables.
[root@cloud ~]# vi /etc/sysconfig/iptables -A INPUT -p tcp -m state --state NEW --dport 80 -j ACCEPT -A INPUT -p tcp -m state --state NEW --dport 80 -j ACCEPT [root@cloud ~]# service iptables restart
Now install and create mysql user and database for owncloud.
Note: In this tutorial i use password as “centos” for mysql database, owncloud admin account.
[root@cloud ~]# /usr/bin/mysql_secure_installation NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MySQL SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY! In order to log into MySQL to secure it, we'll need the current password for the root user. If you've just installed MySQL, and you haven't set the root password yet, the password will be blank, so you should just press enter here. Enter current password for root (enter for none): OK, successfully used password, moving on... Setting the root password ensures that nobody can log into the MySQL root user without the proper authorisation. Set root password? [Y/n] y New password: Re-enter new password: Password updated successfully! Reloading privilege tables.. ... Success! By default, a MySQL installation has an anonymous user, allowing anyone to log into MySQL without having to have a user account created for them. This is intended only for testing, and to make the installation go a bit smoother. You should remove them before moving into a production environment. Remove anonymous users? [Y/n] y ... Success! Normally, root should only be allowed to connect from 'localhost'. This ensures that someone cannot guess at the root password from the network. Disallow root login remotely? [Y/n] y ... Success! By default, MySQL comes with a database named 'test' that anyone can access. This is also intended only for testing, and should be removed before moving into a production environment. Remove test database and access to it? [Y/n] y - Dropping test database... ... Success! - Removing privileges on test database... ... Success! Reloading the privilege tables will ensure that all changes made so far will take effect immediately. Reload privilege tables now? [Y/n] y ... Success! Cleaning up... All done! If you've completed all of the above steps, your MySQL installation should now be secure. Thanks for using MySQL!
[root@cloud ~]# mysql -u root -p Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 12 Server version: 5.1.67 Source distribution Copyright (c) 2000, 2012, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql> CREATE DATABASE owncloud; Query OK, 1 row affected (0.01 sec) mysql> GRANT ALL ON owncloud.* TO 'owncloud'@'localhost' IDENTIFIED BY 'centos'; Query OK, 0 rows affected (0.01 sec) mysql> GRANT ALL ON owncloud.* TO 'owncloud'@'localhost.localdomain' IDENTIFIED BY 'centos'; Query OK, 0 rows affected (0.00 sec) mysql> exit Bye
Goto to Apache root document folder and download the latest version of owncloud.
[root@cloud ~]# cd /var/www/html/ [root@cloud html]# wget http://owncloud.org/releases/owncloud-4.5.7.tar.bz2 --2013-03-11 13:50:50-- http://owncloud.org/releases/owncloud-4.5.7.tar.bz2 Resolving owncloud.org... 188.8.131.52 Connecting to owncloud.org|184.108.40.206|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 9126728 (8.7M) [application/x-bzip] Saving to: “owncloud-4.5.7.tar.bz2” 100%[======================================>] 9,126,728 46.4K/s in 1m 52s 2013-03-11 13:52:46 (79.3 KB/s) - “owncloud-4.5.7.tar.bz2” saved [9126728/9126728] [root@cloud html]# tar xvf owncloud-4.5.7.tar.bz2 [root@cloud html]# rm owncloud-4.5.7.tar.bz2 [root@cloud html]# chown -R apache:apache owncloud [root@cloud html]# chmod 750 owncloud/data/ [root@cloud html]# chmod 777 owncloud/config/
Find and edit the lines as shown below in “/etc/httpd/conf/httpd.conf” file.
[root@cloud html]# vi /etc/httpd/conf/httpd.conf <Directory "/var/www/html"> Options Indexes FollowSymLinks AllowOverride All Order allow,deny Allow from all </Directory>
Restart the httpd and mysqld services.
[root@cloud html]# /etc/init.d/mysqld restart [root@cloud html]# /etc/init.d/httpd restart
Now goto any client system if your owncloud server doesn’t has GUI mode and access it by “http://ip-address or domain name/owncloud. The index page of own cloud will open now. Create the administrator username and password for your cloud server.
Thats it. You can upload/download your images, files and Audio/Video here and you can access them from your clients over LAN/WAN.
Like us on Facebook
This week Top Posts
- Top Things To Do After Installing Ubuntu 13.10 'Saucy Salamander' : Ubuntu 13.10 Saucy Salamander will be released on coming October 17th with many new salient featur...0 comments |
- Manage Databases And Hosted Servers Remotely With DbNinja : Database administration via command line is bit difficult for newbie system and database administrat...0 comments |
- Install Sayonara Player In Elementary OS / Ubuntu / Linux Mint : Sayonara is a small, clear and fast audio player for Linux written in C++, supported by the Qt frame...0 comments |
- How To Install Linux Kernel 3.12.4 In Ubuntu : Linux Kernel 3.12.4 has been officially released with fixes for inet6_init() cleanup order, seqlock ...0 comments |
- How To Upgrade From Ubuntu 13.04 Raring To Ubuntu 13.10 Saucy Salamander : Ubuntu 13.10 Saucy will be released on October 17th. Hope it will come with lot of improvements and ...0 comments |
- Firefox 26 Has Been Released, How To Install It In Ubuntu And Its Derivates : Hi guys, Firefox 26 has been released for Windows, Mac OS X, Linux and Android devices. It brings m...0 comments |
- How To Install Linux Kernel 3.12.4 In Ubuntu
- Firefox 26 Has Been Released, How To Install It In Ubuntu And Its Derivates
- How To Install Brasero In Elementary OS ‘Luna’
- Install Sayonara Player In Elementary OS / Ubuntu / Linux Mint
- Manage Databases And Hosted Servers Remotely With DbNinja
- Install FrostWire 5.6.9 In Elementary OS ‘Luna’/ Ubuntu / Linux Mint
- Setup IT And Asset Management System With GLPI On Debian/Ubuntu
- How To Configure Linux Clients To Authenticate Using OpenLDAP
- How To Install Netflix In Ubuntu
- cowsay And fortune Combined Together
This work by unixmen.com is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License.
Copyright © 2008-2013 Unixmen.com .