With the development of the past few years, cloud computing and cloud storage seem to be getting deeper and deeper into the lives of each of us. You are using these services either intentionally or unintentionally, for example, you can use a variety of network disks to store files, use Goagent to flip the wall, and use Evernote to take notes on webpages. Various "Clouds" are everywhere. Even so, people may still worry about cloud security. Is it safe to store your photos and documents on the cloud? Will it be lost? Will it disclose your privacy? These questions are not born out of nothing. The security of the cloud has always been tested.
With the development of the past few years, cloud computing and cloud storage seem to be getting deeper and deeper into the lives of each of us. You are using these services either intentionally or unintentionally, for example, you can use a variety of network disks to store files, use Goagent to flip the wall, and use Evernote to take notes on webpages. Various "Clouds" are everywhere. Even so, people may still worry about cloud security. Is it safe to store your photos and documents on the cloud? Will it be lost? Will it disclose your privacy? None of these questions come from nothing. Cloud security has always been tested and user data has been stolen.
In this case, why not build a private cloud of your own? Host ECs instances on your own host to avoid various security risks on the public cloud and maximize control over your private data. In addition, "private cloud" provides convenient services for you and your family, such as photo and file sharing and calendar on mobile terminals.
OwnCloud provides a convenient way to achieve the above vision. OwnCloud is an open-source ECs software written based on PHP. It has been released to version 4.0.6 and has a wide range of functions. It supports data synchronization, task management, version control, and topic customization, and open APIs, which can be customized according to I needs. It is the best choice for self-built "private cloud.
The following describes how to build the ownCloud 4.0.6 platform on the Ubuntu 12.04 LTS system:
Follow these steps to create an ownCloud:
STEP 1: Install The Apache2 server
The installation package list officially provided by ownCloud.org has a version problem, and the installation process may fail. You can use the following alternative:
Apt-get install apache2 php5 php5-json php5-gd php5-sqlite curl libcurl3 libcurl3-dev php5-curl php5-common php-xml-parser
Apt-get install sqlite
The/var/www directory will be automatically created, which is placed on the official test page of apache2. After running service apache2 start to start the apache service, you can access this page through http: // localhost.
STEP 2: download and install ownCloud4
First download the owncloud4 source package:
Wget http://owncloud.org/releases/owncloud-4.0.6.tar.bz2
Tar-xjf owncloud-4.0.6.tar.bz2
After unpacking, copy the owncloud directory to the/var/www directory:
Cp-r owncloud/var/www
Modify the user/user group to www-data:
Chown-R www-data: www-data/var/www
STEP 3: Test ownCloud4
Write permission is required for ownCloud access. Run the following command in the/var directory:
Chmod-r 777 www
Restart the apache service:
Service apache2 restart
Visit the ownCloud page:
Open http: // localhost/owncloud/in the address bar of your browser.
Of course, the ownCloud created through the above steps is just a simple prototype and can only be used to test the function. Further customization is required to meet practical requirements.
OwnCloud4 User Logon interface: