HOWTO: Install WordPress in debian 11 (no docker)

Previously I have installed WP on CentOS 7.X, now I have tried in another system, Debian GNU/Linux 11 (bullseye). I have followed this tutorial from Cloud Infrastructure Services basically cut’n’copying until Step 5, replacing :

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! 😁.

HOWTO: install xwiki on debian 11

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 # apt-get update
Hit:1 http://deb.debian.org/debian bullseye InRelease
Get:2 http://deb.debian.org/debian bullseye-updates InRelease [44.1 kB]
Get:3 http://deb.debian.org/debian bullseye-backports InRelease [49.0 kB]
Get:4 http://security.debian.org/debian-security bullseye-security InRelease [48.4 kB]
Get:5 http://deb.debian.org/debian bullseye-backports/main Sources.diff/Index [63.3 kB]
Get:6 http://deb.debian.org/debian bullseye-backports/main Sources T-XXX.pdiff [637 B]
Get:6 http://deb.debian.org/debian bullseye-backports/main Sources T-XXX.pdiff [637 B]
Get:7 http://security.debian.org/debian-security bullseye-security/main Sources [152 kB]
Get:8 http://security.debian.org/debian-security bullseye-security/main amd64 Packages [183 kB]
Get:9 http://security.debian.org/debian-security bullseye-security/main Translation-en [115 kB]
Fetched 655 kB in 1s (696 kB/s)
Reading package lists... Done
root # apt-get upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Now we do the apt configuration.

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:

Image source : here.

We have left the default option and provided a password. Now we go to the so called distribution wizard. You reach it on http://machine-name:8080/xwiki. Not obvious at all. Something like this (taken from the official documentation) should pop 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.

HOWTO: install docker on debian 11

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:

> apt-get remove docker docker-engine docker.io containerd runc
> apt-get install \
    ca-certificates \
    curl \
    gnupg \
    lsb-release
> mkdir -p /etc/apt/keyrings
> curl -fsSL https://download.docker.com/linux/debian/gpg \
| gpg --dearmor -o /etc/apt/keyrings/docker.gpg
> echo \
  "deb [arch=$(dpkg --print-architecture) \
signed-by=/etc/apt/keyrings/docker.gpg] \
https://download.docker.com/linux/debian $(lsb_release -cs) stable" \
| tee /etc/apt/sources.list.d/docker.list > /dev/null
> apt-get update
> apt-get install docker-ce docker-ce-cli containerd.io docker-compose-plugin

After the above lines “docker run hello-world” works. This exercise was indeed mildly boring 😩. Or could it be I’m running on the wrong distro? 🧐