README
Everything you need to know to try, install, secure, and upgrade DomainMOD, on one page
About
DomainMOD is a free, open source, self-hosted manager for your domains, hosting, and SSL certificates, with renewal reminders and cost reports. It monitors and updates your domains and SSL certificates in the background, shows you what changed, and notifies you about upcoming expirations and renewals. DomainMOD also includes a Data Warehouse framework that allows you to import your web server data so that you can view, export, and report on your live data. Currently, the Data Warehouse only supports web servers running WHM/cPanel.
As of v5.0.0, people can also sign in through your organization's identity provider with single sign-on (OpenID Connect), such as Okta, Microsoft Entra ID, Google Workspace, Keycloak, or Authentik, alongside DomainMOD's own passwords and MFA. See Single Sign-On in the User Guide.
Live Demo
Not sure if DomainMOD is what you're looking for? Don't want to take the time to install it only to find out that it's not? We hate when that happens ourselves, which is why we've set up a live demo so you don't waste your time.
So go ahead, take the live demo for a test drive before you install.
Requirements
- Software
- PHP 8.2 to 8.5, with MariaDB 10.4 to 12.3 or MySQL 5.7 to 9.7
- PHP extensions
- PDO (MariaDB/MySQL), cURL, OpenSSL, gettext, and MySQLi
- PHP settings
allow_url_fopen- Folders
- The web server can write to the
tempfolder
Downloading
There are currently four ways to download DomainMOD.
Installing
If you installed DomainMOD using Docker or Softaculous in the previous step, you can skip the rest of this section, as DomainMOD should already be up and running.
If you downloaded the .zip file in the previous step, upload the archive to your web server and then unpack it into the folder where you want to install DomainMOD (or unpack it and then upload it, whichever you prefer).
If you used Git in the previous step, change to the folder where you ran the git clone command, and your files are waiting for you in a folder called domainmod. Feel free to rename it.
Installation steps
- Create a MySQL database to store DomainMOD's data.
- In the
_includesfolder, copyconfig.SAMPLE.inc.phptoconfig.inc.php, and updateconfig.inc.phpwith your web server's settings (including the recommended$secret_key, which encrypts MFA secrets and saved credentials). - Make sure the web server can write to the
tempfolder and the files in it, or restores are turned off. If your cron job runs as a different user, give both users write access to the folder. - In a web browser, visit the URL where you installed DomainMOD (for example, example.com/domainmod/), and work through the installer. When it's done, you'll be taken to the sign-in page.
- Set up the cron job below on your web server.
Cron Job
DomainMOD includes a Task Scheduler that runs system jobs at set times. It keeps your installation up to date and running smoothly, and lets you know about important things, such as emailing you about upcoming domain, hosting, and SSL certificate expirations.
The Task Scheduler enables features that you otherwise couldn't use, but for it to work, you need to schedule the cron job below on your web server. Once the cron job is running, the Task Scheduler is live.
If you installed DomainMOD using Docker, the cron job is set up and running automatically in the container, so there's nothing to set up yourself.
Run this file every 10 minutes. It's in the root folder of your DomainMOD installation.
/cron.php
If your cron job runs cron.php from the command line, the simplest setup is to run it as the same user PHP runs as for your web server, so both can write to DomainMOD's temp folder.
To stop anyone else from running cron.php, you can give it a key by adding $cron_key = 'YourKeyHere'; (with a long random value) to config.inc.php. After that, cron.php only runs from the command line, or from a URL that includes the key, such as /cron.php?key=YourKeyHere. See the User Guide for details.
Security
Although we've done our best to secure DomainMOD, there are many things that could cause security holes, such as the software being run on insecure hardware, software like PHP and MySQL having out-of-date versions with known vulnerabilities, easy-to-guess passwords being used, and so on. Because of these, we recommend the following steps to help secure your DomainMOD installation.
- Secure your installation with an SSL certificate.
- If your database is on a different server than DomainMOD, encrypt the connection and check the server's certificate by adding
$dbsslmode = 'verify';toconfig.inc.php. See Database Encryption in the User Guide for details. - Do not use easy-to-guess passwords. Ever.
-
Turn on multi-factor authentication (MFA) under Settings -> Security. See Security and MFA in the User Guide for details. If people sign in with single sign-on, require MFA at your identity provider too, since those sign-ins skip DomainMOD's own MFA.
We recommend that you encrypt each user's MFA secret and, as of v5.0.0, every saved credential (such as registrar API keys and passwords), ideally when you install. Add
$secret_key = 'YourKeyHere';(with a long random value, such as the output ofopenssl rand -hex 32) toconfig.inc.php, or setDOMAINMOD_SECRET_KEYif you use Docker. Keep the key safe, since it isn't in DomainMOD's backups. See Encrypting Saved Credentials in the User Guide for details, including how to change the key. - Although DomainMOD has its own authentication system, we recommend that you also use HTTP authentication on your installation folder to add an extra layer of security.
-
Do not store your account passwords or API keys in DomainMOD. Although you can save this information, do so at your own risk. It's fairly secure if you run DomainMOD on your local computer, but there's a much higher risk of someone gaining access to it if you host the site on a server that's reachable from the outside world.
Warning. You only need to save your API keys (and other API connection details) in DomainMOD if you want to use your registrar's API to import domains through the Domain Queue or to refresh them (the Refresh button and the Refresh Domains task). Imports and refreshes using RDAP and WHOIS don't need them, but they can't read WHOIS privacy or auto renewal. If you don't need those, we recommend that you save them only while you're using the Domain Queue, and remove them as soon as you're done.
-
Do not host DomainMOD on a public website or on an easy-to-guess URL.
If you do host DomainMOD on a public website, DomainMOD asks search engines not to index its pages. Don't block its URL in your website's
robots.txtfile, since search engines then can't see that request, and your DomainMOD URL may still end up in public search results. - Do not give the URL to anyone who does not need to access DomainMOD. Treat the URL like a password.
- Always use the most up-to-date version of DomainMOD. This helps protect you from any security vulnerabilities that are found and fixed.
Upgrading
As of v4.27.0, administrators can open Administration -> Upgrade to see the installed and latest versions, and the upgrade steps for the way DomainMOD was installed. The steps for each method are also below.
After upgrading
To finish the upgrade, sign in as an administrator and click Upgrade Database when DomainMOD asks.
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.
As of v4.27.0, domains no longer have a Web Hosting Provider field. The upgrade turns each domain's provider into a hosting service named after it, in a new hosting account with the username "Imported" (shared by domains with the same provider and owner), and links the domains to it. Domains set to a placeholder such as [no hosting] aren't linked. These services have no fees, and their renewal dates are placeholders, so check them under Hosting after upgrading.
We recommend setting $secret_key in config.inc.php (or DOMAINMOD_SECRET_KEY for Docker), so each user's MFA secret and, as of v5.0.0, every saved credential is encrypted. If the key is set when you upgrade to v5.0.0, the upgrade encrypts the credentials already saved. Otherwise, they're encrypted once a key is set, by the daily System Cleanup task or right away with Administration -> Cleanup -> Encrypt Saved Credentials. MFA secrets saved before the key was set are encrypted by the System Cleanup task or Encrypt Saved Credentials too (not by the upgrade), or the next time each user enters a code from their authenticator app. Use the same value whenever you move or restore your installation. See Security in the README.
Data Warehouse
DomainMOD has a Data Warehouse framework built right into it, which allows you to import the data stored on your web server. Currently, the only web servers that are supported are ones that run WHM/cPanel.
If your web server doesn't run WHM/cPanel, or you don't want to import your web server data into DomainMOD, you can skip this section.
Importing your web servers into the Data Warehouse doesn't change any of your other DomainMOD data, or any of the data on your web server.
Supported data
The following WHM sections are currently supported, but our end goal is to have every piece of WHM information that can be retrieved through the API stored in the Data Warehouse.
- Accounts
- Domain, IP Address, Owner, User, Contact Email, Plan, Theme, Shell, Partition, Disk Limit, Disk Usage, Max Addons, Max FTP Accounts, Max Email Lists, Max Parked Domains, Max POP Accounts, Max SQL Accounts, Max Subdomains, Creation Date, Suspend Status, Suspend Reason, Suspend Time, Max Email Per Hour, Failed Email % Before Defer, and Min Failed Email # Before Defer
- DNS Zones
- Zone Filename, Original/Primary Source of Zone Data, Admin Email, Serial #, Refresh, Retry, Expiry, Minimum TTL, and Authoritative Name Server
- DNS Records
- TTL, Class, Type, IP Address, CNAME, Mail Server, Mail Server Priority, TXT Data, Line # of Zone, # of Lines, and RAW Data
Support and More
- For the documentation, see the Docs page, or open the
/docs/folder in your DomainMOD installation. - If you have any questions, comments, or bugs to report, visit the Support page.
- See the CHANGELOG file that came with DomainMOD, or view the Changelog online.
- See the Contributing page for our contributing guidelines, and the Code of Conduct page for our code of conduct.
License
DomainMOD is an open source domain and internet asset manager.
Copyright (c) 2010-2026 Greg Chetcuti <greg@chetcuti.com>
DomainMOD is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
DomainMOD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with DomainMOD. If not, see https://www.gnu.org/licenses/.