User Guide · for DomainMOD 4.27.0
Upgrading
Warning
Before upgrading it's strongly recommended that you backup your DomainMOD installation directory and database. If something goes wrong during the upgrade there may be no way to recover your data, and having a backup of your installation directory and database will allow you to easily restore your previous version.
The Backup & Restore instructions can be found here.
As of v4.27.0, administrators can open Administration -> Upgrade to see the installed and latest versions, check for a new version with Check Now, and get the upgrade steps for the way DomainMOD was installed (Docker, Git, zip file, or Softaculous), with buttons to copy each command. If it detects the wrong installation method, choose yours under Not right? Choose yours and click Show Steps, or set $install_type in /_includes/config.inc.php. The steps for each method are also below.
Option #1 -- Docker Install
If you installed DomainMOD using Docker, please see our official DomainMOD container on Docker Hub for upgrade information: https://hub.docker.com/r/domainmod/domainmod
Option #2 -- .zip File Install
If you installed DomainMOD by downloading the .zip file, visit the following URL to download the most up-to-date version: https://domainmod.org/download/
Once the download completes, upload and unpack the new archive overtop of where you installed the previous version (or unpack it and then upload it, whichever you prefer).
Option #3 -- Git Install
If you installed DomainMOD using Git right from your web server, just run the following command from within your installation directory to upgrade:
git pull
Option #4 -- Softaculous Install
If you installed DomainMOD using Softaculous you're just a few clicks away from upgrading to the newest version. Please see the upgrade instructions on the Softaculous Wiki: https://www.softaculous.com/docs/How_to_upgrade_installations
Once the new files are in place, sign in as an administrator, and DomainMOD asks you to upgrade the database. Click Upgrade Database. While the upgrade runs, other pages say that DomainMOD is busy, so wait for it to finish.
After Upgrading
Unless you upgraded using Docker, restart PHP so the updated translation files are loaded (restart PHP-FPM if your server uses it, otherwise restart your web server). Otherwise some text may display incorrectly until it restarts. If you can't restart it yourself, your web hosting provider should be able to do it for you.
As of v4.27.0, the web server needs to be able to write to the 'temp' folder and the files in it (see the Installation Steps). If it can't, DomainMOD shows a warning and turns off restores until it can.
Web Hosting Providers in v4.27.0
The v4.27.0 upgrade replaces each domain's Web Hosting Provider field with a hosting service. For each provider your domains used, it adds a hosting account with the username "Imported" for each owner, and under it a service named after the provider, then links those domains to it. Domains with the same provider and owner share one service. DomainMOD's placeholder providers, such as [no hosting], aren't converted.
The old field had no other details, so each service starts as Active, with the service type Other, a 12-month billing term, auto-renew off, no fee, and a renewal date one year after the upgrade. After upgrading, open Hosting and update each service's details and renewal date, and the account's username, then add its fees. Set the service type and billing term first, since a fee applies to every service with the same provider, service type, and billing term.