install:debian
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
install:debian [2020-11-22 00:55] – [Post Installation] cuppajoeman | 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 |
- | FIXME This page needs an update. | + | A Debian package for DokuWiki exists in the official Debian repository and can be installed through the usual Debian tools (i.e. '' |
- | DokuWiki | + | However, we generally **do not** recommend installing |
- | * [[http:// | + | * The package |
- | * [[http:// | + | * The package uses a different directory structure, which can make problems with some plugins |
- | * [[http:// | + | * The package replaces some of DokuWiki' |
- | unfortunately, | ||
- | ===== Installation ===== | ||
- | All one has to know is written [[https:// | ||
- | ==== Post Installation | + | ===== DokuWiki Debian Package |
- | == Custom domain == | + | |
- | * If you have your own custom domain, after making it point to the server that you are running the dokuwiki instance on, if you try accessing it you will get a permission denied error, so you will have to edit the file `/ | + | |
- | ==== Further Configuration of DokuWiki via the Configuration Manager ==== | + | You can find details on the official package at these sources: |
- | See ->[[:config]], the most nearby options being [[config: | + | |
- | The Extension Managers directory isn't writable. If you want to use this function, set the permissions | + | * [[http:// |
+ | * [[http:// | ||
+ | * [[http:// | ||
- | ==== lighttpd ==== | ||
- | apt-get update | + | Additional details can be found at the [[https:// |
- | apt-get install lighttpd | + | |
- | apt-get install php5-cgi php5 dokuwiki | + | |
- | 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 ==== | + | ===== Recommended Setup ===== |
- | Insert in ''/ | + | |
- | < | + | |
- | # serve static files from nginx | + | |
- | location ~ ^/ | + | |
- | root / | + | |
- | expires 30d; | + | |
- | } | + | |
- | location | + | |
- | deny all; | + | |
- | } | + | |
- | location | + | |
- | rewrite ^ /dokuwiki/ permanent; | + | |
- | } | + | |
- | location = /dokuwiki/ { | + | |
- | rewrite ^ / | + | |
- | expires 30d; | + | |
- | } | + | |
- | location ~ ^/ | + | |
- | root / | + | |
- | fastcgi_pass unix:/ | + | |
- | include | + | |
- | # from Debian Jessie, replace the previous include by | + | |
- | include snippets/ | + | |
- | } | + | |
- | location /dokuwiki/ { | + | |
- | deny all; | + | |
- | } | + | |
- | </ | + | |
+ | Instead of relying on the Debian package, it is recommended to simply install the webserver and PHP through the package manager and install DokuWiki from the sources. | ||
- | ==== Apache | + | This can be as easy as the following for a simple |
- | <code bash> | + | |
- | </ | + | |
- | After you answer yes to the prompt twice, PHP will install itself. | + | - Prepare |
- | + | $> sudo apt update | |
- | If you're just seeing an 'It works!' | + | $> sudo apt install php libapache2-mod-php php-xml php-json php-mbstring php-zip php-intl php-gd |
- | <code bash> | + | $> sudo systemctl restart |
- | //Note: nano is simply a text editing tool, use whatever you're comfortable with// | + | $> wget https://download.dokuwiki.org/src/dokuwiki/dokuwiki-stable.tgz |
- | + | $> tar xzvf dokuwiki-stable.tgz | |
- | Add index.php to the beginning of index files. The page should now look like this: | + | $> sudo mv dokuwiki-*a /var/www/html/dokuwiki |
- | <code> | + | $> sudo chown -R www-data: |
- | < | + | |
- | DirectoryIndex index.php index.html index.cgi index.pl index.php index.xhtml index.htm | + | |
- | </IfModule> | + | |
</ | </ | ||
- | 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.1606002926.txt.gz · Last modified: 2020-11-22 00:55 by cuppajoeman