0) Configuring Webmin and Virtualmin
# Changes in /etc/webmin/miniserv.conf sed -ie 's#preload=#preload=virtual-server=virtual-server/virtual-server-lib-funcs.pl virtual-server=virtual-server/feature-unix.pl virtual-server=virtual-server/feature-dir.pl virtual-server=virtual-server/feature-dns.pl virtual-server=virtual-server/feature-mail.pl virtual-server=virtual-server/feature-web.pl virtual-server=virtual-server/feature-webalizer.pl virtual-server=virtual-server/feature-ssl.pl virtual-server=virtual-server/feature-logrotate.pl virtual-server=virtual-server/feature-mysql.pl virtual-server=virtual-server/feature-postgres.pl virtual-server=virtual-server/feature-ftp.pl virtual-server=virtual-server/feature-spam.pl virtual-server=virtual-server/feature-virus.pl virtual-server=virtual-server/feature-webmin.pl virtual-server=virtual-server/feature-virt.pl virtual-server=virtual-server/feature-virt6.pl#' /etc/webmin/miniserv.conf echo 'premodules=WebminCore' >> /etc/webmin/miniserv.conf # Per https://my.altagrade.com/ticket/2245 echo "no_testing_cookie=1" >> /etc/webmin/miniserv.conf # Let Webmin know of MariaDB version echo $MYSQL_VER > /etc/webmin/mysql/version # Giving sudo user an admin privilege for Webmin echo "sudo=1" >> /etc/webmin/miniserv.conf sed -ie 's/root: /altagrade: /' /etc/webmin/webmin.acl sed -ie 's/root:/altagrade:/' /etc/webmin/miniserv.users sed -ie 's/php_suexec=3/php_suexec=2/' /etc/webmin/virtual-server/config sed -ie 's/nopwd=0/nopwd=1' /etc/webmin/mysql/config echo "PORT ${PORT}" > /etc/webmin/virtual-server/globals echo "DEFAULT_IP 1" >> /etc/webmin/virtual-server/globals echo "webmin_from=root" >> /etc/webmin/mailboxes/config if ! grep -Fq "timeserver=pool.ntp.org" /etc/webmin/time/config; then echo "timeserver=pool.ntp.org" >> /etc/webmin/time/config fi if [ ! -f /etc/webmin/webmincron/crons/150338373415549.cron ]; then cat >/etc/webmin/webmincron/crons/150338373415549.cron<< 'EOF' disabled=0 hours=11,14 days=* mins=0,52 boot=1 id=150338373415549 weekdays=* func=sync_time_cron months=* module=time EOF fi # Adapting Virtualmin and Webmin jargon for cPanel users sed -i 's/bandwidth /traffic /g' /etc/webmin/virtual-server/bw-template sed -i 's/bandwidth /traffic /g' /etc/webmin/virtual-server/warnbw-template sed -i 's/Bandwidth /Traffic /g' /etc/webmin/virtual-server/bw-template sed -i 's/Bandwidth /Traffic /g' /etc/webmin/virtual-server/warnbw-template # Templates mkdir /etc/webmin/virtual-server/templates touch /etc/webmin/virtual-server/templates/0 yes | /usr/libexec/webmin/authentic-theme/theme-update.sh rm -rf /etc/webmin/authentic-theme mv /etc/ag/webmin/authentic-theme /etc/webmin rm -rf /etc/webmin/status mv /etc/ag/webmin/status /etc/webmin rm -rf /etc/webmin/custom mv /etc/ag/webmin/custom /etc/webmin rm -rf /etc/webmin/webmin.acl mv /etc/ag/webmin/webmin.acl /etc/webmin
1) file=/etc/webmin/virtual-server/config
cat > /etc/webmin/virtual-server/config << 'EOT' stats_hdir= avail_mail=1 combined_tmpl= old_defip6=fe80::216:3eff:feca:7117 domalias= php_noedit=0 dns_ip= bind_dmarcruf= defnodbname=0 mail_system=0 clamscan_cmd=clamscan bw_ftplog_rotated=1 theme_alt= rs_endpoint=https://identity.api.rackspacecloud.com/v1.0 edit_quota=1 nopostfix_extra_user=0 iface_base= webmin=1 disabled_web=${DISABLED_WHY} vpopmail_group=vchkpw last_letsencrypt_mass_renewal=1768852510 external_ip_cache=65.49.80.99 plugins_inactive=virtualmin-init virtualmin-dav virtualmin-registrar virtualmin-git virtualmin-sqlite virtualmin-slavedns maillog_hide=0 pre_command=/etc/ag/scripts/pre.sh mysql_replicas= dnssec_alg=RSASHA1 pbzip2=0 backup_feature_logrotate=1 avail_phpini=1 php7.3cgi=none othergroups= backup_feature_webalizer=0 secmx_nodns=0 own_restore=1 newuser_to_mailbox=1 dir=3 first_version=6.00 remote_alias=1 virtual_skel=/etc/ag/skel groupsame=0 max_backups=3 mysql_chgrp=1 other_doms=0 logrotate_config= b2_cmd=b2 show_sysinfo=1 statusemail= html_dir= auto_letsencrypt=0 show_validation=2 edit_ftp=1 avail_mailboxes=0 quota_get_group_command= netmask6= delete_logs=0 defforceunder=0 alias_types=1,2,5,6,7,8,9,10,11,12,13 spam_lock=0 postfix_ssl=0 spam_trap_black=0 defipfollow= deftmpl_nousers= preload_mode=2 php_ini_5.4= gzip_mysql=1 allow_symlinks=0 show_nf=master php_paths= contact_email= dnssec= php_ini_5.8= other_users=0 display_max= backup_feature_mysql=1 vpopmail_maildir=mail avail_bind8=1 localgroup= collect_restart=1 from_addr= default_procmail=1 jail_sects= tlsa_records=0 web_sslport=443 tar_args= php_ini_7.4= mysql_conns=none php_ini_7.9= defuquota=1048576 mysql_size=huge mysql_mkdb=1 delete_indom=0 show_tabs=1 spamclear=days 30 clam_delivery=/dev/null mysql_user_size=16 avail_dns=1 usermin_switch=1 status=0 statustimeout= avail_mysql=1 openssl_cnf= tmpl_outlook_autoconfig=none quota_set_user_command= gacl_users= stats_noedit=1 php_ini_5.2= spam_level= unix=3 hard_quotas=1 namedconf= bind_spfhosts= logrotate=3 post_command=/etc/ag/scripts/post.sh licence_script= update_template=default generics=0 collect_noall=0 passwd_chars= all_namevirtual=0 ip_ranges6= name_max=20 php7.3fcgi=none passwd_length= avail_postgres=0 hashpass=0 newuser_aliases= avail_custom=1 backup_feature_dir=1 clamscan_cmd_tested=clamscan show_features=0 always_ssl=0 phpver=7.0 php_fpm= dns_view= key_size= webmin_ssl=0 ldap=0 php_ini_5.7= mysql_nouser=0 bw_maillog=auto web_urlport= web_user=apache php_ini_5.9= passwd_mode=1 web_urlsslport= docs_text= newdom_cc= defsafeunder= php_session_age=7 newsubdom_bcc=info@altagrade.com quota_set_group_command= append_style=6 logrotate_files= dkim_enabled=0 initsub_template=141405782215856 template_auto=0 name_mode=0 edit_homes=1 defaliasdomslimit=* backup_rotated=0 web_sslprotos= php7.2fcgi= mem_cmd= iface=eth0 disable=unix,mail,web,dns,mysql,postgres,ftp web_admindom= dns_check=1 backuplog_days=7 ssh_args= show_pass=1 stats_pass=1 php_ini_7.1= apache_config=ServerName ${DOM} ServerAlias www.${DOM} DocumentRoot ${HOME}/public_html ErrorLog /var/log/altagrade/${DOM}_error_log CustomLog /var/log/altagrade/${DOM}_access_log combined ScriptAlias /cgi-bin/ ${HOME}/cgi-bin/ DirectoryIndex index.html index.htm index.php index.php4 index.php5 <Directory ${HOME}/public_html> Options -Indexes +IncludesNOEXEC +SymLinksIfOwnerMatch allow from all AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch </Directory> <Directory ${HOME}/cgi-bin> allow from all AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch </Directory> html_perms=0750 quota_get_user_command= statustmpl= avail_htaccess-htpasswd=1 quota_commands=0 php_ini_7.3= show_preview=2 limitnoalias=0 statusonly=0 defdomslimit= phpchildren= defmailboxlimit= group_quotas=1 defcapabilities=none username_length= proftpd_config=ServerName ${DOM} <Anonymous ${HOME}/ftp> User ftp Group ftp UserAlias anonymous ftp <Limit WRITE> DenyAll </Limit> RequireValidShell off ExtendedLog ${HOME}/logs/ftp.log </Anonymous> mail_skel= theme_link= gacl_umode=1 bind_spfall=2 hide_alias=0 tmpl_autoconfig=none edit_afiles=1 php_ini_7.8= dns_ns= python_cmd= backup_feature_dns=1 ldap_mail=0 apache_ssl_config= ldap_mailstore=$HOME/Maildir/ default_exclude=altagrade-backup sandbox defresources=none defaliaslimit= spam_client=spamassassin gacl_ugroups=${GROUP} domains_group= theme_image= dbgroup= virtual_skel_subs=0 bccto=none index_cols=dom,uquota,phpv append=1 backup_feature_mail=1 backup_feature_ssl=1 combined_cert=0 avail_spam=1 ldap_unix=1 ftp=0 max_manual=0 ham_trap_white=0 php5.4fcgi=none reseller_unix=0 vpopmail_auto=/usr/local/bin/autorespond ipfollow=0 bw_template=default backup_fmt=2 index_fcols= pigz=0 statussslcert=1 avail_syslog=1 avail_virtualmin-dav=0 postgres_encoding=none mysql_hosts= mysql_wild= denied_domains= namedconf_no_also_notify= bw_nomailout=0 delete_virts=0 old_defip=65.49.80.99 quotas=1 bind_dmarc=yes bccs=1 avail_change-user=0 sent_folder=Sent scriptdir=* reseller_modules= php_ini_5= webmin_modules= show_mailuser=1 avail_webminlog=1 php5fcgi=none defmquota=512000 maillog_period=30 php_ini_4= postgres=0 homes_dir=usermails php_vars=+memory_limit=64M dependent_mail=0 home_format= nolink_certs=1 reseller_template=none rs_snet=0 newsubdom_subject=Account information for ${DOM} at AltaGrade dbfnorename=0 def_webalizer= check_apache=0 web_ssi_suffix= docs_link=https://www.altagrade.com/help leave_acl=0 hide_pro_tips=0 reseller_pre_command= spam_white=0 collect_ifaces= webmin_group= defmongrelslimit=4 gacl_root=${HOME} bind_config= show_uquotas=0 spamtrap=none avail_passwd=0 jailkit_disabled=0 from_reseller=0 aliascopy=1 avail_filemin=1 alias_post_command= vpopmail_user=vpopmail vpopmail_owner=0 proxy_pass=0 gacl_groups=${GROUP} php_ini_7.2= show_lastlogin=1 bind_master= defbwlimit= mysql_charset=utf8mb4 subtmpl_nousers= avail_file=0 quota_list_groups_command= move_command= vpopmail_md= php_ini_5.3= virt6=1 local_template=none ca_tmpl= can_letsencrypt=2 extra_prefix= php_ini_7.7= backuplog_age= avail_webalizer=0 dovecot_ssl=0 tar_cmd= bw_backup=1 check_ports=2 defdbslimit= bind_sub=yes php7.2cgi= web_ssi=2 no_lookup_domain_daemon=1 newdom_aliases=postmaster=${EMAILTO} webmaster=${EMAILTO} abuse=${EMAILTO} hostmaster=info@altagrade.com ftp_shell=/bin/false allow_modphp=0 defip= php7.0fcgi=none plugins=virtualmin-awstats virtualmin-htpasswd bind_dmarcpct=100 namedconf_no_allow_transfer= home_base=/home php7.0cgi=none alias_mode=1 user_template=none drafts_folder=Drafts backup_feature_all=1 ftp_dir= shell=/dev/null iface6= show_ugroup=0 auto_redirect=0 postgresql=1 jailkit_root=/home/chroot defushell=none subdomain_template= domains_sort=sub ssl=0 php5.4cgi=none mysql_uconns=none lookup_domain_serial=0 backup_feature_virtualmin=1 upload_tries=3 webalizer_nocron=1 defujail=0 key_tmpl= mysql=1 mysql_db=${ID}_${PREFIX} fcgid_max=9999 php_ini_7.6= php_ini_5.6= quota_list_users_command= mailgroup= web_writelogs= web_webmaildom= backup_onebyone=1 cert_tmpl= web_admin=1 disable_mail=0 avail_updown=1 allow_subdoms=0 php_suexec=2 show_mailsize=1 defquota=1048576 allow_upper=0 warnbw_template=default avail_at=1 home_backup=altagrade-backup zip_args= domalias_type=0 hashtypes=* stats_dir= scriptwarn_url= web_port=8080 avail_cron=1 force_email=1 ip_ranges= bw_notify=24 bind_replace= web_webmail=1 apache_star=0 usermin_ssl=0 disabled_url= wizard_run=1 show_quotas=0 avail_proc=1 avail_shell=0 clamscan_host= unix_shell=/bin/bash /bin/sh last_check_php_vers=5 5.4 7.3 web=1 compression=0 php_fpm_port=8000 alias_pre_command= reseller_post_command= bw_owner=1 defnorename= logrotate_shared=yes everything_tmpl= avail_telnet=0 sharedip6s= clamscan_cmd_global=1 avail_web=1 featurelimits=none virt=1 collect_notemp=0 reseller_theme=authentic-theme scriptlatest_enabled=1 backup_feature_web=1 ruby_suexec=-1 ip6enabled=1 mysql_collate=utf8mb4_general_ci sub_skel=/etc/ag/skel newsubdom_cc= done_fix_autoreplies=1 output_command=1 suexec=1 mysql_nopass=0 defip6= php5cgi=none bind_dmarcp=reject api_helper= php_ini_7.0= dns=1 bind_dmarcextra= php_ini_7.5= bw_period=30 init_template=141405782215856 longname=0 dns_prins=1 mysql_suffix=${ID}_ mem_low=256 backup_feature_unix=1 capabilities=none mail_quotas=/ jail_age=24 collect_fs= php_sock=1 ftpgroup= bind_spfincludes= trash_folder=Trash newdom_bcc=support@altagrade.com plan_auto=1 post_check=1 virtual_skel_nosubs= bind_indom=0 domain_template=default defrealdomslimit=* newdom_alias_bounce=0 sharedips= bind_dmarcrua= last_check=1658043409 collect_interval=5 mx_validate=1 php_ini_5.5= nodeniedssh=1 cert_type=sha2 bind_spf=yes spam_delivery=$HOME/Maildir/.spam/ aws_cmd=aws vpopmail_dir=/home/vpopmail batch_create=1 newupdate_to_mailbox=1 webmin_theme=* spam=2 max_timeout= newdom_subject=Account information for ${DOM} mail=2 fcgiwrap=0 dns_ttl= virus=2 dns_records=@ www avail_virtualmin-awstats=virtualmin-dav backup_feature_postgres=1 bind_mx= dnssec_single=0 home_quotas=/ webalizer=0 max_all=1 defugroup=none bind_cloud_proxy=0 bind_cloud_import=1 defaultdomain_name=none avail_xterm=0 php_log=1 letsencrypt_wild=0 single_tx=1 dns_secany=0 err_letsencrypt=0 mysql_ssl=1 default_domain_ssl=0 letsencrypt_retry=1 show_dbs=0 proftpd_ssl=1 show_plugins=0 web_http2=0 avail_logviewer=1 external_ip_cache_time=1713564446 EOT
2) file=/etc/webmin/virtual-server/last-config
cat > /etc/webmin/virtual-server/last-config << 'EOT' avail_mail=1 stats_hdir= combined_tmpl= old_defip6=fe80::216:3eff:feca:7117 php_noedit=0 domalias= defnodbname=0 dns_ip= mail_system=0 clamscan_cmd=clamscan bw_ftplog_rotated=1 theme_alt= edit_quota=1 rs_endpoint=https://identity.api.rackspacecloud.com/v1.0 nopostfix_extra_user=0 iface_base= webmin=1 vpopmail_group=vchkpw disabled_web=${DISABLED_WHY} plugins_inactive=virtualmin-awstats virtualmin-init virtualmin-dav virtualmin-registrar virtualmin-git virtualmin-sqlite virtualmin-slavedns maillog_hide=0 pre_command=/etc/ag/scripts/pre.sh dnssec_alg=RSASHA1 mysql_replicas= pbzip2=0 backup_feature_logrotate=1 avail_phpini=1 othergroups= backup_feature_webalizer=0 secmx_nodns=0 own_restore=1 newuser_to_mailbox=1 dir=3 virtual_skel=/etc/ag/skel remote_alias=1 first_version=6.00 groupsame=0 other_doms=0 mysql_chgrp=1 max_backups=3 show_sysinfo=1 logrotate_config= auto_letsencrypt=0 html_dir= statusemail= avail_mailboxes=0 edit_ftp=1 show_validation=2 alias_types=1,2,5,6,7,8,9,10,11,12,13 defforceunder=0 delete_logs=0 netmask6= quota_get_group_command= spam_lock=0 postfix_ssl=0 spam_trap_black=0 preload_mode=2 deftmpl_nousers= defipfollow= php_ini_5.4= gzip_mysql=1 show_nf=master allow_symlinks=0 contact_email= php_paths= php_ini_5.8= dnssec= other_users=0 display_max= backup_feature_mysql=1 vpopmail_maildir=mail avail_bind8=1 collect_restart=1 localgroup= default_procmail=1 from_addr= tlsa_records=0 jail_sects= web_sslport=443 tar_args= mysql_conns=none defuquota=1048576 mysql_size=huge mysql_mkdb=1 delete_indom=0 show_tabs=1 spamclear=days 30 clam_delivery=/dev/null mysql_user_size=16 avail_dns=1 status=0 usermin_switch=1 statustimeout= avail_mysql=1 openssl_cnf= quota_set_user_command= tmpl_outlook_autoconfig=none stats_noedit=1 gacl_users= php_ini_5.2= hard_quotas=1 unix=3 spam_level= logrotate=3 bind_spfhosts= namedconf= post_command=/etc/ag/scripts/post.sh generics=0 update_template=default collect_noall=0 all_namevirtual=0 passwd_chars= ip_ranges6= name_max=20 avail_postgres=0 passwd_length= hashpass=0 newuser_aliases= avail_custom=1 backup_feature_dir=1 clamscan_cmd_tested=clamscan show_features=0 phpver=7.0 php_fpm= dns_view= key_size= webmin_ssl=0 ldap=0 mysql_nouser=0 php_ini_5.7= bw_maillog=auto web_urlport= php_ini_5.9= web_user=apache passwd_mode=1 docs_text= web_urlsslport= newdom_cc= defsafeunder= append_style=6 quota_set_group_command= newsubdom_bcc=info@altagrade.com dkim_enabled=0 logrotate_files= name_mode=0 template_auto=0 initsub_template=141405782215856 edit_homes=1 backup_rotated=0 defaliasdomslimit=* web_sslprotos= php7.2fcgi= iface=eth0 mem_cmd= disable=unix,mail,web,dns,mysql,postgres,ftp web_admindom= dns_check=1 backuplog_days=7 stats_pass=1 show_pass=1 ssh_args= php_ini_7.1= apache_config=ServerName ${DOM} ServerAlias www.${DOM} DocumentRoot ${HOME}/public_html ErrorLog /var/log/altagrade/${DOM}_error_log CustomLog /var/log/altagrade/${DOM}_access_log combined ScriptAlias /cgi-bin/ ${HOME}/cgi-bin/ DirectoryIndex index.html index.htm index.php index.php4 index.php5 <Directory ${HOME}/public_html> Options -Indexes +IncludesNOEXEC +SymLinksIfOwnerMatch allow from all AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch </Directory> <Directory ${HOME}/cgi-bin> allow from all AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch </Directory> html_perms=0750 quota_get_user_command= statustmpl= quota_commands=0 avail_htaccess-htpasswd=1 limitnoalias=0 show_preview=2 php_ini_7.3= statusonly=0 defdomslimit= phpchildren= group_quotas=1 defmailboxlimit= defcapabilities=none proftpd_config=ServerName ${DOM} <Anonymous ${HOME}/ftp> User ftp Group ftp UserAlias anonymous ftp <Limit WRITE> DenyAll </Limit> RequireValidShell off ExtendedLog ${HOME}/logs/ftp.log </Anonymous> username_length= mail_skel= gacl_umode=1 theme_link= hide_alias=0 bind_spfall=2 edit_afiles=1 tmpl_autoconfig=none dns_ns= python_cmd= backup_feature_dns=1 ldap_mail=0 ldap_mailstore=$HOME/Maildir/ default_exclude=altagrade-backup sandbox defresources=none spam_client=spamassassin defaliaslimit= gacl_ugroups=${GROUP} theme_image= domains_group= virtual_skel_subs=0 dbgroup= index_cols=dom,uquota,phpv bccto=none backup_feature_ssl=1 backup_feature_mail=1 append=1 ldap_unix=1 avail_spam=1 ftp=0 ham_trap_white=0 max_manual=0 vpopmail_auto=/usr/local/bin/autorespond reseller_unix=0 php5.4fcgi=none bw_template=default ipfollow=0 backup_fmt=2 index_fcols= avail_syslog=1 statussslcert=1 avail_virtualmin-dav=0 postgres_encoding=none mysql_hosts= mysql_wild= denied_domains= bw_nomailout=0 namedconf_no_also_notify= delete_virts=0 old_defip=65.49.80.99 quotas=1 bind_dmarc=yes bccs=1 avail_change-user=0 sent_folder=Sent scriptdir=* reseller_modules= php_ini_5= webmin_modules= avail_webminlog=1 php5fcgi=none defmquota=512000 maillog_period=30 php_ini_4= postgres=0 homes_dir=usermails php_vars=+memory_limit=64M dependent_mail=0 home_format= nolink_certs=1 reseller_template=none rs_snet=0 newsubdom_subject=Account information for ${DOM} at AltaGrade dbfnorename=0 def_webalizer= check_apache=0 docs_link=https://www.altagrade.com/help leave_acl=0 web_ssi_suffix= spam_white=0 reseller_pre_command= collect_ifaces= webmin_group= defmongrelslimit=4 gacl_root=${HOME} show_uquotas=0 bind_config= spamtrap=none avail_passwd=0 from_reseller=0 aliascopy=1 avail_filemin=1 vpopmail_user=vpopmail alias_post_command= vpopmail_owner=0 gacl_groups=${GROUP} proxy_pass=0 php_ini_7.2= show_lastlogin=1 defbwlimit= bind_master= mysql_charset=utf8mb4 avail_file=0 subtmpl_nousers= move_command= quota_list_groups_command= vpopmail_md= local_template=none virt6=1 php_ini_5.3= ca_tmpl= can_letsencrypt=2 extra_prefix= dovecot_ssl=0 avail_webalizer=0 backuplog_age= bw_backup=1 tar_cmd= check_ports=2 defdbslimit= bind_sub=yes php7.2cgi= web_ssi=2 no_lookup_domain_daemon=1 newdom_aliases=postmaster=${EMAILTO} webmaster=${EMAILTO} abuse=${EMAILTO} hostmaster=info@altagrade.com ftp_shell=/bin/false allow_modphp=0 defip= php7.0fcgi=none plugins=virtualmin-htpasswd bind_dmarcpct=100 namedconf_no_allow_transfer= home_base=/home php7.0cgi=none alias_mode=1 drafts_folder=Drafts user_template=none backup_feature_all=1 ftp_dir= shell=/dev/null iface6= auto_redirect=0 show_ugroup=0 postgresql=1 jailkit_root=/home/chroot domains_sort=sub subdomain_template= defushell=none ssl=0 mysql_uconns=none php5.4cgi=none lookup_domain_serial=0 upload_tries=3 backup_feature_virtualmin=1 defujail=0 webalizer_nocron=1 mysql=1 key_tmpl= mysql_db=${ID}_${PREFIX} fcgid_max=9999 php_ini_5.6= quota_list_users_command= mailgroup= web_writelogs= web_webmaildom= backup_onebyone=1 disable_mail=0 web_admin=1 cert_tmpl= avail_updown=1 php_suexec=2 allow_subdoms=0 allow_upper=0 show_mailsize=1 defquota=1048576 home_backup=altagrade-backup avail_at=1 warnbw_template=default zip_args= hashtypes=* domalias_type=0 scriptwarn_url= stats_dir= web_port=8080 avail_cron=1 force_email=1 bw_notify=24 ip_ranges= bind_replace= usermin_ssl=0 apache_star=0 web_webmail=1 show_quotas=0 wizard_run=1 disabled_url= avail_shell=0 avail_proc=1 unix_shell=/bin/bash /bin/sh clamscan_host= compression=0 web=1 last_check_php_vers=5 5.4 7.3 bw_owner=1 reseller_post_command= alias_pre_command= logrotate_shared=yes defnorename= avail_telnet=0 everything_tmpl= sharedip6s= avail_web=1 clamscan_cmd_global=1 featurelimits=none collect_notemp=0 virt=1 reseller_theme=authentic-theme scriptlatest_enabled=1 backup_feature_web=1 ip6enabled=1 ruby_suexec=-1 output_command=1 newsubdom_cc= sub_skel=/etc/ag/skel mysql_collate=utf8mb4_general_ci suexec=1 mysql_nopass=0 defip6= api_helper= bind_dmarcp=reject php5cgi=none dns=1 php_ini_7.0= bw_period=30 init_template=141405782215856 dns_prins=1 longname=0 mysql_suffix=${ID}_ mem_low=256 backup_feature_unix=1 capabilities=none jail_age=24 mail_quotas=/ collect_fs= trash_folder=Trash bind_spfincludes= ftpgroup= newdom_bcc=support@altagrade.com plan_auto=1 post_check=1 virtual_skel_nosubs= domain_template=default bind_indom=0 defrealdomslimit=* sharedips= newdom_alias_bounce=0 collect_interval=5 last_check=1674341115 mx_validate=1 php_ini_5.5= nodeniedssh=1 cert_type=sha2 aws_cmd=aws spam_delivery=$HOME/Maildir/.spam/ bind_spf=yes batch_create=1 vpopmail_dir=/home/vpopmail newupdate_to_mailbox=1 webmin_theme=* spam=0 max_timeout= mail=0 newdom_subject=Account information for ${DOM} virus=0 dns_ttl= dns_records=@ www avail_virtualmin-awstats=virtualmin-dav backup_feature_postgres=1 bind_mx= dnssec_single=0 webalizer=0 home_quotas=/ max_all=1 defugroup=none php7.3cgi=none php7.3fcgi=none pigz=0 show_mailuser=1 bind_dmarcruf= php_ini_7.4= php_ini_7.9= php_ini_7.8= apache_ssl_config= php_ini_7.7= php_ini_7.6= bind_dmarcextra= php_ini_7.5= bind_dmarcrua= php_fpm_port=8000 licence_script= done_fix_autoreplies=1 b2_cmd=b2 php_session_age=7 external_ip_cache=65.49.80.99 always_ssl=0 combined_cert=0 hide_pro_tips=0 php_sock=1 fcgiwrap=0 last_letsencrypt_mass_renewal=1674340821 jailkit_disabled=0 avail_xterm=0 php_log=1 bind_cloud_proxy=0 defaultdomain_name=none bind_cloud_import=1 letsencrypt_wild=0 EOT
3) file=/etc/webmin/virtual-server/custom-fields
cat > /etc/webmin/virtual-server/custom-fields << 'EOT' app:9:/etc/ag/custom-menus/app.menu:Application;Select the content-management system or web-application to install.::0 varnish:11:Yes:Varnish;Please do not select this when creating a website to make installation process smoother. Instead use this option when editing domain after it has already been installed.:1:0 memcache:11:Yes:Memcache;Please do not select this when creating a website to make installation process smoother. Instead use this option when editing domain after it has already been installed.:1:0 autoupdate:7:Yes:Autoupdate;Automatic Drupal Core Updates:1:0 ssl:9:/etc/ag/custom-menus/ssl.menu:SSL Certificate;AltaGrade is an HTTPS Everywhere platform, so you must choose one of the options for SSL certificates.::0 EOT
4) file=/etc/webmin/virtual-server/domain-template
cat > /etc/webmin/virtual-server/domain-template << 'EOT' The following website has been created successfully: +=============================================+ | Website Info | ${DOM} +=============================================+ | Username: ${USER} | Password: ${PASS} ${IF-WEB} | Website: http://www.${DOM} | HTML directory: ${PUBLIC_HTML_PATH} ${IF-MAIL} | SMTP server: mail.${DOM} | POP3 server: mail.${DOM} ${ENDIF-MAIL} ${IF-WEBALIZER} | Webalizer log reporting: Enabled ${ENDIF-WEBALIZER} ${ENDIF-WEB} ${IF-MYSQL} | MySQL database: ${DB} | MySQL login: ${MYSQL_USER} ${IF-MYSQL_PASS} | MySQL password: ${MYSQL_PASS} ${ELSE-MYSQL_PASS} | MySQL password: ${PASS} ${ENDIF-MYSQL_PASS} ${ENDIF-MYSQL} | Apache Solr Host: localhost | Apache Solr Port: 8983 | Apache Solr Path: /solr/${DOM} +=============================================+ +=============================================+ | Server Info | ${IP} +=============================================+ | Dedicated IP: ${IP} | SSH and SFTP Port: ${PORT} | Control Panel: http://admin.${DOM} | (or https://${IP}:10000 before propagation) +=============================================+ Please note of the following important details: - The above access information is not for your profile account at https://my.altagrade.com. You set your own username and password for your profile account during sign-up process. If you forgot your password to your profile account, then please just reset it on https://my.altagrade.com/user/password. - You can request this e-mail any time by logging in to your control panel, selecting the website's domain name in the drop-down list on the left menu and clicking on "Administration Options" > Re-Send Signup Email. - Find more detailed information please read our documentation portal at https://www.altagrade.com/help. - If you have any questions, comments, or concerns, feel free to create a support ticket at https://my.altagrade.com.EOT
5) file=/etc/webmin/virtual-server/subdomain-template
cat > /etc/webmin/virtual-server/subdomain-template << 'EOT' The following website has been created successfully: +===================================+ | Website Info | ${DOM} +===================================+ | Username: ${USER} | Password: ${PASS} ${IF-WEB} | Website: http://www.${DOM} ${IF-MAIL} | SMTP server: mail.${DOM} | POP3 server: mail.${DOM} ${ENDIF-MAIL} ${IF-WEBALIZER} | Webalizer log reporting: Enabled ${ENDIF-WEBALIZER} ${ENDIF-WEB} ${IF-MYSQL} | MySQL database: ${DB} | MySQL login: ${MYSQL_USER} ${IF-MYSQL_PASS} | MySQL password: ${MYSQL_PASS} ${ELSE-MYSQL_PASS} | MySQL password: ${PASS} ${ENDIF-MYSQL_PASS} ${ENDIF-MYSQL} | Apache Solr Host: localhost | Apache Solr Port: 8983 | Apache Solr Path: /solr/${DOM} +===================================+ +===================================+ | Server Info | ${IP} +===================================+ | Dedicated IP: ${IP} | SSH and SFTP Port: ${PORT} | Control Panel: http://admin.${DOM} (or https://${IP}:10000 before propagation) +===================================+ - The above access information is not for your profile account at https://my.altagrade.com. You set your own username and password for your profile account during sign-up process. If you forgot your password to your profile account, then please just reset it on https://my.altagrade.com/user/password. - You can request this e-mail any time by logging in to your control panel, selecting the website's domain name in the drop-down list on the left menu and clicking on "Administration Options" > Re-Send Signup Email. - Find more detailed information please read our documentation portal at https://www.altagrade.com/help. - If you have any questions, comments, or concerns, feel free to create a support ticket at https://my.altagrade.com.EOT
6) file=/etc/webmin/virtual-server/templates/1
cat > /etc/webmin/virtual-server/templates/1 << 'EOT' mail_cc= standard=1 mail_on= for_users=1 for_parent=0 mail_subject=Account information for ${DOM} at AltaGrade owners=* skel=/etc/ag/skel id=1 mail=The following website has been created successfully: +===================================+ | Website Info | ${DOM} +===================================+ | Username: ${USER} | Password: ${PASS} ${IF-WEB} | Website: http://www.${DOM} ${IF-MAIL} | SMTP server: mail.${DOM} | POP3 server: mail.${DOM} ${ENDIF-MAIL} ${IF-WEBALIZER} | Webalizer log reporting: Enabled ${ENDIF-WEBALIZER} ${ENDIF-WEB} ${IF-MYSQL} | MySQL database: ${DB} | MySQL login: ${MYSQL_USER} ${IF-MYSQL_PASS} | MySQL password: ${MYSQL_PASS} ${ELSE-MYSQL_PASS} | MySQL password: ${PASS} ${ENDIF-MYSQL_PASS} ${ENDIF-MYSQL} | Apache Solr Host: localhost | Apache Solr Port: 8983 | Apache Solr Path: /solr/${DOM} +===================================+ +===================================+ | Server Info | ${IP} +===================================+ | Dedicated IP: ${IP} | SSH and SFTP Port: ${PORT} | Control Panel: http://admin.${DOM} (or https://${IP}:10000 before propagation) +===================================+ - The above access information is not for your profile account at https://my.altagrade.com. You set your own username and password for your profile account during sign-up process. If you forgot your password to your profile account, then please just reset it on https://my.altagrade.com/user/password. - You can request this e-mail any time by logging in to your control panel, selecting the website's domain name in the drop-down list on the left menu and clicking on "Administration Options" > Re-Send Signup Email. - Find more detailed information please read our documentation portal at https://www.altagrade.com/help. - If you have any questions, comments, or concerns, feel free to create a support ticket at https://my.altagrade.com. for_sub=1 mail_bcc=info@altagrade.com for_alias=0 resellers=* name=Settings For Sub-Domains created=1504169392 dns= mysql_charset= dns_spf= file=/etc/webmin/virtual-server/templates/1 mysql_suffix=${ID}_${PREFIX}_ mysql_conns= dns_dmarcp= mysql_mkdb= dns_master= mysql_nouser= dns_dmarc= dns_spfall= dnssec_alg=RSASHA1 dns_spfhosts= dns_dmarcpct= dns_sub= mysql_chgrp= dns_spfincludes= mysql_uconns= namedconf= mysql_collate= dns_mx= mysql=${ID}_${PREFIX} mysql_nopass= mysql_hosts= dnssec_single=0 dnssec= mailgroup= user_aliases= ftpgroup= defmquota= append_style= othergroups= dbgroup= bccto= aliascopy= dom_aliases= skel_subs=0 skel_nosubs= skel_onlysubs= exclude=altagrade-backup sandbox dns_dmarcruf= dns_indom=0 dns_dmarcrua= php_fpm=none web_phpver= web_php_ini_5.4= web_php_suexec=2 web_php_ini_5= web_php_noedit=0 web_php_ini_7.3= web_phpchildren= EOT
7) file=/etc/webmin/virtual-server/plans/0
cat > /etc/webmin/virtual-server/plans/0 << 'EOT' quota= quota= bwlimit= norename=0 file=/etc/webmin/virtual-server/plans/0 uquota= nodbname=1 realdomslimit= migrate=0 aliaslimit= domslimit= capabilities= ipfollow= id=0 featurelimits= mailboxlimit= name=Unlimited Plan dbslimit= aliasdomslimit= forceunder=0 scripts= safeunder=0 EOT
8) file=/etc/webmin/webmin.descs
cat > /etc/webmin/webmin.descs << 'EOT' bandwidth=Traffic Monitoring webmin=Host Manager Configuration servers=Host Manager Servers webminlog=Host Manager Log acl=Host Manager Users virtualmin-registrar=Site Manager Domain Registration virtualmin-dav=Site Manager DAV virtualmin-init=Site Manager Bootup Actions virtualmin-git=Site Manager Git virtualmin-htpasswd=Site Manager Protected Directories virtualmin-sqlite=Site Manager SQLite virtual-server=Site Manager Domains usermin=User Manager Configuration custom=AltaGrade Commands EOT
9) file=/etc/webmin/webmin.catnames
cat > /etc/webmin/webmin.catnames << 'EOT' =AltaGrade EOT