Plesk

From ISPWiki

Jump to: navigation, search


Contents

Integration module functions

Create account

The OpenAccount function

  • Locates a server, domain, user and package in the base.
  • Locates information about account's IP-addresses (whether the account has assigned IP-addresses, if, yes, their number) in the base.
  • Sends the XML request to the Plesk server. The first shared IP-address is stored. If no shared IP-addresses are found, the FATAL error “On the server there are no shared IPs, there is only one exclusive IP. Impossible create account.” is generated and located into “/usr/local/ispmgr/var/cpplesk.log”.
  • Sends the XML request to the Plesk server to create an account with a random password. A login and template (package) name are taken from the base.
  • If the user has assigned IP-addresses, the Newip function is called that specifies the required number of IP-addresses in the client's ipool and returns the first assigned IP-address (the domain will bound to this address).
  • If a customer does not have assigned IP-addresses, the XML request will be sent to the Plesk server for adding a shared IP-address into the user's ippool.
  • Sends the XML request to the Plesk server for adding a domain.
  • Calls AddDetails to rewrite package details into those added manually (if any): bandwidth,disk,emaillimit, databaselimit,webdomainlimit.

Delete gaccount

The DeleteAccount function

  • Locates the account in the database.
  • Send the deletion request to the Plesk server.
  • Deletes all the IP-addresses that are assigned to this account from itemip

Disable account

The SuspendAccount function

  • Locates the account in the database.
  • Send the XML request to the Plesk server (the account will get status 16 that means the account is disabled).

Enable account

The ResumeAccount function

  • Locates the account in the database.
  • Sends the XML request to the Plesk server (the account will get status 0 that means the account is active).

Change package

The SetAccountParam function

  • Locates the account in the database.
  • Sends the XML request to the Plesk server to read details and privileges of a new package.
  • Sends the XML request to the Plesk server to override details and privileges of the old package by those of a new package).
  • Calls AddDetails to overwrite package details by those added manually (if any): bandwidth,disk,emaillimit, databaselimit,webdomainlimit.


Get package (preset) information

The GetServerConfig function

  • Sends the XML request to the Plesk server (the package names (account templates) are read on the Plesk server).
  • Lists all the packages from the server in the server table, the config column.


Check Plesk server connection

The CheckServerConnection function

  • Sends the XML request to the Plesk server to check server connection.

Get statistics

The GetStats function

  • Sends the XML request to the Plesk server to collect traffic statistics over a previous month.
  • Lists the data that were received with the out parameter in the itemstat table, as incoming and outgoing traffic is not differentiated.

Additional information

Use the fix function to update the information. Log file : /usr/local/ispmgr/var/cpplesk.log.

You may add the following limits with internal names to the billing

Limits:

  • max_webapps - the maximum number of Tomcat applications.
  • max_maillists - the maximum number of mailing lists
  • max_resp - the maximum number of e-mail auto-responders.
  • max_mg node - the maximum number of e-mail groups.
  • max_redir - the maximum number of redirects.
  • mbox_quota - the maximum size of a mailbox.
  • max_box - the maximum number of mailboxes.
  • max_db - the maximum number of MySQL databases.
  • max_wu - the maximum number of web users.
  • disk_space - the maximum disk space a user can consume.
  • max_subdom - the maximum number of subdomains.
  • max_dom - the maximum number of domain names.
  • total_mboxes_quota - the maximum size allowed for all mailboxes. Can be configured only for Plesk for Windows.
  • mysql_dbase_space - the maximum size allowed for all the MySQL databases. Can be configured only for Plesk for Windows.
  • mssql_dbase_space - the maximum size allowed for all the msSQL databases. Can be configured only for Plesk for Windows.
  • max_mssql_db - the maximum number of msSQL databases. Can be configured only for Plesk for Windows.
  • max_iis_app_pools - the maximum number of IIS application pool. Can be configured only for Plesk for Windows.
  • max_shared_ssl_links - the maximum number of shared SSL links. Can be configured only for Plesk for Windows.
  • max_subftp_users - the maximum number of FTP accounts. Can be configured only for Plesk for Windows.
  • max_fpse_users - the maximum number of Microsoft FrontPage accounts. Can be configured only for Plesk for Windows.
  • max_dom_aliases - the maximum number of domain aliases.
  • max_odbc - the maximum number of ODBC connections. Can be configured only for Plesk for Windows.

Permissions (the boolean type in the billing):

  • create_domains - enable/disable domain creation.
  • manage_phosting - enable/disable physical hosting management.
  • manage_quota node - enable/disable to edit disk space limit.
  • manage_subdomains - enable/disable subdomains management.
  • change_limits - enable/disable to edit domain limits.
  • manage_dns - enable/disable DNS settings management.
  • manage_log - enable/disable log rotation management.
  • manage_crontab - enable/disable cron jobs management.
  • manage_anonftp - enable/disable anonymous FTP management.
  • manage_webapps - enable/disable Tomcat web application management.
  • manage_sh_access - enable/disable shell access.
  • manage_maillists - enable/disable mailing lists management.
  • manage_drweb - enable/disable DrWeb management, if DrWeb is supported.
  • make_dumps - enable/disable backing up/restoring.
  • remote_access_interface - enable/disable API RPC. For Plesk for UNIX.
  • manage_performance - enable/disable hosting performance management. For Plesk for Windows.
  • cp_access - enable/disable access to Plesk via the Control Panel.
  • manage_domain_aliases - enable/disable domain alias management. For Plesk for UNIX.
  • manage_iis_app_pool - enable/disable IIS application pool management. For Plesk for Windows.
  • dashboard - enable/disable Plesk Desktop.
  • stdgui - enable/disable Plesk GUI.
  • manage_dashboard - enable/disable Plesk Desktop management.
  • manage_subftp - enable/disable to manage additional FTP accounts that were created for a domain (only with access to domain directories).
  • manage_spamfilter - enable/disable spam filtering management. For Plesk for UNIX.
  • allow_local_backups - enable/disable to use local repository for backing up/restoring. For Plesk for UNIX.
  • allow_ftp_backups - enable/disable to use FTP repository for backing up/restoring. For Plesk for UNIX.
Was this helpful? Yes | No
Views
Personal tools