Virtualmin on the command line
Domain
Section titled “Domain”Creating a domain
Section titled “Creating a domain”virtualmin create-domain --domain xxx --pass 'PASSWORD' --plan 0 --features-from-plan --template <TEMPLATE> --acme-neverAvailable templates:
Section titled “Available templates:”- 'Default Settings': standard, with PHP and MariaDB
- Static: for static files, no PHP, no MariaDB
- Redirection: to redirect a website, though it is better to produce a simple configuration with Puppet
- PHP-noDB: based on Default Settings but without creating a database
Creating a standard sub-server with PHP
Section titled “Creating a standard sub-server with PHP”virtualmin create-domain --domain xxx --parent yyy --template 'Default Settings' --acme-neverListing the information of a domain
Section titled “Listing the information of a domain”virtualmin_info.sh xxxChanging the quota of a domain
Section titled “Changing the quota of a domain”Change the quota of the domain:
virtualmin_setquota.sh xxx 20GBChange the quota of the domain admin:
virtualmin_setquota.sh xxx 20GB --userDestroying a domain
Section titled “Destroying a domain”virtualmin modify-domain --domain xxx --unprotectedvirtualmin delete-domain --domain xxxImporting an SSL certificate
Section titled “Importing an SSL certificate”virtualmin install-cert --domain xxx --cert cert.pem --key privkey.pem --ca chain.pemChecking SSL
Section titled “Checking SSL”virtualmin list-certs --domain xxxxGenerating an SSL certificate with Let's Encrypt and enabling auto renewal
Section titled “Generating an SSL certificate with Let's Encrypt and enabling auto renewal”virtualmin generate-letsencrypt-cert --domain xxx --renewEnabling Let's Encrypt auto renewal
Section titled “Enabling Let's Encrypt auto renewal”virtualmin modify-web --domain xxx --letsencrypt-renewListing the available PHP versions
Section titled “Listing the available PHP versions”virtualmin list-php-versionsAssigning a PHP version to the domain
Section titled “Assigning a PHP version to the domain”virtualmin set-php-directory --domain xxx --dir . --version 8.2Seeing the PHP version assigned to a domain
Section titled “Seeing the PHP version assigned to a domain”virtualmin list-php-directories --domain xxxListing a php.ini variable for the domain
Section titled “Listing a php.ini variable for the domain”Replace yyy with the name of the php.ini key for the site:
virtualmin list-php-ini --domain xxx --ini-name yyyChanging a php.ini variable for the domain
Section titled “Changing a php.ini variable for the domain”Replace yyy with the name of the php.ini key for the site, and zzz with its value:
virtualmin modify-php-ini --domain xxx --ini-name yyy --ini-value zzzRemoving SSL support for a domain, to keep only HTTP
Section titled “Removing SSL support for a domain, to keep only HTTP”virtualmin disable-feature --domain xxx --virtualmin-nginx-sslSee also
Section titled “See also”- Administering Virtualmin domains, the same operations from the web interface.
- Using Virtualmin, the guide aimed at customers.
- Managing your databases, export and import from the command line.
