installs:wiki:setup
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| installs:wiki:setup [2024/01/27 14:16] – elraphik | installs:wiki:setup [2024/01/30 11:51] (current) – [5. Install PHP dependencies] elraphik | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Initial setup for DokuWiki ====== | ====== Initial setup for DokuWiki ====== | ||
| - | To install this instance of DokuWiki, we had already some important components set up. | + | To install this instance of DokuWiki, we had already some important components set up, but let's recap them quickly. |
| + | |||
| + | |||
| + | ===== Server ===== | ||
| + | First, we needed the server, which does not need too much hardware resources. You can use an old laptop or desktop as host, or have it run alongside other services on a server. We chose this last option here. | ||
| + | |||
| + | OS-wise, the server runs on Debian 11 (bullseye), which should be perfectly fine. | ||
| + | |||
| + | |||
| + | ===== PHP Install===== | ||
| + | To function properly, DokuWiki needs a web server that can run php, and obviously php, as we can see on their [[doku> | ||
| + | |||
| + | There are plenty of webservers to choose from, but here we already used [[https:// | ||
| + | |||
| + | As for php, we just need to install it. The version recommended by DokuWiki is php8, but the available major version on Debian 11's official repos is 7, so we'll need to add an external repo that contains php8. | ||
| + | |||
| + | ==== 1. Add Sury PHP repo ==== | ||
| + | |||
| + | As said above, the PHP 8.X packages are not available on the default base repositories, | ||
| + | |||
| + | <code bash> | ||
| + | echo "deb https:// | ||
| + | | sudo tee / | ||
| + | </ | ||
| + | |||
| + | <WRAP center round info 100%> | ||
| + | This is a single line command, so you can just copy/paste the whole command into your terminal and hit **Enter**. | ||
| + | </ | ||
| + | |||
| + | |||
| + | ==== 2. Import GPG Key on Debian ==== | ||
| + | |||
| + | Now the system needs to verify the packages received from the SURY repo to confirm their authenticity. | ||
| + | |||
| + | <code bash> | ||
| + | wget -qO - " | ||
| + | </ | ||
| + | |||
| + | ==== 3. Update APT cache ==== | ||
| + | |||
| + | Now we have to flush and rebuild the repositories cache so that APT is aware of the latest packages. | ||
| + | |||
| + | <code bash> | ||
| + | sudo apt update | ||
| + | </ | ||
| + | |||
| + | ==== 4. Install PHP 8.X ==== | ||
| + | |||
| + | Now that the repo is fully configured, we can just run the install command for php8 with apt package manager. | ||
| + | |||
| + | <code bash> | ||
| + | sudo apt install php8 | ||
| + | </ | ||
| + | |||
| + | ==== 5. Install PHP dependencies ==== | ||
| + | |||
| + | Normally, we could' | ||
| + | |||
| + | <code bash> | ||
| + | sudo apt install php8.3-{xml, | ||
| + | </ | ||
| + | |||
| + | <WRAP center round important 100%> | ||
| + | Mind replacing '' | ||
| + | </ | ||
| + | |||
| + | And that's it for the PHP install, we can now install DokuWiki itself, and then we'll do the Nginx configuration as it'll be easier afterwards. | ||
| - | First, the server. TODO | ||
installs/wiki/setup.1706364962.txt.gz · Last modified: 2024/01/27 14:16 by elraphik
