In other words, replace the generic entries. I test the apache configuration
# apache2ctl configtest Syntax OK
Then I go to http://IP_ADDRESS and create the root user, etc. Like it is written here, on the howto install WP on Debian. It was very easy, as it was for CentOS 😎! Note that in one of the tutorial we use an apache server, and in the last one it’s an NGINX Virtual Host. Happy wordpressing! 😁.
Previously I gave you serveral options to install a wiki as a docker. This time we are going to do it for real on a Debian 11 (bullseye) system. I want to log this because I tried already several times, and I tend to screw it up at one point. Just in case you want to start with the online sources, here you have the howto from linuxhotsupport, here one howto from rosehosting, and here the official xwiki documentation. Let’s go. First we update and so on:
root # wget https://maven.xwiki.org/xwiki-keyring.gpg -P /usr/share/keyrings/ --DATE-- https://maven.xwiki.org/xwiki-keyring.gpg Resolving maven.xwiki.org (maven.xwiki.org)... Connecting to maven.xwiki.org (maven.xwiki.org)|92.222.135.198|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 1188 (1.2K) Saving to: /usr/share/keyrings/xwiki-keyring.gpg xwiki-keyring.gpg 100%[=====================>] 1.16K --.-KB/s in 0s DATE (16.3 MB/s) - /usr/share/keyrings/xwiki-keyring.gpg saved [1188/1188] root # wget "https://maven.xwiki.org/stable/xwiki-stable.list" -P /etc/apt/sources.list.d/ --DATE-- https://maven.xwiki.org/stable/xwiki-stable.list Resolving maven.xwiki.org (maven.xwiki.org)... Connecting to maven.xwiki.org (maven.xwiki.org)|92.222.135.198|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 85 Saving to: /etc/apt/sources.list.d/xwiki-stable.list.1 xwiki-stable.list.1 100%[=============>] 85 --.-KB/s in 0s DATe (48.3 MB/s) - /etc/apt/sources.list.d/xwiki-stable.list.1 saved [85/85] root # apt update -y Hit:1 http://deb.debian.org/debian bullseye InRelease Hit:2 http://deb.debian.org/debian bullseye-updates InRelease Hit:3 http://deb.debian.org/debian bullseye-backports InRelease Hit:4 http://security.debian.org/debian-security bullseye-security InRelease Ign:5 http://maven.xwiki.org stable/ InRelease Get:6 http://maven.xwiki.org stable/ Release [1,310 B] Get:7 http://maven.xwiki.org stable/ Release.gpg [488 B] Get:8 http://maven.xwiki.org stable/ Packages [410 kB] Fetched 412 kB in 1s (340 kB/s) Reading package lists... Done Building dependency tree... Done Reading state information... Done All packages are up to date. N: Ignoring file 'xwiki-stable.list.1' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
After that we can see the xwiki packages as in the documentation. Let’s install the one with tomcat9 and mariadb. It’s very simple:
root # apt-get install xwiki-tomcat9-mariadb
...some more stuff here ...
Setting up tomcat9-common (9.0.43-2~deb11u3) ... Setting up tomcat9 (9.0.43-2~deb11u3) ... Creating group tomcat with gid 998. Creating user tomcat (Apache Tomcat) with uid 998 and gid 998. Creating config file /etc/tomcat9/tomcat-users.xml with new version Creating config file /etc/tomcat9/web.xml with new version Creating config file /etc/tomcat9/server.xml with new version Creating config file /etc/tomcat9/logging.properties with new version Creating config file /etc/tomcat9/context.xml with new version Creating config file /etc/tomcat9/catalina.properties with new version Creating config file /etc/tomcat9/jaspic-providers.xml with new version Creating config file /etc/logrotate.d/tomcat9 with new version Creating config file /etc/default/tomcat9 with new version Created symlink /etc/systemd/system/multi-user.target.wants/tomcat9.service ? /lib/systemd/system/tomcat9.service. Setting up xwiki-tomcat9-common (14.7) ... Setting up xwiki-tomcat9-mariadb (14.7) ... Processing triggers for libc-bin (2.31-13+deb11u4) ... Processing triggers for rsyslog (8.2102.0-2+deb11u1) ... Processing triggers for man-db (2.9.4-2) ... Processing triggers for ca-certificates (20210119) ... Updating certificates in /etc/ssl/certs... 0 added, 0 removed; done. Running hooks in /etc/ca-certificates/update.d...
done. done.
At one point before the done message this pops up:
WARNING: if you screw it up here it’s not easy at all to re-run the distribution wizard. Unistalling and installing the whole thing again didn’t work also, I somehow end up always screwing up the tomcat9 configuration without any hope… you definitely don’t want to mess up with the tomcat configuration 😩😩. Happy wiking, anyway.
I’m a CentOS user, but it’s good to be open-minded. The debian systems are not managed in the same way than CentOS, so it’s not a stupid question if the installation instructions work out of the box. I will follow the official documentation for debian. I have root access to the machine, so no sudo needed. Let’s see: