This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| dokuwiki_on_centos7 [2015/03/04 13:20] – [Enabled plugins] herwarth | dokuwiki_on_centos7 [2015/06/15 15:29] (current) – [Permission and SElinux] herwarth | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | {{tag> | ||
| ======Dokuwiki installation on CentOS 7====== | ======Dokuwiki installation on CentOS 7====== | ||
| + | =====Installation===== | ||
| Installation will be done in the document-root of the webserver. This makes reverse-proxying easier. | Installation will be done in the document-root of the webserver. This makes reverse-proxying easier. | ||
| Line 6: | Line 6: | ||
| Download latest stable release from [[http:// | Download latest stable release from [[http:// | ||
| - | < | + | |
| - | cd /var/tmp | + | tar -xvzf / |
| - | tar -xvzf / | + | mv / |
| - | mv / | + | mv / |
| - | mv / | + | |
| - | </ | + | |
| + | =====Configuration===== | ||
| ====Permission and SElinux==== | ====Permission and SElinux==== | ||
| - | < | + | |
| - | chown -R apache. / | + | chown -R apache. / |
| - | chown -R apache. / | + | chown -R apache. / |
| - | chown -R apache. / | + | chown -R apache. / |
| - | chown -R apache. / | + | |
| - | </ | + | |
| - | < | + | |
| - | semanage fcontext -a -t httpd_sys_rw_content_t "/ | + | semanage fcontext -a -t httpd_sys_rw_content_t "/ |
| - | semanage fcontext -a -t httpd_sys_rw_content_t "/ | + | semanage fcontext -a -t httpd_sys_rw_content_t "/ |
| - | semanage fcontext -a -t httpd_sys_rw_content_t "/ | + | semanage fcontext -a -t httpd_sys_rw_content_t "/ |
| - | semanage fcontext -a -t httpd_sys_rw_content_t "/ | + | |
| - | </ | + | |
| restorecon -Rv / | restorecon -Rv / | ||
| - | ====httpd settings==== | + | setsebool -P httpd_anon_write 1 |
| - | <code> | + | setsebool -P httpd_can_connect_ldap 1 |
| - | cat << EOF > / | + | setsebool -P httpd_can_sendmail 1 |
| + | |||
| + | ====When enabling upgrade plugin==== | ||
| + | semanage fcontext -a -t httpd_sys_rw_content_t "/ | ||
| + | chown -R apache. / | ||
| + | restorecon -Rv / | ||
| + | |||
| + | ====Apache | ||
| + | < | ||
| LocationMatch "/ | LocationMatch "/ | ||
| order allow,deny | order allow,deny | ||
| Line 37: | Line 40: | ||
| | | ||
| </ | </ | ||
| - | EOF | ||
| - | </ | ||
| - | |||
| - | ====SElinux booleans==== | ||
| - | < | ||
| - | setsebool httpd_anon_write 1 | ||
| - | setsebool httpd_can_connect_ldap 1 | ||
| - | setsebool httpd_can_sendmail 1 | ||
| </ | </ | ||
| ====Enabled plugins==== | ====Enabled plugins==== | ||
| - | *add new page | + | |
| - | *ldap auth | + | * ldap auth |
| - | *changes plugin (zoeken op changelog) | + | * changes plugin (zoeken op changelog) |
| - | *pagelist | + | * pagelist |
| - | *toc | + | * toc |
| - | *tag | + | * tag |
| - | *dokuwiki upgrade | + | * dokuwiki upgrade |
| - | *wrap | + | * wrap |
| + | {{tag> | ||