Prologic's Wiki is a simple and powerful wiki engine built in Python. In this tutorial, we will walk through how to install Prologic's Wiki on an Ubuntu Server.
Before we begin, make sure you have the following:
To start, we first need to clone the Prologic's Wiki Git repository from https://git.mills.io/prologic/wiki:
$ git clone https://git.mills.io/prologic/wiki.git
This will create a wiki
directory in your current working directory.
Next, we need to install the required packages for Prologic's Wiki. Navigate to the wiki
directory and run the following command:
$ sudo apt-get update
$ sudo apt-get install gcc python-dev libffi-dev libssl-dev python3-venv
We will now create a Python virtual environment to install Prologic's Wiki. Navigate to the wiki
directory and create the environment:
$ python3 -m venv env
Activate the environment by running the following command:
$ source env/bin/activate
Now we will install Prologic's Wiki inside the virtual environment. Navigate to the wiki
directory and run:
$ pip install -r requirements.txt
This will install all the necessary dependencies for the wiki.
Copy the config.sample.yml
file to config.yml
, and edit it as desired:
$ cp config.sample.yml config.yml
Finally, we can start the wiki server. Run the following command:
$ ./start.sh
This will start the wiki server and it will be available at http://localhost:5000
.
Prologic's Wiki is now installed and running on your Ubuntu server. You can now access and manage your wiki through a web browser.
To change the port number, simply open the config.yml
file and change the port
field to the desired port.
To run the server in the background, you can use the nohup
command:
$ nohup ./start.sh &
To stop the server, simply press Ctrl + C
in the terminal where the server is running.
You can use systemd
to run the server automatically on system start-up. Create a new service file /etc/systemd/system/prologic-wiki.service
with the following contents:
[Unit]
Description=Prologic's Wiki
[Service]
WorkingDirectory=/path/to/wiki
ExecStart=/path/to/wiki/start.sh
Restart=always
User=yourusername
Group=www-data
[Install]
WantedBy=multi-user.target
Change yourusername
to your username, and adjust the WorkingDirectory
and ExecStart
paths as needed. Then, run:
$ sudo systemctl daemon-reload
$ sudo systemctl enable prologic-wiki.service
$ sudo systemctl start prologic-wiki.service
The server will now start automatically on system start-up.
If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!
Alternatively, for the best virtual desktop, try Shells!