Introduction
This page describes the installation of vesuvio, which is my WordPress server.
Procedure
- Make note of the following volume creation commands:
create-perfect-drbd-vol -v --remote=torchio --name=vesuvio --size=5G \ --name1=fiori --ip1=192.168.3.6 --name2=torchio --ip2=192.168.3.7 create-perfect-drbd-vol -v --remote=torchio --name=vesuvio_www --size=5G \ --name1=fiori --ip1=192.168.3.6 --name2=torchio --ip2=192.168.3.7
and the following container recreation commands:
create-basic-lxc-cnt --remote=torchio --name=vesuvio \ --offset=1200000 \ --mem=2G \ --disk=block:/dev/drbd_vesuvio \ --disk=block:/dev/drbd_vesuvio_www \ --nic=bridge:br0
- Complete Installing Debian 11 on an LXC container with the default hardware.
- Relocate the filesystem for web content that got mounted on /srv/www to /var/www according the following sub-procedure:
- shut down the container
- run
virsh edit vesuvio
and change/srv/www
to/var/www
- start the container
- inside the container run
rmdir /srv/www
- Complete Configuring WordPress services revision 4.2 (when I migrated WordPress from vermicelli to vesuvio, I only did the migration section).
- To simplify the inclusion of man pages in WordPress pages (e.g. bs.1) do the following:
- Install my own packages listed here. Currently this means running:
apt-get -y install ade bs fad js paa rocon wra
- As root run:
mkdir -p ~/opt svn co https://svn.pasta.freemyip.com/main/wordpress/trunk ~/opt/wordpress
- As root run:
~/opt/wordpress/bin/convert-my-man-pages-to-html -v
and investigate any errors. Note that that command will generate man pages for a few packages that are not public key
- Set up a cronjob:
10 2 * * * ~/opt/wordpress/bin/convert-my-man-pages-to-html -v 2>&1 | mailx -E -s "convert-my-man-pages-to-html-checker (info)" root
After a period of testing, the
-v
can be removed and ‘info’ changed to ‘warnings’.
- Install my own packages listed here. Currently this means running:
- Related to the “Reverse proxy pagination issue” described here, do the following:
- As root, and if not already run above, run:
mkdir -p ~/opt svn co https://svn.pasta.freemyip.com/main/wordpress/trunk ~/opt/wordpress
- As root run:
~/opt/wordpress/bin/convert-my-man-pages-to-html -v
and investigate any errors.
- Set up a cronjob:
05 08-16 * * * ~/opt/wordpress/bin/pagination-bug-checker -v /var/www/*/wp-admin/includes/class-wp-list-table.php 2>&1 | mailx -E -s "pagination-bug-checker (info)" root
After a period of testing, the
-v
can be removed and ‘info’ changed to ‘warnings’.
- As root, and if not already run above, run:
- Complete Finalising a Linux installation.