|
5 | 5 | { "path": ":wiki:markup_docs:getting_started:1_dokuwiki" },
|
6 | 6 | { "path": ":wiki:markup_getting_started:1_dokuwiki" }
|
7 | 7 | ],
|
8 |
| - "name": "Dokuwiki Installation", |
9 |
| - "page_id": "52gxusbx7sb0v76bgvn9v", |
10 |
| - "template": "holy", |
11 |
| - "title": "How to install Dokuwiki ?" |
| 8 | + "name": "Dokuwiki Up and Running", |
| 9 | + "page_id": "52gxusbx7sb0v76bgvn9v" |
12 | 10 | }
|
13 | 11 | ---
|
14 |
| -====== ComboStrap Getting Started - Dokuwiki Instance ====== |
| 12 | +====== How to get DokuWiki Up and Running? ====== |
15 | 13 |
|
16 | 14 | ===== About =====
|
17 |
| -Because [[:combostrap|ComboStrap]] is built on top of the [[doku>|Dokuwiki Engine]], the first step is to have a DokuWiki Installation. |
| 15 | +Because [[:combostrap|ComboStrap]] is built on top of the [[doku>|Dokuwiki Engine]], the first step is to have a DokuWiki app up and running. |
18 | 16 |
|
| 17 | +This article will show you how. |
19 | 18 |
|
20 |
| -We supports two kind of installation: |
21 |
| - * [[#Docker|Docker]] - our image that comes with battery included |
22 |
| - * [[#server|Standalone Server]] - on a raw server |
23 | 19 |
|
| 20 | +===== Docker / Server ===== |
24 | 21 |
|
25 |
| -===== Type ===== |
| 22 | +This tutorial series uses our [[:docs:admin:docker|Docker image]] for consistency |
| 23 | +but if you have a standalone server and want to install DokuWiki on it, you can also follow this [[howto:server_installation:start|tutorial series]]. |
26 | 24 |
|
27 | 25 |
|
28 |
| -==== Docker ==== |
29 | 26 |
|
| 27 | +===== Steps ===== |
30 | 28 |
|
31 |
| -We recommend greatly to start with [[#docker|Docker]] as: |
| 29 | +We recommend greatly to use our [[:docs:admin:docker|DokuWiki in Docker image]] as: |
32 | 30 | * it's the easiest way to get DokuWiki up and running
|
33 | 31 | * it contains all performance cache system (php-fpm and opcache)
|
34 |
| - * a Server DokuWiki installation is not easy and straightforward. |
| 32 | + * a Server DokuWiki installation is not easy and straightforward |
| 33 | + * and [[:docs:admin:docker#features|more]]. |
35 | 34 |
|
36 | 35 |
|
37 |
| -==== Server ==== |
| 36 | +==== Install Docker ==== |
38 | 37 |
|
39 |
| -To get DokuWiki on a server, you can follow this [[howto:server_installation:start|installation tutorial]] |
40 | 38 |
|
| 39 | +Download the Docker binary or install a package as explained on this [[https://docs.docker.com/engine/install/|article]]. |
| 40 | + |
| 41 | + |
| 42 | +==== On Windows? ==== |
| 43 | + |
| 44 | +On Windows, you need to install WSL by following this [[https://learn.microsoft.com/en-us/windows/wsl/install|instructions]]. |
| 45 | +Why? Because Php is still a Linux and C technology that is really slow on Windows. This is architectural as explained on [[https://github.com/docker/for-win/issues/6742|this issue]] |
| 46 | + |
| 47 | +==== Create a data directory ==== |
| 48 | + * Create a directory to store the DokuWiki Data |
| 49 | +<code bash> |
| 50 | +mkdir -p ~/site-combo-starter |
| 51 | +</code> |
| 52 | + * And go into it to change the current directory |
| 53 | +<code bash> |
| 54 | +cd site-combo-starter |
| 55 | +</code> |
| 56 | + |
| 57 | +==== Start DokuWiki in Docker ==== |
| 58 | + |
| 59 | +Start a DokuWiki Docker Instance with the following command. |
| 60 | +<code bash> |
| 61 | +docker run \ |
| 62 | + --name site-combo-starter \ |
| 63 | + --rm \ |
| 64 | + -p 8080:80 \ |
| 65 | + --user 1000:1000 \ |
| 66 | + -e DOKU_DOCKER_ACL_POLICY='public' \ |
| 67 | + -e DOKU_DOCKER_ADMIN_NAME='admin' \ |
| 68 | + -e DOKU_DOCKER_ADMIN_PASSWORD='welcome' \ |
| 69 | + -v $PWD:/var/www/html \ |
| 70 | + ghcr.io/combostrap/dokuwiki:php8.3-latest |
| 71 | +</code> |
| 72 | +where: |
| 73 | + * ''DOKU_DOCKER_ACL_POLICY='public''' will configure a wiki that can only be seen by the public. You need to login to modify it. |
| 74 | + * ''DOKU_DOCKER_ADMIN_NAME='admin''' create a user named ''admin'' with the ''admin'' permission. |
| 75 | + * ''DOKU_DOCKER_ADMIN_PASSWORD='welcome''' is the password of the admin user |
| 76 | + * ''%%-v $PWD:/var/www/html%%'' mount your current directory ''PWD'' into the image at the HTML server root ''/var/www/html'' |
| 77 | + * ''--user 1000:1000'' will create file as if it were you creating them. The user ''1000'' is the UID of your Desktop user (in Windows WSL at least) |
| 78 | + |
| 79 | + |
| 80 | + |
| 81 | + |
| 82 | + |
| 83 | + |
| 84 | +==== Check that the instance has started ==== |
| 85 | + |
| 86 | +The command above will: |
| 87 | + * start php, |
| 88 | + * install DokuWiki, |
| 89 | + * install the [[https://github.com/ComboStrap/site-starter|starter site]] |
| 90 | + * and is ready when you see this lines: |
| 91 | +<console> |
| 92 | +INFO success: caddy entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) |
| 93 | +INFO success: php_error_log entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) |
| 94 | +INFO success: php_fpm entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) |
| 95 | +</console> |
| 96 | + * You can then access DokuWiki at http://localhost:8080 |
| 97 | + |
| 98 | +{{:howto:getting_started:site-starter-home-page-snapshot.png?600|}} |
| 99 | + |
| 100 | + |
| 101 | +<note> |
| 102 | +=== How to stop the instance === |
| 103 | + |
| 104 | +If you want to stop the instance: |
| 105 | + * you can press ''Control+C'' with your keyboard in the current terminal |
| 106 | + * Or you can open another terminal and stop it with the following command |
| 107 | +<code bash> |
| 108 | +docker stop site-combo-starter |
| 109 | +</code> |
| 110 | +</note> |
| 111 | + |
| 112 | + |
| 113 | +==== Login ==== |
| 114 | + |
| 115 | + |
| 116 | +Go to the [[http://localhost:8080/?do=login|login page]]: http://localhost:8080/?do=login |
| 117 | + |
| 118 | +And enter the credentials: |
| 119 | + * user: ''admin'' |
| 120 | + * password: ''welcome'' |
| 121 | + |
| 122 | + |
| 123 | + |
| 124 | + |
| 125 | +===== Next Step ===== |
| 126 | + |
| 127 | +In the next step, you will learn to install a ''favicon'' |
| 128 | + |
| 129 | +<button color='white'> |
| 130 | +[[:howto:getting_started:6_favicon|Configure a Favicon]] |
| 131 | +</button> |
0 commit comments