Create your cloud: OwnCloud + DigitalOcean
Do It Yourself Web Services / / December 19, 2019
Worry about the security of their files and do not want outsiders to read them? A cloud still beckon technology? Create your own cloud!
Many of our readers said they did not want to store your files and data in cloud services. Of course, all this history with the US NSA has undermined the credibility of the Dropbox, Google Drive and other cloud services. And many think about the security of their data. The solution to this problem would be to create their cloud. Yes it is! You can create a cloud service. And all it will take a maximum of 30 minutes. We have prepared detailed instructions.
So, to create your own cloud, we will use DigitalOceanWhich will create your virtual server (VPS), and OwnCloud - application to create a cloud server. Plus domain. Domain you can buy, for example, Whois.com. It will cost you about $ 10 / year. The cheapest VPS on DigitalOcean costs $ 5 / month. For that amount you get 20 GB of space. And it would be enough for the needs of the average user. Proceed.
create a VPS
Go to the website DigitalOcean and register there. After creating an account, you need to create a droplet. So DigitalOcean called VPS. The first step in introducing our server. To create a cloud you with enough head of the cheapest options - for $ 5 a month. Location Server location plays an important role - it directly affects the speed of access to your files. Therefore, choose your closest city. System to choose Ubuntu 12.04. This is the version with long-term support (until 2017), and a fresh 14.04 is still too fresh :)
Connect to VPS
After you create the droplet you to email will receive a letter from the IP-address of your server and password to access it. To connect to a server you need a tool to work with SSH. On Linux and Mac - Produce Terminal is already installed. But I advise you to download Windows users Putty. The program is absolutely free.
In the terminal, enter the following command to connect to the server (instead of units, enter the IP-address of your server):
Congratulations. You are connected to your server! Now you need to install apache, mysql, php5 (LAMP) and, actually, OwnCloud. To do this, just line by line the code is running. Without lines with comments (beginning grille worth it) - it's an explanation for you.
sudo apt-get update
# Get all the updates for the server
sudo apt-get upgrade
# Set these same updates
sudo apt-get install lamp-server ^
# Installing LAMP. You will need to install the MySQL password for the root user.
sudo mysql_secure_installation
# At this point, you will be asking "yes / no" on different issues several times. Feel free to answer "No" to the first and "Yes" - all the rest.
sudo apt-get install php5-gd php-xml-parser php5-intl smbclient curl libcurl3 php5-curl
# Set the dates for OwnCloud plugins
sudo a2enmod rewrite
sudo a2enmod headers
sudo nano / etc / apache2 / sites-available / default
Open a text document. In it you need to find and fix these lines AllowOverride None to AllowOverride All. Further «Ctrl + X», then «Y» and Enter.
Congratulations, you have installed all the necessary software for the stable operation of the server. Now you need to install OwnCloud. Only 7 teams, do not worry :)
sudo wget http://download.owncloud.org/community/owncloud-latest.tar.bz2
tar -xjf owncloud-latest.tar.bz2
mv owncloud / var / www
# Download the latest version OwnCloud to your server, razarhiviruem it and move to the right to Access through a Web folder.
cd / var / www
sudo chown -R www-data: www-data owncloud
# For the normal functioning OwnCloud need to give him a right of access to the main folder of the web on our server.
mysql -u root -p
CREATE DATABASE owncloud;
GRANT ALL ON owncloud * TO 'owncloud' @ 'localhost' IDENTIFIED BY 'password'.;
exit;
# Create a database for OwnCloud. Words owncloud and password, you can change.
sudo service apache2 restart
# Reboot our server
Go to the address (instead of units - your server address):111.111.111.111/owncloud
And completes the installation OwnCloud.
Connect domain
You can do only the IP-address, but it is impractical and ugly. Therefore it is necessary to connect the domain. To do this, go to the panel DigitalOcean → DNS and there click Add Domain button. We are entering a domain address, and select from the list the desired droplet. All in a couple of hours, a maximum of twenty-four hours, you will have access to your cloud at domain.com/owncloud.
Enjoy it!