• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Limits for the resource type max_dom cannot be set

Amin Taheri

Golden Pleskian
Plesk Certified Professional
Hello,

I was wondering why I would get this error when creating a subscription for a customer using the API.

Code:
<?xml version="1.0" encoding="UTF-8"?>
<packet version="1.6.3.5">
  <webspace>
    <add>
      <result>
        <status>error</status>
        <errcode>2308</errcode>
        <errtext>Limits for the resource type max_dom cannot be set.</errtext>
      </result>
    </add>
  </webspace>
</packet>

I am attempting to create the web space, set all limits and permissions, etc all in one go - according to the documentation it seems like this should work.

Code:
<?xml version="1.0" encoding="UTF-8"?>
<packet version="1.6.3.5">
  <webspace>
    <add>
      <gen_setup>
        <name>mytestuser9.shared-domain.com</name>
        <owner-id>11</owner-id>
        <htype>vrt_hst</htype>
        <ip_address>10.11.28.157</ip_address>
        <status>0</status>
      </gen_setup>
      <hosting>
        <vrt_hst>
          <property>
            <name>ssl</name>
            <value>false</value>
          </property>
          <property>
            <name>ftp_login</name>
            <value>vedebe</value>
          </property>
          <property>
            <name>ftp_password</name>
            <value>7B8ZbUy9</value>
          </property>
          <ip_address>10.11.28.157</ip_address>
        </vrt_hst>
      </hosting>
      <limits>
        <limit>
          <name>max_cf_dsn</name>
          <value>5</value>
        </limit>
        <limit>
          <name>max_odbc</name>
          <value>5</value>
        </limit>
        <limit>
          <name>max_shared_ssl_links</name>
          <value>5</value>
        </limit>
        <limit>
          <name>max_fpse_users</name>
          <value>5</value>
        </limit>
        <limit>
          <name>max_unity_mobile_sites</name>
          <value>0</value>
        </limit>
        <limit>
          <name>max_dom</name>
          <value>50</value>
        </limit>
        <limit>
          <name>max_subdom</name>
          <value>-1</value>
        </limit>
        <limit>
          <name>max_webapps</name>
          <value>-1</value>
        </limit>
        <limit>
          <name>max_redir</name>
          <value>-1</value>
        </limit>
        <limit>
          <name>max_wu</name>
          <value>3</value>
        </limit>
        <limit>
          <name>max_dom_aliases</name>
          <value>10</value>
        </limit>
        <limit>
          <name>max_subftp_users</name>
          <value>10</value>
        </limit>
        <limit>
          <name>expiration</name>
          <value>-1</value>
        </limit>
        <limit>
          <name>max_resp</name>
          <value>50</value>
        </limit>
        <limit>
          <name>max_box</name>
          <value>20</value>
        </limit>
        <limit>
          <name>max_db</name>
          <value>20</value>
        </limit>
        <limit>
          <name>mysql_dbase_space</name>
          <value>-1</value>
        </limit>
        <limit>
          <name>max_site_builder</name>
          <value>1</value>
        </limit>
        <limit>
          <name>max_maillists</name>
          <value>0</value>
        </limit>
        <limit>
          <name>total_mboxes_quota</name>
          <value>0</value>
        </limit>
        <limit>
          <name>max_traffic</name>
          <value>2147483648</value>
        </limit>
        <limit>
          <name>disk_space</name>
          <value>2147483648</value>
        </limit>
      </limits>
      <prefs>
        <www>true</www>
        <stat_ttl>18</stat_ttl>
      </prefs>
      <performance>
        <bandwidth>307200</bandwidth>
        <max_connections>100</max_connections>
      </performance>
      <permissions>
        <permission>
          <name>create_domains</name>
          <value>true</value>
        </permission>
        <permission>
          <name>manage_phosting</name>
          <value>true</value>
        </permission>
        <permission>
          <name>manage_php_settings</name>
          <value>false</value>
        </permission>
        <permission>
          <name>manage_performance</name>
          <value>false</value>
        </permission>
        <permission>
          <name>manage_subdomains</name>
          <value>true</value>
        </permission>
        <permission>
          <name>manage_sh_access</name>
          <value>false</value>
        </permission>
        <permission>
          <name>manage_mail_settings</name>
          <value>false</value>
        </permission>
        <permission>
          <name>manage_virusfilter</name>
          <value>false</value>
        </permission>
        <permission>
          <name>manage_dns</name>
          <value>true</value>
        </permission>
        <permission>
          <name>manage_log</name>
          <value>true</value>
        </permission>
        <permission>
          <name>manage_crontab</name>
          <value>true</value>
        </permission>
        <permission>
          <name>manage_anonftp</name>
          <value>false</value>
        </permission>
        <permission>
          <name>manage_webapps</name>
          <value>true</value>
        </permission>
        <permission>
          <name>manage_maillists</name>
          <value>false</value>
        </permission>
        <permission>
          <name>manage_spamfilter</name>
          <value>false</value>
        </permission>
        <permission>
          <name>manage_quota</name>
          <value>false</value>
        </permission>
        <permission>
          <name>manage_additional_permissions</name>
          <value>false</value>
        </permission>
        <permission>
          <name>manage_webstat</name>
          <value>true</value>
        </permission>
        <permission>
          <name>manage_iis_app_pool</name>
          <value>false</value>
        </permission>
        <permission>
          <name>manage_domain_aliases</name>
          <value>true</value>
        </permission>
        <permission>
          <name>manage_shared_ssl</name>
          <value>false</value>
        </permission>
        <permission>
          <name>select_db_server</name>
          <value>true</value>
        </permission>
        <permission>
          <name>access_appcatalog</name>
          <value>true</value>
        </permission>
        <permission>
          <name>manage_subftp</name>
          <value>true</value>
        </permission>
        <permission>
          <name>allow_ftp_backups</name>
          <value>true</value>
        </permission>
        <permission>
          <name>allow_local_backups</name>
          <value>false</value>
        </permission>
        <permission>
          <name>allow_insecure_sites</name>
          <value>true</value>
        </permission>
        <permission>
          <name>manage_website_maintenance</name>
          <value>true</value>
        </permission>
        <permission>
          <name>manage_protected_dirs</name>
          <value>true</value>
        </permission>
        <permission>
          <name>access_service_users</name>
          <value>true</value>
        </permission>
        <permission>
          <name>allow_license_stubs</name>
          <value>false</value>
        </permission>
      </permissions>
      <php-settings>
        <setting>
          <name>memory_limit</name>
          <value>128M</value>
        </setting>
        <setting>
          <name>safe_mode</name>
          <value>off</value>
        </setting>
      </php-settings>
    </add>
  </webspace>
</packet>
 
I hope not, we have an unlimited license.

User accounts (resellers and customers) Unlimited
Domains Unlimited
Mail accounts Unlimited
Web users Unlimited
Language packs 100
Available languages Any language
Links for purchasing SSL certificates and domain registration services On
Valid for the following environments: Physical server or any virtualization solution
Microsoft SQL Server support On
PostgreSQL database server support Off
Java applications On
Traffic usage reports On
Notifications management On
Event manager On
Logging of actions performed by Panel users On
Backup and restoration functions On
Subdomains management On
Adobe ColdFusion support On
Antivirus management On
Sites published with Web Presence Builder 100
Migration & Transfer Manager On
User accounts (resellers and customers) in Customer and Business Manager 1000
 
I'm not familiar with the API as we use Plesk integrated via PBAS.

However, what does "<owner-id>11</owner-id>" relate to?

Is this a Customer, or Reseller? Perhaps if it is a customer it needs to be a Reseller.
 
Hi Paul, Thanks for your reply. This is a Customer - the intention was to use max_dom to set the max domains that the customer can have. The thinking was (assuming max_dom is truely for that purpose - the documentation is little hazy on that) that this should work for both Customers and Resellers (which we dont use).
 
It looks like there may be a lot of these "legacy" items that are returned back from your API but cant be set. How do you set these values?

Limits:

{"max_cf_dsn", "5"}, //Cold FUsion DSN (linux only?)
{"max_odbc", "5"}, //Number of ODBC (windowns only?)
{"max_shared_ssl_links", "5"}, //Shared SSL Links?
{"max_mssql_db", "-1"}, //Max Number of MS SQL DBs (windowns only?)
{"mssql_dbase_space", "-1"}, //Total MS SQL DB Space - shared between all DBs (combined) (windowns only?)
{"max_fpse_users", "5"}, //Number of Front Page Users (windowns only?)
{"max_unity_mobile_sites", "0"}, //Unity mobile sites - we wont use since it costs us extra per site
{"max_traffic_soft", "-1"}, //Soft traffic limit
{"disk_space_soft", "-1"}, //Soft Disk limit

{"max_redir", "-1"}, //Max URL Redirects -> Limits for the resource type max_redir cannot be set.
{"max_resp", "50"}, //AutoResponders? -> Limits for the resource type max_resp cannot be set.
{"mysql_dbase_space", "-1"}, //MySQL DB Space (combined) -> Limits for the resource type mysql_dbase_space cannot be set.
{"total_mboxes_quota", "0"}, //mailbox total quota (combined) -> Total mailboxes quota is not supported by the mail server


Permissions

{"manage_additional_permissions", "false"}, //Not quite sure what this means yet -> Permission manage_additional_permissions is not supported

{"manage_shared_ssl", "false"}, //No Shared SSL for you! -> Permission manage_shared_ssl is not supported
 
Back
Top