ownCloud is a free and open-source web application for data synchronisation, file sharing and remote storage of documents (cloud storage).
This is a great alternative to the other storage based cloud solutions as it is a “fully manage yourself” solution. As long as you trust the host you reside the data on.
- Manage yourself solution
- Cheaper than other storage based cloud providers
I don’t add it to any of the steps below but you can in fact encrypt your data on the /var volume using the in built encryption methods within Linux. This can prove to be invaluable especially if you don’t know the history of the VPS you are using (if you are using a VPS). Add SSL encryption and you have quite a secure method of not only storing data on the cloud but also encrypting the transmission of the data to your devices.
Lets look at what you need in order to get your ownCloud server up and running. There are a number of things you need, namely the hardware required. Here is a full list:
- A spare machine to install ownCloud on
- Enough hard drive space to fit the operating system and cloud data
- A good quality internet connection with good upload and download speeds to help sync speeds
- (Optional but helps) A static IP address otherwise you will need to use a dynamic IP service such as DynDNS
- Access to your router/firewall to NAT ports to the server
In this example I will be installing ownCloud on the following:
- VMware ESX 5.1
- Linux Debian Wheezy (7)
You can step past the steps should you have a operating system (such as a VPS) already available.
- File storage
- WebDAV support
- Synchronisation of clients
- Windows XP
- Windows Visa
- Windows 7
- Windows 8
- Mac OS X
- Task scheduler
- Address book
- Music streaming
- Photo gallery
- PDF viewer
Creation of Virtual Machine
I am giving the guest server SSD disk to run the operation system only.
Installing Operating System
Name the server with a hostname, I recommend keeping it simple and use the name of the function of the server, such as OwnCloud
Specify domain name (not really required), the following is just an example
Select “No” to participate in the package survey
There are packages that OwnCloud depends on in order to run, we will install and configure these manually.
su - root apt-get update apt-get upgrade
su - root apt-get install sudo
su - root apt-get install openssh-server
su - root apt-get install apache2
su - root apt-get install mysql-server mysql-client
su - root apt-get install php5 libapache2-mod-php5 /etc/init.d/apache2 restart vi /var/www/info.php <?php phpinfo () ; ?>
Create mySQL Database
apt-get install phpmyadmin
Type in the username
Check Host to “Localhost”
Type and retype the password
Click on “Grant all privileges on database <database name>”
Click on “Check All”
Click on “Go” at the bottom right on the screen
echo 'deb http://download.opensuse.org/repositories/isv:ownCloud:community/Debian_7.0/ /' >> /etc/apt/sources.list.d/owncloud.list apt-get update apt-get install owncloud
Browse to http://yourserverip/owncloud
- Drop down the Advanced
- Change to mySQL database
- Enter database username
- Enter database password
- Enter database name
Should you have any questions, comments or suggestions, please don’t hesitate to comment below. If you like what you have read, please share it on your favourite social media medium.