It is easy to setup an OwnCloud server on Ubuntu.
(1) Install OwnCloud following instructions here:
The installation is automatic. In the process you will be asked for MySQL’s administrative credentials.
After installation, type localhost/owncloud in a browser, you will see the configuration page of OwnCloud. If you satisfy with SQLite, then you can following the instructions to finish the configuration. If you want to use MySQL which is recommended by OwnCloud, you shall take the following effects.
(2) Create a MySQL user for OwnCloud and a database for OwnCloud with the following commands
mysql -u root -q # Login MySQL. Following parts are in mysql.
CREATE USER ‘owncloud’@’localhost’;
SET PASSWORD FOR ‘owncloud’@’localhost’ = password( ‘YourPassWordForMySQL’ );
CREATE DATABASE owncloud;
GRANT ALL ON owncloud.* TO ‘owncloud’@’localhost’;
(3) In a browser, type localhost/owncloud, and follow configuration instructions on the webpage.
If you choose MySQL, then on the second page, select MySQL and set these parameters:
database user: owncloud
database password: YourPassWordForMySQL
After successful configuration, if you would like to tighten security, you can take the following effort.
(1) Enforce https.
(1a): Install ssl certificate for your apache server. Below are useful informaiton:
(1b) Enforce https in OwnCloud’s administrative panel.
(2) In your router, remove port 80 from your “Virtual Server” for port forwarding.
(3) In your router, enable MAC filtering, only allowing those devices that you permit to use the cloud.