Use ownCloud to build your personal cloud service (ubuntu 14.04 server), owncloud14.04
What is ownCloud?
OwnCloud is a free and open-source personal cloud storage solution (similar to Baidu network disk or Dropbox), which consists of two parts: server and client.
OwnCloud can be used on the client through the webpage interface or by installing dedicated client software. The webpage interface is certainly supported by any platform that can open the webpage, and the client software also supports many platforms, including Windows, Linux, iOS, and Android.
In addition to cloud storage, ownCloud can also be used to synchronize calendars, email contacts, and Web browser bookmarks. In addition, it also provides the ability to synchronize and collaborate online files.
ECS comparison
Seafile is also applicable before owncloud is installed. In general, seafile functions and details are still lacking. However, the biggest difference between seafile and owncloud is:
The owncloud data files are directly stored on the server disk, and the directory structure is the same as that seen on the webpage (client. In this way, even if the owncloud crashes one day or the development stops, it is very convenient to export data, or even directly Delete the owncloud.
Data Files of seafile are sliced and integrated when they are stored on the server (whether encryption is unclear by default). This ensures data security and prevents you from viewing the file even if you have a root account on the server, however, the seafile administrator can modify the passwords of other users. Therefore, this encryption function seems to be faulty. In addition, if the seafile fails or the update is stopped, data export is almost impossible.
The following describes how to build the ownCloud server on ubuntu (test version: 14.04 server)
Install (via apt-get)
For different linux versions, see:
Http://software.opensuse.org/download.html? Project = isv: ownCloud: community & package = owncloud
For xUbuntu 14.04, run the following command:
Sudo sh-c "echo 'deb http://download.opensuse.org/repositories/isv:/ownCloud:/community/xUbuntu_14.04//'>/etc/apt/sources. list. d/owncloud. list"
Sudo apt-get update
Sudo apt-get install owncloud
You can add the software source key to apt. Remember that the owner of this key will be able to distribute updates, software packages, and software sources that your system will trust (more information ). To add this key, run:
Wget http://download.opensuse.org/repositories/isv:ownCloud:community/xUbuntu_14.04/Release.key
Sudo apt-key add-<Release. key
The installation time may be a little long, because the software package needs to be downloaded from download.opensuse.org, and the domestic network access speed is not very fast. You can connect to the vpn to download the installation package.
During the installation process, mysql requires you to enter the root password, enter and confirm.
The installation is complete. If no error is found, you can access it through http: // domain name or ip/owncloud. The Initialization Configuration page is displayed. You can set the data storage location as prompted. Make sure that the www-data user has the permission to write data to the location (see the configuration for details ).
Configuration
Note: After you modify the configuration, restart apache to make the configuration take effect.
Sudo/etc/init. d/apache2 restart
Before setting the data file location, you must modify the access permission for the path location.
Sudo chown www-data: www-data <path>
Modify default encoding
Edit the file:/etc/php5/apache2/php. ini
Remove the following line # Make the configuration take effect:
Default_charset = "UTF-8"
Upload size limit (set to 10 Gb)
Edit file:/var/www/html/owncloud/. htaccess
Php_value upload_max_filesize 10240 M
PHP value post_max_size 10240 M
Php_value memory_limit 2048 M
Change to default page (access url is not needed/owncloud)
Edit the file:/etc/apache2/sites-enabled/000-default.conf
Modify row:
DocumentRoot/var/www/http
Changed:
DocumentRoot/var/www/owncloud