User Tools

Site Tools


computing:storage:owncloud

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
computing:storage:owncloud [2014/11/22 18:06]
gcooper
— (current)
Line 1: Line 1:
-====== OwnCloud ====== 
- 
-http://owncloud.org/ 
- 
-http://fedoraproject.org/wiki/OwnCloud 
- 
-  * Synchronized cloud storage on your hardware 
-  * Virtualmin Pro has install script 
- 
-===== Installation ===== 
- 
-==== Virtualmin ==== 
- 
-**Virtualmin -> <domain> -> Install Scripts -> Available Scripts -> OwnCloud** 
- 
-  - 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:linux:minimal_centos_install|Minimal CentOS Install]]** 
- 
-:!: Smaller installations should just use **SQLite database for simplicity**. 
- 
-Install prerequisites and secure MySQL (initial MySQL password is blank): 
- 
-<file> 
-yum install mod_ssl openssl php-pdo php-gd php-mysql mariadb-server mariadb 
-</file> 
- 
-Prepare the MySQL database: 
- 
-<file> 
-systemctl start mariadb && systemctl enable mariadb 
- 
-mysql_secure_installation 
-</file> 
- 
-<file> 
-mysql -u root -p 
-</file> 
- 
-<file> 
-CREATE USER 'owncloud'@'localhost' IDENTIFIED BY 'password'; 
-CREATE DATABASE IF NOT EXISTS owncloud; 
-GRANT ALL PRIVILEGES ON owncloud.* TO 'owncloud'@'localhost' IDENTIFIED BY 'password'; 
-FLUSH PRIVILEGES; 
-</file> 
- 
-Open ports in the firewall: 
- 
-<file> 
-firewall-cmd --permanent --zone=public --add-service=http --add-service=https 
-firewall-cmd --reload 
-</file> 
- 
-Enable the repository: http://software.opensuse.org/download/package?project=isv:ownCloud:community&package=owncloud 
- 
-Enable the web server startup and reboot: 
- 
-<file> 
-systemctl enable httpd 
-reboot 
-</file> 
- 
-Set permissions: 
- 
-<file> 
-find /var/www/html/owncloud -type d -exec chmod 775 {} \; 
-find /var/www/html/owncloud -type f -exec chmod 664 {} \; 
-chown -R root:root /var/www/html/owncloud 
-chown apache.apache /var/www/html/owncloud/config/config.php 
-chown -R apache.apache /var/www/html/owncloud/data 
-chown root.root /var/www/html/owncloud/data/.htaccess 
-chown apache.apache /var/www/html/owncloud/apps 
-</file> 
- 
-===== Storage ===== 
- 
-Here we mount an NFS share as the OwnCloud data store: 
- 
-<file> 
-mount -t nfs ip.of.nfs.svr:/path/to/owncloud /mnt/ 
- 
-rsync -avr /var/www/html/owncloud/data/* /mnt/ 
- 
-umount /mnt/ 
-</file> 
- 
-Make it survive a reboot: 
-<file> 
- 
-vim /etc/fstab 
- 
-# Mount the NFS data store 
-ip.of.nfs.svr:/path/to/owncloud        /var/www/html/owncloud/data/  nfs  _netdev,context="system_u:object_r:httpd_sys_rw_content_t:s0"  0 0 
- 
-mount -a 
-mount 
-</file> 
- 
-:!: Verify and/or reset the permissions on the ''data'' folder as above. 
- 
  
computing/storage/owncloud.1416704793.txt.gz · Last modified: 2014/11/22 18:06 by gcooper