install:debian
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
install:debian [2017-10-04 23:20] – old revision restored (2017-09-16 11:19) 2001:470:6d:770:9e5c:8eff:fe74:2ef1 | install:debian [2024-02-07 19:37] (current) – [DokuWiki on Debian, Ubuntu and derivative Distributions] 2a02:3100:7425:1e00:2530:6ce7:845e:196a | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== DokuWiki | + | ====== DokuWiki |
- | DokuWiki is available in the official Debian repository, excluding Stretch, and is able to be installed through the usual Debian tools. | + | |
- | * [[http:// | + | A Debian |
- | * [[http:// | + | |
- | * [[http:// | + | |
- | ===== Installation ===== | + | However, we generally **do not** recommend |
- | All one has to know is written [[https:// | + | |
+ | * The package is outdated, using an older release of DokuWiki making it incompatible with many newer plugins | ||
+ | * The package uses a different directory structure, which can make problems with some plugins and may render some general documentation non applicable | ||
+ | * The package replaces some of DokuWiki' | ||
- | ==== Further Configuration of DokuWiki via the Configuration Manager ==== | ||
- | See -> | ||
- | The Extension Managers directory isn't writable. If you want to use this function, set the permissions [[plugin: | + | ===== DokuWiki Debian Package ===== |
- | ==== lighttpd ==== | + | You can find details on the official package at these sources: |
- | | + | |
- | | + | |
- | | + | |
- | lighty-enable-mod fastcgi fastcgi-php dokuwiki | ||
- | / | ||
- | If the DokuWiki mod fails to load, you may need to create a link to lighttpd.conf. See [[install: | ||
- | ==== nginx ==== | + | Additional details can be found at the [[https://wiki.debian.org/DokuWiki|DokuWiki page on the Debian Wiki]]. |
- | Insert in '' | + | |
- | < | + | |
- | # serve static files from nginx | + | |
- | location ~ ^/ | + | |
- | root / | + | |
- | expires 30d; | + | |
- | } | + | |
- | location = / | + | |
- | deny all; | + | |
- | } | + | |
- | location = /dokuwiki { | + | |
- | rewrite ^ /dokuwiki/ permanent; | + | |
- | } | + | |
- | location = /dokuwiki/ { | + | |
- | rewrite ^ / | + | |
- | expires 30d; | + | |
- | } | + | |
- | location ~ ^/dokuwiki/(|lib/ | + | |
- | root / | + | |
- | fastcgi_pass unix:/ | + | |
- | include | + | |
- | # from Debian Jessie, replace the previous include by | + | |
- | include snippets/ | + | |
- | } | + | |
- | location /dokuwiki/ { | + | |
- | deny all; | + | |
- | } | + | |
- | </ | + | |
- | ==== Apache | + | ===== Recommended Setup ===== |
- | <code bash> | + | |
- | </ | + | |
- | After you answer yes to the prompt twice, PHP will install | + | Instead of relying on the Debian package, it is recommended to simply install the webserver and PHP through the package manager and install |
- | If you're just seeing an 'It works!' | + | This can be as easy as the following for a simple Apache mod_php setup: |
- | <code bash> | + | |
- | //Note: nano is simply a text editing tool, use whatever you're comfortable with// | + | |
- | Add index.php to the beginning of index files. The page should now look like this: | + | - Prepare |
- | < | + | $> sudo apt update |
- | < | + | $> sudo apt install |
- | | + | $> sudo systemctl restart apache2.service |
- | </IfModule> | + | $> wget https:// |
+ | $> tar xzvf dokuwiki-stable.tgz | ||
+ | $> sudo mv dokuwiki-*a | ||
+ | $> sudo chown -R www-data: | ||
</ | </ | ||
- | All one has to do is already done through | + | - **Optional**\\ If you use a firewall, allow HTTP traffic. For the Uncomplicated Firewall (ufw) the command would be this:<code bash> |
- | ''/ | + | sudo ufw allow ' |
- | <code bash> | + | |
- | ls -l / | + | |
- | lrwxrwxrwx 1 root root 25 Apr 5 2014 dokuwiki.conf -> / | + | |
- | + | ||
- | ls -l / | + | |
- | lrwxrwxrwx 1 root root 32 Apr 5 2014 dokuwiki.conf -> ../ | + | |
</ | </ | ||
- | + | - Point your web browser to %%http:// | |
- | Within the Apache config file ('' | + |
install/debian.1507152058.txt.gz · Last modified: 2017-10-04 23:20 by 2001:470:6d:770:9e5c:8eff:fe74:2ef1