In this tutorial, I'm going to describe how you can install the BookStack wiki software on a Debian 11 server.
We use Docker for the installation to keep the process relatively simple. BookStack is a free software for organizing and storing information. Among other things, the software supports uploading files and embedding source code. This is why this wiki solution is suitable for people interested in documentation work.
The reading time of this article is approximately 10 minutes. A time of about 30 minutes should be planned for the implementation of this project. In terms of difficulty, this project is in the beginner range. In this tutorial, we'll use the hostname srv1.quicksrv.de. Please note that the hostname will be different in your case. After completing the instructions in this tutorial, you should be able to access your wiki via a browser at wiki.yourdomain.de.
These are the requirements to follow the instructions in this tutorial:
For this project, the smallest netcup VPS, the VPS 200 G10s vServer, is sufficient.
At the time of the creation of this tutorial (June 2023), the recommended product to be used as SSH proxy is VPS 200 G10s. Existing customers can add the product easily and quickly.
After provisioning the server and logging in for the first time with the username
root and the password sent by email, the first step is to update the basic configuration of the server.
apt-get update && apt-get upgrade -y.
hostnamectl set-hostname NEW-NAME
After the basic server installation, we now need to install Docker. Docker allows us to launch applications in so-called containers, so as to avoid any possible problems with dependencies on multiple applications. Also, an application is much easier to install and update, as the user does not have to deal with installing different packages.
docker compose version command. The command line should now give us a version number. With this, we can make sure that our installation was successful and we can start installing our application.
Now, in order to install BookStack, the first step we need is to create a folder on our server to put the files there. We create this folder under
/opt/bookstack. The location can be chosen freely.
In the next step, we change to the directory with the
There, we now create the
docker-compose.yml, which is to be understood as the configuration file of our application.
We create the file with the nano editor. To do this, we enter the following command:
We add the following content to the file:
We now only have to make the following changes within the file:
APP_URL we enter the domain for our wiki.
DB_PASS we enter a password for the database user.
MYSQL_ROOT_PASSWORD we enter a strong password.
MYSQL_PASSWORD we give the database user a password, which we also have to enter in the first point.
Now we can start the application with
docker compose up -d.
The process will take a while, but after a maximum of 5 minutes we should be able to reach the website.
The default login uses the following credentials:
The wiki can now be used. Please adjust the settings depending on your needs.
Copyright (c) 2023 netcup
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicence, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
By making a contribution to this project, I certify that:
The contribution was created in whole or in part by me and I have the right to submit it under the license indicated in the file; or
The contribution is based upon previous work that, to the best of my knowledge, is covered under an appropriate license and I have the right under that license to submit that work with modifications, whether created in whole or in part by me, under the same license (unless I am permitted to submit under a different license), as indicated in the file; or
The contribution was provided directly to me by some other person who certified (a), (b) or (c) and I have not modified it.
I understand and agree that this project and the contribution are public and that a record of the contribution (including all personal information I submit with it, including my sign-off) is maintained indefinitely and may be redistributed consistent with this project or the license(s) involved.