This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
computing:storage:owncloud [2014/11/24 10:37] gcooper |
— (current) | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== OwnCloud ====== | ||
- | http:// | ||
- | |||
- | http:// | ||
- | |||
- | * Synchronized cloud storage on your hardware | ||
- | * Virtualmin Pro has install script | ||
- | |||
- | ===== Installation ===== | ||
- | |||
- | ==== Virtualmin ==== | ||
- | |||
- | **Virtualmin -> < | ||
- | |||
- | - Browse to the OwnCloud URL | ||
- | - When prompted to create an admin user, enter your virtual server admin username and password | ||
- | |||
- | ==== CentOS 7 ==== | ||
- | |||
- | See also **[[computing: | ||
- | |||
- | :!: Smaller installations should just use **SQLite database for simplicity**. | ||
- | |||
- | Install prerequisites: | ||
- | |||
- | < | ||
- | yum install mod_ssl openssl php-pdo php-gd php-mysql mariadb-server mariadb | ||
- | </ | ||
- | |||
- | ==== MySQL Database ==== | ||
- | |||
- | Secure the fresh MySQL (MariaDB) installation and configure for auto-start (initial MySQL password is blank): | ||
- | |||
- | < | ||
- | systemctl start mariadb && systemctl enable mariadb | ||
- | |||
- | mysql_secure_installation | ||
- | </ | ||
- | |||
- | Prepare the MySQL database: | ||
- | |||
- | < | ||
- | mysql -u root -p | ||
- | </ | ||
- | |||
- | < | ||
- | CREATE USER ' | ||
- | CREATE DATABASE IF NOT EXISTS owncloud; | ||
- | GRANT ALL PRIVILEGES ON owncloud.* TO ' | ||
- | FLUSH PRIVILEGES; | ||
- | quit | ||
- | </ | ||
- | |||
- | ==== Firewall ==== | ||
- | |||
- | Open ports in the firewall: | ||
- | |||
- | < | ||
- | firewall-cmd --permanent --zone=public --add-service=http --add-service=https | ||
- | firewall-cmd --reload | ||
- | </ | ||
- | |||
- | ==== OwnCloud ==== | ||
- | |||
- | http:// | ||
- | |||
- | Enable the repository and install OwnCloud: | ||
- | |||
- | < | ||
- | cd / | ||
- | wget http:// | ||
- | yum install owncloud | ||
- | </ | ||
- | |||
- | Enable the web server startup and reboot: | ||
- | |||
- | < | ||
- | systemctl enable httpd | ||
- | reboot | ||
- | </ | ||
- | |||
- | Reset permissions for better security: | ||
- | |||
- | < | ||
- | find / | ||
- | find / | ||
- | chown -R root:root / | ||
- | chown apache.apache / | ||
- | chown -R apache.apache / | ||
- | chown root.root / | ||
- | chown apache.apache / | ||
- | </ | ||
- | |||
- | ===== NFS Storage ===== | ||
- | |||
- | Here we mount an NFS share as the OwnCloud data store: | ||
- | |||
- | < | ||
- | mount -t nfs ip.of.nfs.svr:/ | ||
- | |||
- | rsync -avr / | ||
- | |||
- | umount /mnt/ | ||
- | </ | ||
- | |||
- | Make it survive a reboot: | ||
- | < | ||
- | |||
- | vim /etc/fstab | ||
- | |||
- | # Mount the NFS data store | ||
- | ip.of.nfs.svr:/ | ||
- | |||
- | mount -a | ||
- | mount | ||
- | </ | ||
- | |||
- | :!: Verify and/or reset the permissions on the '' | ||
- | |||
- | ===== Force SSL (HTTPS) ===== | ||
- | |||
- | - Log into OwnCloud as the administrator using HTTPS | ||
- | - Click **'' | ||
- | - Scroll down to **Security -> Enforce HTTPS** |