CMS Cheat Sheet
Always replace DOCROOT with the actual path to your document root. By default, this is ~/public_http
WordPress
WordPress can be easily managed using the command line WordPress, WP-CLI. WP-CLI comes preinstalled with SiteWrangler. Information on how to use this tool can be located here.
DB Configuration
DOCROOT/wp-config.php
WordPress-specific Site Wrangler Features
While the WP-CLI is great for managing the contents of the database and everything PHP, it cannot manage the system itself. Site Wrangler includes an installer wizard that sets up everything for a fresh WordPress installation on the system. This includes everything including DNS records, nginx configuration, php configuration, database creation, SSL certificate validation, and lastly installing WordPress.
Site Wrangler also includes a similar tools for cloning WordPress sites.
MediaWiki
Detail information about administrative tasks for MediaWiki can be found here.
DB Configuration
DOCROOT/LocalSettings.php
Updating
Use the following as a guild, updating the version number as needed. The current version can be found here.
version="1.39.1" subVersion=$(echo "$version" | sed -r 's/^([0-9]+\.[0-9]+)\.[0-9]*$/\1/') cd ~/public_html rm -f RELEASE-NOTES-* wget https://releases.wikimedia.org/mediawiki/$subVersion/mediawiki-$version.tar.gz tar -xzf mediawiki-$version.tar.gz rm mediawiki-$version.tar.gz rsync -a mediawiki-$version/ ./ rm -rf mediawiki-$version/
Installing
Setup a user, with usual nginx/php setup, then follow the steps under “Updating” to install the site files. Set up a new database and update DOCROOT/LocalSettings.php with the new login credentials.