This function retrieves the configuration settings for the cPanel & WHM server on which an account exists. This is useful, for example, to verify which applications and functionality are available on the account.
name | string The server configuration settings to return. Click to view information about the available server configuration settings.
Note:
name=name=allow_park_subdomain_on_hostname&name=allow_remote_domains&name=allow_reset_password name=allow_park_subdomain_on_hostname |
uapi --output=jsonpretty \ --user=username \ Variables \ get_server_information
{- "apiversion": 3,
- "func": "get_server_information",
- "module": "Variables",
- "result": {
- "data": {
- "allow_park_subdomain_on_hostname": 0,
- "allow_remote_domains": 1,
- "allow_reset_password": 1,
- "allow_reset_password_for_subaccounts": 1,
- "allow_unregistered_domains": 1,
- "apache_port": "192.0.2.0:80",
- "apache_ssl_port": "192.0.2.0:443",
- "api_shell": 0,
- "awstats_browser_update": 0,
- "awstats_reverse_dns": 0,
- "cpanel_root_directory": "/usr/local/cpanel",
- "database_prefix_required": 1,
- "default_theme": "jupiter",
- "disable_analog": 0,
- "disable_awstats": 0,
- "disable_boxtrapper": 0,
- "disable_mailman": 0,
- "disable_roundcube": 0,
- "disable_spamassassin": 0,
- "disable_spambox": 0,
- "disable_webalizer": 0,
- "display_cpanel_doclinks": 0,
- "dnsadmin_app": "dnsadmin",
- "docroots_in_public_html_only": 1,
- "email_filter_storage_directory": "/etc/vfilters",
- "empty_trash_days": "disabled",
- "enable_file_protect": 1,
- "file_upload_maximum_bytes": null,
- "file_upload_must_leave_bytes": 5,
- "file_usage": 0,
- "ftp_server": "disabled",
- "htaccess_check_recurse": 2,
- "invite_sub": 1,
- "ipv6_listen": 0,
- "is_mod_userdir_enabled": 1,
- "local_nameserver_type": "powerdns",
- "mail_server": "dovecot",
- "mailbox_storage_format": "maildir",
- "minimum_password_strength": 65,
- "minimum_password_strength_mysql": 65,
- "mysql_host": "localhost",
- "mysql_version": "5.7",
- "php_loader": "ioncube",
- "php_maximum_execution_time": 90,
- "php_open_basedir_home": 0,
- "php_post_maximum_size": 55,
- "php_system_default_version": "ea-php73",
- "php_upload_maximum_filesize": 50,
- "phpmyadmin_disable_search_info_schema": 0,
- "require_ssl": 1,
- "skip_apache_clients_optimizer": 0,
- "skip_bandwidth_limit_check": 0,
- "skip_mailbox_warnings_check": 1,
- "ssl_default_key_type": "rsa-2048",
- "use_information_schema": 1,
- "use_mail_for_mailman_url": 0,
- "version": "3.4"
}, - "errors": null,
- "messages": null,
- "metadata": { },
- "status": 1,
- "warnings": null
}
}