start:software:wiki:dokuwiki
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
start:software:wiki:dokuwiki [2025/05/25 07:39] – marlonivo | start:software:wiki:dokuwiki [Unknown date] (current) – removed - external edit (Unknown date) 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | DokuWiki | ||
- | |||
- | DokuWiki is a simple wiki software, similar to MediaWiki. Unlike MediaWiki, it uses plain text files to store its content, not databases, making it simpler to configure than MediaWiki. It’s a good choice if you want a simple wiki engine without all the bells and whistles of MediaWiki and the additional step of setting up databases. | ||
- | Installation | ||
- | |||
- | Although DokuWiki is available on the main debian repos, it is outdated and has a different directory structure, which may lead to problems with plugins and make it harder to follow the official documentation, | ||
- | |||
- | First, install the dependencies. | ||
- | |||
- | apt install nginx php php-fpm php-xml php-mbstring php-zip php-intl php-gd | ||
- | |||
- | Now, get the tarball. | ||
- | |||
- | wget https:// | ||
- | tar xzvf dokuwiki-stable.tgz | ||
- | mv dokuwiki-*a / | ||
- | chown -R www-data: | ||
- | |||
- | Nginx Configuration | ||
- | |||
- | Create a file named / | ||
- | |||
- | server { | ||
- | listen 80; | ||
- | listen [::]:80; | ||
- | server_name wiki.example.org; | ||
- | |||
- | # Maximum file upload size is 4MB - change accordingly if needed | ||
- | client_max_body_size 4M; | ||
- | client_body_buffer_size 128k; | ||
- | |||
- | root / | ||
- | index doku.php; | ||
- | |||
- | #Remember to comment the below out when you're installing, and uncomment it when done. | ||
- | #location ~ / | ||
- | |||
- | #Support for X-Accel-Redirect | ||
- | location ~ ^/data/ { internal ; } | ||
- | |||
- | location ~ ^/ | ||
- | expires 365d; | ||
- | } | ||
- | |||
- | location / { try_files $uri $uri/ @dokuwiki; } | ||
- | |||
- | location @dokuwiki { | ||
- | # rewrites " | ||
- | rewrite ^/ | ||
- | rewrite ^/ | ||
- | rewrite ^/ | ||
- | rewrite ^/(.*) / | ||
- | } | ||
- | |||
- | location ~ \.php$ { | ||
- | try_files $uri $uri/ /doku.php; | ||
- | include fastcgi_params; | ||
- | fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | ||
- | fastcgi_param REDIRECT_STATUS 200; | ||
- | fastcgi_pass unix:/ | ||
- | # fastcgi_pass unix:/ | ||
- | } | ||
- | } | ||
- | |||
- | Enable the website. | ||
- | |||
- | ln -s / | ||
- | |||
- | Generate a SSL certificate for the subdomain. | ||
- | |||
- | certbot --nginx | ||
- | |||
- | Restart nginx and php in order for the changes to take effect. | ||
- | |||
- | systemctl restart nginx && systemctl restart php8.2-fpm | ||
- | |||
- | Finally, go to wiki.yourwebsite.com/ | ||
- | |||
- | Once that’s done, remember to uncomment the location line on the nginx configuration file. Open / | ||
- | |||
- | #Remember to comment the below out when you're installing, and uncomment it when done. | ||
- | location ~ / | ||
- | |||
- | Reload nginx once again for the changes to take effect. | ||
- | |||
- | systemctl restart nginx | ||
- | |||
- | Your wiki is now live! Have fun and happy hacking. | ||
- | |||
- | Contributor - Adachi | ||