### Upgrade DomainMod via Git Source: https://domainmod.org/docs/userguide/upgrading If DomainMod was installed using Git, run this command from the installation directory to pull the latest changes. ```bash git pull ``` -------------------------------- ### Clone DomainMOD Repository using Git Source: https://domainmod.org/docs/userguide/getting-started Use this command to download the DomainMOD source code if you have Git installed on your server. This is one of the options for obtaining the application files. ```bash git clone https://github.com/domainmod/domainmod.git ``` -------------------------------- ### Configure DomainMod Web Root Source: https://domainmod.org/docs/userguide/troubleshooting Set the $web_root variable in config.inc.php to match your DomainMod installation path to fix broken images, CSS, and redirect errors. Use a blank string if installed in the root directory. ```php $web_root = "/domains"; (don't include a trailing slash!) ``` ```php $web_root = ""; ``` -------------------------------- ### Disable MySQL Strict Mode Source: https://domainmod.org/docs/userguide/troubleshooting Remove 'STRICT_TRANS_TABLES' from the sql-mode setting in your MySQL configuration file to resolve installation issues. Restart MySQL after making changes. ```sql sql-mode="STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION" ``` ```sql sql-mode="NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION" ``` -------------------------------- ### Execute DomainMod Upgrade Script Source: https://domainmod.org/docs/userguide/troubleshooting Run the update.php script from the command line to perform database upgrades after restoring a backup. Ensure you use the full server path to PHP and the script. ```bash [FULL SERVER PATH TO DOMAINMOD]/update.php ``` ```bash /usr/bin/php -f /home/user/www/domainmod/update.php ``` -------------------------------- ### Disable CSP and HTTPS Helper Source: https://domainmod.org/docs/userguide/troubleshooting Create this file to disable Content Security Policy and forced HTTPS. Remember to delete the helper file after use. ```php