User Tools

Site Tools


dokuwiki_on_centos7

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
dokuwiki_on_centos7 [2015/03/04 13:20] – [Enabled plugins] herwarthdokuwiki_on_centos7 [2015/06/15 15:29] (current) – [Permission and SElinux] herwarth
Line 1: Line 1:
-{{tag>centos}} 
 ======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.dokuwiki.org/]] and put the .tgz in /var/tmp Download latest stable release from [[http://download.dokuwiki.org/]] and put the .tgz in /var/tmp
-<code> +  cd /var/tmp 
-cd /var/tmp +  tar -xvzf /root/dokuwiki-stable.tgz 
-tar -xvzf /root/dokuwiki-stable.tgz +  mv /var/tmp/dokuwiki*/* /var/www/html 
-mv /var/tmp/dokuwiki*/* /var/www/html +  mv /var/tmp/dokuwiki*/.* /var/www/html
-mv /var/tmp/dokuwiki*/.* /var/www/html +
-</code>+
  
 +=====Configuration=====
 ====Permission and SElinux==== ====Permission and SElinux====
-<code> +  chown -R apache. /var/www/html/conf 
-chown -R apache. /var/www/html/conf +  chown -R apache. /var/www/html/data 
-chown -R apache. /var/www/html/data +  chown -R apache. /var/www/html/lib/plugins 
-chown -R apache. /var/www/html/lib/plugins +  chown -R apache. /var/www/html/lib/tpl
-chown -R apache. /var/www/html/lib/tpl +
-</code>+
  
-<code> +  semanage fcontext -a -t httpd_sys_rw_content_t "/var/www/html/conf(/.*)?" 
-semanage fcontext -a -t httpd_sys_rw_content_t "/var/www/html/conf(/.*)?" +  semanage fcontext -a -t httpd_sys_rw_content_t "/var/www/html/data(/.*)?" 
-semanage fcontext -a -t httpd_sys_rw_content_t "/var/www/html/data(/.*)?" +  semanage fcontext -a -t httpd_sys_rw_content_t "/var/www/html/lib/plugins(/.*)?" 
-semanage fcontext -a -t httpd_sys_rw_content_t "/var/www/html/lib/plugins(/.*)?" +  semanage fcontext -a -t httpd_sys_rw_content_t "/var/www/html/lib/tpl(/.*)?"
-semanage fcontext -a -t httpd_sys_rw_content_t "/var/www/html/lib/tpl(/.*)?" +
-</code>+
   restorecon -Rv /var/www/html   restorecon -Rv /var/www/html
  
-====httpd settings==== +  setsebool -P httpd_anon_write 1 
-<code+  setsebool -P httpd_can_connect_ldap 1 
-cat << EOF > /etc/httpd/conf.d/dokuwiki.conf+  setsebool -P httpd_can_sendmail 1 
 + 
 +====When enabling upgrade plugin==== 
 +  semanage fcontext -a -t httpd_sys_rw_content_t "/var/www/html(/.*)?" 
 +  chown -R apache. /var/www/html 
 +  restorecon -Rv /var/www/html 
 + 
 +====Apache settings==== 
 +<code /etc/httpd/conf.d/dokuwiki.conf>
 LocationMatch "/(data|conf|bin|inc)/"> LocationMatch "/(data|conf|bin|inc)/">
    order allow,deny    order allow,deny
Line 37: Line 40:
    satisfy all    satisfy all
 </LocationMatch> </LocationMatch>
-EOF 
-</code> 
- 
-====SElinux booleans==== 
-<code> 
-setsebool httpd_anon_write 1 
-setsebool httpd_can_connect_ldap 1 
-setsebool httpd_can_sendmail 1 
 </code> </code>
  
 ====Enabled plugins==== ====Enabled plugins====
-*add new page +  * 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>centos}}
dokuwiki_on_centos7.1425475208.txt.gz · Last modified: by herwarth