/go/primary turns an addon domain into a primary domain. In GoAdmio, an addon domain is an account that has an owner (another domain it belongs to). This command removes that owner, so the account is no longer an addon of anything and is treated as a primary domain. It makes one change: it clears the owner of the domain in GoAdmio's account database. It does not move files, rebuild configuration, or check anything first. Every admin action in GoAdmio has a matching /go/ command, so anything you can click you can also script.
Quick start
# Make an addon domain a primary domain
/go/primary shop.example.com
Options
| Argument | Required | Notes |
|---|---|---|
domain |
Yes | The addon domain to convert, written exactly as it is stored in GoAdmio. |
Examples
# Convert an addon domain to a primary domain
/go/primary shop.example.com
# Check the result: the Owner column should be empty
sudo sqlite3 /var/lib/sqlite/site.db "SELECT Domain, Owner FROM Site WHERE Domain='shop.example.com'"
Output
| Outcome | What you get |
|---|---|
| Command ran | The Addon Domain "<domain>" has been successfully changed to the Primary Domain. |
[!WARNING]
The confirmation is printed every time, even if the domain doesn’t exist, was already a primary domain, or was misspelled. It doesn’t mean a change was made. Check the result with the query under Examples.
Log
Each run appends one line to /var/log/go/primary.log:
[Nov 21 12:00:00]# primary shop.example.com
See the full reference at /go/primary and the GoAdmio command index.
GoAdmio is free and open source, with no license fees and no account limits. Read the GoAdmio docs, or see why it is a free cPanel alternative at goadmio.com.
