This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| owncloud_with_iredmail_ldap [2015/03/05 08:59] – herwarth | owncloud_with_iredmail_ldap [2016/10/17 20:00] (current) – herwarth | ||
|---|---|---|---|
| Line 2: | Line 2: | ||
| =====Installation===== | =====Installation===== | ||
| ====Repository==== | ====Repository==== | ||
| - | | + | yum -y install centos-release-scl |
| - | wget http:// | + | wget http:// |
| ====Base software==== | ====Base software==== | ||
| + | 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 | ||
| + | |||
| + | cp / | ||
| + | cp / | ||
| + | cp / | ||
| + | ln -s / | ||
| - | yum install httpd mariadb-server php-mysql php-ldap php php-gd php-mbstring php-xml bzip2 policycoreutils-python | ||
| systemctl enable httpd.service | systemctl enable httpd.service | ||
| systemctl start httpd.service | systemctl start httpd.service | ||
| Line 13: | 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 38: | Line 40: | ||
| setsebool -P httpd_can_sendmail 1 | setsebool -P httpd_can_sendmail 1 | ||
| setsebool -P httpd_can_connect_ldap 1 | setsebool -P httpd_can_connect_ldap 1 | ||
| - | + | setsebool -P httpd_use_nfs 1 | |
| - | | + | I am using NFS mount for data mounted on /mnt/data |
| - | restorecon -Rv '/var/ | + | <code - /etc/fstab> |
| - | + | . | |
| - | semanage fcontext -a -t httpd_sys_rw_content_t '/ | + | . |
| - | restorecon -Rv '/ | + | [2a02: |
| - | + | ||
| - | 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 128: | Line 119: | ||
| </ | </ | ||
| ====Configure 2GB upload==== | ====Configure 2GB upload==== | ||
| - | <code - / | + | <code - / |
| . | . | ||
| . | . | ||