Moving a WordPress site: Changing URL and/or sub-folder from the command line

When maintaining a WordPress site, you might find it challenging to find the settings to update to properly convert your site from one URL to another, or from a root directory to a sub-directory.

For example, you might want to update the site of an event that happens every year, where previous years will be relocated to /year/ while the current event occupies the main domain...

This is a short reminder list of what should be updated. This covers sites with multi-site configured.

Installation guide for Chamilo 1.11.4 on Digital Ocean with PHP7

This guide will take you through the process of installing the Chamilo e-learning portal, version 1.11.4 on a fresh Digital Ocean instance,on an Ubuntu 17.04 64bit distribution (also works with minor changes with Ubuntu 18.04) To follow this guide, you should be familiar with the notion of SSH keys and installing/configuring server software on Ubuntu 16.*, 17.* or 18.*. Previous articles on this blog explain how to install Chamilo 1.9 using Juju Charms, how to install 1.10.2 on Ubuntu 15.10, and 1.10.* on Ubuntu 16.04.

Chamilo 1.11 on Raspberry Pi 3 for off-the-grid situations

This article can be considered an update of our first article on installing Chamilo (on a Raspberry Pi B+). This time, we are testing it with Raspberry 3, as of the 1st of April 2017 (no joke intended). Last time, we were testing with Chamilo 1.9, which is arguably less load-intensive, considering it doesn't include any Symfony component, and it doesn't require any .htaccess configuration.

Change the URL of a Chamilo portal copy

There is a surprising number of cases where you'd want to change the URL of a Chamilo portal, but the more common we see is when you take a backup copy of a portal and want to use that copy to build a new test portal. Obviously, if you keep the same URL, you're going to have difficulties having them both running at the same time. Chamilo is not good at managing several URLs (although another article on this blog will help you do that), and even less good at managing a dynamic URL, so there are 3 necessary steps to change the URL (this is valid at least until version 1.11 of Chamilo).

Installation guide for Chamilo 1.10.x on Digital Ocean with PHP7

This guide will take you through the process of installing Chamilo 1.10 (from Github sources) for testing on a fresh Digital Ocean instance, on an Ubuntu 16.04 distribution. A previous article on this blog explains how to install Chamilo 1.9 using Juju Charms and another article explains how to install 1.10.2 on Ubuntu 15.10.

Odoo apps licensing

If you ever want to implement projects with Odoo and, like us, you are a bit itchy about non-free-software licenses and alternative BSD or LGPL-like licenses, you might want to know this. Odoo itself was previously (as OpenERP) AGPL, but it apparently (following David from Odoo S.A.

Redirect mobile devices to alternate URL with Varnish 3.0 and Drupal 6

This is a short note for ourselves, but it might help others considering the (new for now) rules of Google indexing of non-mobile sites. Drupal 6 does not really provide all the stuff that would be really useful to switch the theme of your site depending on the browser being on a mobile device or not. There are a few modules that should help you, like switchtheme, and mobile_subdomain, but in the end, you can also do it as follows.

Setting up Apache (or web server x)

Let's assume your site is called your.site.com and you want mobile devices to see another theme. Define the m.site.co