documentation:dokuwiki
Differences
This shows you the differences between two versions of the page.
| documentation:dokuwiki [2020/02/01 12:35] – external edit 127.0.0.1 | documentation:dokuwiki [2020/02/02 14:11] (current) – removed lucid | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== DokuWiki Installation ====== | ||
| - | |||
| - | This install guide is a how-to for installing DokuWiki Ubuntu server 16.04. | ||
| - | |||
| - | ===== Prerequisites ===== | ||
| - | Files needed for DokuWiki to work. | ||
| - | |||
| - | sudo apt install php7.0 php7.0-common php7.0-cli php7.0-gd php7.0-mbstring php7.0-mcrypt php7.0-mysql php7.0-xml php7.0-ldap php7.0-fpm | ||
| - | sudo apt install nginx | ||
| - | |||
| - | ===== DokuWiki ===== | ||
| - | Download and extract DokuWiki stable to the proper directory. | ||
| - | wget -c https:// | ||
| - | mv dokuwiki-stable.tgz dokuwiki.tgz | ||
| - | sudo tar xvf dokuwiki.tgz -C /var/www/ | ||
| - | |||
| - | ===== Let's Encrypt ===== | ||
| - | For SSL use the EFF's PPA for the Let's Encrypt certbot. | ||
| - | sudo add-apt-repository ppa: | ||
| - | sudo apt update; sudo apt upgrade | ||
| - | sudo apt install python-certbot-nginx | ||
| - | sudo certbot --nginx certonly | ||
| - | |||
| - | Cert and Key locations: | ||
| - | / | ||
| - | / | ||
| - | |||
| - | ------------- | ||
| - | source: https:// | ||
| - | |||
| - | ==== Renewing Certificate ==== | ||
| - | sudo certbot renew | ||
| - | |||
| - | ===== Configure nginx ===== | ||
| - | Need to make the configuration file for nginx to point to the correct files. Make sure to change the domain to the correct one, a generic placeholder wiki.domainname.tld is used for this example config. | ||
| - | sudo nano / | ||
| - | Paste in the below configuration and save. | ||
| - | |||
| - | |||
| - | server { | ||
| - | | ||
| - | listen 443 ssl; | ||
| - | | ||
| - | root / | ||
| - | | ||
| - | access_log / | ||
| - | | ||
| - | | ||
| - | ssl on; | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | add_header Content-Security-Policy " | ||
| - | add_header X-XSS-Protection "1; mode=block"; | ||
| - | | ||
| - | index index.html index.php doku.php; | ||
| - | | ||
| - | location / { | ||
| - | | ||
| - | } | ||
| - | | ||
| - | location @dokuwiki { | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | } | ||
| - | | ||
| - | location ~ / | ||
| - | deny all; | ||
| - | } | ||
| - | | ||
| - | location ~* \.(css|js|gif|jpe? | ||
| - | | ||
| - | | ||
| - | | ||
| - | } | ||
| - | | ||
| - | location ~ \.php$ { | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | } | ||
| - | | ||
| - | location ~ /\.ht { | ||
| - | deny all; | ||
| - | } | ||
| - | } | ||
| - | | ||
| - | | ||
| - | server { | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | } | ||
| - | |||
| - | Here we are going to change the permissions on the web root files so that the web server can use and modify them. | ||
| - | |||
| - | sudo chown -R www-data: | ||
| - | |||
| - | Start nginx and php-fpm, and enable php-fpm to start at boot. | ||
| - | sudo systemctl start nginx php7.0-fpm | ||
| - | sudo systemctl enable php7.0-fpm | ||
| - | |||
| - | |||
| - | ===== Configure DokuWiki ===== | ||
| - | Navigate your browser to your https:// | ||
| - | |||
| - | From there you can configure everything for the initial setup of DokuWiki. | ||
| - | |||
| - | ==== Removing the Glow ==== | ||
| - | Make userstyle.css in /conf | ||
| - | sudo nano / | ||
| - | |||
| - | Copy the following | ||
| - | .dokuwiki div.page { | ||
| - | box-shadow: | ||
| - | } | ||
| - | .dokuwiki .pageId span { | ||
| - | box-shadow: | ||
| - | } | ||
| - | pre { | ||
| - | box-shadow: | ||
| - | } | ||
documentation/dokuwiki.1580560512.txt.gz · Last modified: 2021/06/18 16:36 (external edit)