This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| owncloud_with_iredmail_ldap [2016/10/17 19:14] – herwarth | owncloud_with_iredmail_ldap [2016/10/17 20:00] (current) – herwarth | ||
|---|---|---|---|
| Line 6: | Line 6: | ||
| ====Base software==== | ====Base software==== | ||
| - | yum install nfs-utils | + | yum install nfs-utils mariadb-server bzip2 policycoreutils-python |
| + | yum install httpd -t | ||
| yum install php55 php55-php-gd php55-php-mbstring php55-php-xml php55-php-mysqlnd php55-php php55-php-ldap | yum install php55 php55-php-gd php55-php-mbstring php55-php-xml php55-php-mysqlnd php55-php php55-php-ldap | ||
| - | | + | |
| - | | + | |
| + | cp / | ||
| + | cp / | ||
| + | ln -s / | ||
| systemctl enable httpd.service | systemctl enable httpd.service | ||
| systemctl start httpd.service | systemctl start httpd.service | ||
| Line 15: | Line 20: | ||
| systemctl start mariadb.service | systemctl start mariadb.service | ||
| - | ====Owncloud via yum (version 8)==== | + | ====Owncloud via yum==== |
| - | yum install | + | yum install owncloud-files |
| - | + | ||
| - | ====Owncloud via tar (version 7)==== | + | |
| - | wget https:// | + | |
| - | tar -xvjf owncloud-7.0.4.tar.bz2 -C / | + | |
| - | chown -R apache. / | + | |
| | | ||
| =====Configuration===== | =====Configuration===== | ||
| Line 41: | Line 41: | ||
| setsebool -P httpd_can_connect_ldap 1 | setsebool -P httpd_can_connect_ldap 1 | ||
| setsebool -P httpd_use_nfs 1 | setsebool -P httpd_use_nfs 1 | ||
| - | + | I am using NFS mount for data mounted on /mnt/data | |
| - | semanage fcontext -a -t httpd_sys_rw_content_t '/ | + | <code - /etc/fstab> |
| - | restorecon -Rv '/var/ | + | . |
| - | + | . | |
| - | semanage fcontext -a -t httpd_sys_rw_content_t '/ | + | [2a02: |
| - | restorecon -Rv '/ | + | |
| - | + | ||
| - | semanage fcontext -a -t httpd_sys_rw_content_t '/ | + | |
| - | restorecon -Rv '/ | + | |
| - | ====Apache==== | + | |
| - | <code - /etc/httpd/ | + | |
| - | < | + | |
| - | Alias /owncloud /var/www/html/owncloud | + | |
| - | </IfModule> | + | |
| - | < | + | |
| - | Options Indexes FollowSymLinks | + | |
| - | AllowOverride All | + | |
| - | Order allow,deny | + | |
| - | allow from all | + | |
| - | </ | + | |
| </ | </ | ||
| + | mkdir /mnt/data | ||
| + | mount -a | ||
| + | chown apache. /mnt/data | ||
| ====Add LDAP plugin==== | ====Add LDAP plugin==== | ||
| Line 139: | Line 127: | ||
| . | . | ||
| . | . | ||
| - | </ | ||
| - | |||
| - | ====Enable calendar and contact apps in 8.0.2==== | ||
| - | There is a bug in the SSL crap of owncloud so here is a quick fix. | ||
| - | |||
| - | on line 73 add the following: | ||
| - | <code - / | ||
| - | curl_setopt($curl, | ||
| </ | </ | ||
| {{tag> | {{tag> | ||