Use owncloud to build your personal cloud service (Ubuntu 14.04 Server)

Source: Internet
Author: User
Tags owncloud seafile

What is owncloud?

Owncloud is a free and open source Personal cloud storage solution (like Baidu Network or Dropbox), including two parts: Server and client.

Owncloud can be used by the client via the Web interface or by installing dedicated client software. The Web interface is of course supported by any platform that can open the Web, and the client software supports quite a few platforms, such as Windows, Linux, IOS, and Android.

In addition to cloud storage, owncloud can also be used for syncing calendars, e-mail contacts, web browser bookmarks, as well as multi-person online file sync collaboration capabilities.


Cloud Server Comparison

Before installing the owncloud, the seafile was also applied, and overall seafile features and details were lacking. But the biggest difference between Seafile and owncloud is:

owncloud data files are stored directly on the server's disk, and the directory structure is the same structure as the Web page (client) sees. So even if one day owncloud hang, or stop development, export data is very convenient, or even directly delete owncloud can.

Seafile data files are sliced and consolidated when stored on the server (default encryption is not clear), which ensures data security, even if the server root account cannot view the contents of the file, but Seafile's administrator can modify the other user's password. So this encryption function seems to have a problem. In addition, if seafile hangs or stops updating, the data export becomes almost impossible.


Here's how to build a owncloud server on Ubuntu (Beta version: 14.04 server)


Installation (via Apt-get)

Different versions of Linux are available to view:
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 the key will be able to distribute updates, packages, and software sources (more information) that your system will trust. To add the 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 bit long because the package needs to be downloaded from download.opensuse.org, and the domestic network access speed is not fast. You can download the installation package yourself even VPN.

During the installation, MySQL will ask you to enter the root password, enter and confirm.


After execution, if there is no error, the installation is complete, can be accessed by http://domain or Ip/owncloud, you will see the initialization configuration interface. Depending on the prompt settings, note that when setting up a data storage location, you need to make sure that the Www-data user has permission to write to that location (see configuration).



Configuration


Note that after you modify the configuration, you restart Apache for the configuration to take effect

Sudo/etc/init.d/apache2 restart


To modify access permissions for a path location before setting the data file location
sudo chown www-data:www-data < paths >


Modifying the default encoding

Edit file:/etc/php5/apache2/php.ini

Remove the following line before # Let the configuration take effect:

Default_charset = "UTF-8"



Upload size limit (set to 10G)

Edit file:/var/www/html/owncloud/.htaccess

Php_value upload_max_filesize 10240M

Php_value post_max_size 10240M

Php_value Memory_limit 2048M



Change to default page (access URL is not/owncloud)

Edit file:/etc/apache2/sites-enabled/000-default.conf

To modify a row:

Documentroot/var/www/http

Switch

Documentroot/var/www/owncloud




Use owncloud to build your personal cloud service (Ubuntu 14.04 Server)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.