The installation of WordPress is best done via a temporary directory.
Command: sudo mkdir /var/www/ html/install
Then cd /var/www/html/install
Get the WordPress distribution: sudo wget http://wordpress.org/latest.tar.gz
and unpack: sudo tar xzf latest.tar.gz
Move the installation: sudo mv wordpress / * ../wordpress
Remove the installation directory:
cd ..
sudo rm -r install
For now change the owner of the WordPress files so that the Apache HTTP server can access the file structure.:
sudo chown -R www-data /var/www/html/wordpress
(In the next FTP(s) chapter we will elaborate the permissions further.)

The wp-content/uploads directory is the data directory of WordPress. It is better to have this directory on the raiddrive than on the SD-card. So move the directory with command
sudo mv /var/www/html/wordpress/wp-content/uploads /mnt/raiddrive/wp-content
To make this location accessable create a link:
sudo ln -s /mnt/raiddrive/wp-content/uploads /var/www/html/wordpress/wp-content/media
(This will only work when the Apache2 http-server alows the use of symbolic links. Check ‘FollowSymLinks’ in /etc/apache2/apache2.conf

<Directory /var/www/html>
	Options Indexes FollowSymLinks
	AllowOverride All
	Require all granted
</Directory>

Besides this soft link I have added a line to /var/www/html/wordpress/wp-config.php just before the line with “/* That’s all, stop editing! Happy blogging. */” The line contents is:
define( ‘UPLOADS’, ‘wp-content/media’ );

A database must be created for WordPress. MariaDB is already installed for Nextcloud. We log in to the database: sudo mysql -u root -p
After logging in:

Close the mysql session with: quit
Start WordPress ( https://<domain>/wordpress ) in the browser and run the setup.

Updates

You can access the WordPress Updates page via
https: //<domain> /wordpress/wp-admin/update-core.php.
Updates are done via FTP. The next chapter describes how to arrange this.
Before you perform an update, it is wise to make a backup. I created the directory /var/backup and I copy the current installation with command:
sudo rsync -av sudo rsync -av /var/www/html/wordpress /var/backup