DokuWiki

It's better when it's simple

User Tools

Site Tools


install:fedora

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
Next revisionBoth sides next revision
install:fedora [2014-09-10 06:28] – old revision restored (2014-02-17 18:56) 2001:4dd0:ff00:8eb9:54c0:ed2d:3eee:cb27install:fedora [2022-08-05 10:02] – old revision restored (2022-07-31 23:28) schplurtz
Line 3: Line 3:
 DokuWiki is available in the Fedora repositories. These instructions are written for Fedora 19, there may be differences for other versions. Do DokuWiki is available in the Fedora repositories. These instructions are written for Fedora 19, there may be differences for other versions. Do
  
-  yum install dokuwiki dokuwiki-selinux+  dnf install httpd php dokuwiki dokuwiki-selinux
  
 The package ''dokuwiki-selinux'' is necessary for the Configuration Manager of DokuWiki to work. It configures [[wp>Security-Enhanced Linux|SELinux]] to allow dokuwiki to write to its configuration. The package ''dokuwiki-selinux'' is necessary for the Configuration Manager of DokuWiki to work. It configures [[wp>Security-Enhanced Linux|SELinux]] to allow dokuwiki to write to its configuration.
  
-Package details are available at https://admin.fedoraproject.org/pkgdb/acls/name/dokuwiki+Package details are available at https://admin.fedoraproject.org/pkgdb/package/rpms/dokuwiki/
  
 ===== httpd ===== ===== httpd =====
Line 92: Line 92:
  
 Tried with Fedora 20 on 2014-02-17. Tried with Fedora 20 on 2014-02-17.
 +
 +
 +==== Solution 3 ====
 +
 +The Fedora ''dokuwiki-selinux-0-0.24.20140929c.fc21.noarch.rpm'' package's postinstall-script is running the following commands:
 +<code>
 +semanage fcontext -a -t httpd_sys_rw_content_t '/etc/dokuwiki(/.*)?'
 +semanage fcontext -a -t httpd_sys_content_t '/usr/share/dokuwiki(/.*)?'
 +semanage fcontext -a -t httpd_sys_rw_content_t '/usr/share/dokuwiki/lib/plugins(/.*)?'
 +restorecon -R '/etc/dokuwiki'
 +restorecon -R '/usr/share/dokuwiki'
 +</code>
 +
 +You may want to consider adapting and running these commands.
 +
 +==== Solution 4 ====
 +The ''chcon'' command changes the SELinux context for files temporary. These changes do not survive a file system relabel, or the ''restorecon'' command.
 +
 +    chcon -t httpd_sys_rw_content_t /etc/dokuwiki/ -R
 +    chcon -t httpd_sys_content_t /usr/share/dokuwiki/ -R
 +    chcon -t httpd_sys_rw_content_t /usr/share/dokuwiki/lib/plugins/ -R
 +
 +You can restore default SELinux context for this files by running:
 +    restorecon -R '/etc/dokuwiki/'
 +    restorecon -R '/usr/share/dokuwiki/'
 +    restorecon -R '/usr/share/dokuwiki/lib/plugins/'
 +
 +====== Install the package downloaded from the website ======
 +
 +See [[https://openhsc.org/wiki/install_nginx_and_dokuwiki_on_fedora_server_29|this wiki page on how to install DokuWiki with nginx on Fedora 29]]
install/fedora.txt · Last modified: 2024-04-26 17:03 by 2a02:8012:102b:0:120b:db7:2bbd:6bc

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki