Setting Server Preferences

Request Samples

Setting up apps updates preferences

The following packet turns off force automatic updates for all apps installed on websites within the server, and turns on the automatic updates for newly installed apps:

<packet>
  <server>
    <set>
      <prefs>
        <aps_force_updates>false</aps_force_updates>
        <aps_suggest_updates>true</aps_suggest_updates>
      </prefs>
    </set>
  </server>
</packet>
  
Setting up external SMTP server preferences

The following packet sets preferences for an external SMTP server, allows Plesk to send notifications through this server, and allows hosted scripts to send mail through this server:

<packet>
  <server>
    <set>
      <prefs>
        <mail_notifications>true</mail_notifications>
        <smtp_host>192.168.0.1</smtp_host>
        <smtp_port>25</smtp_port>
        <smtp_login>login</smtp_login>
        <smtp_password>123456</smtp_password>
        <smtp_allow_users>true</smtp_allow_users>
        <smtp_tls>false</smtp_tls>
      </prefs>
    </set>
  </server>
</packet>

  

Setting up various server preferences (Linux)

XML request packets setting up or changing server preferences may look as follows:

<packet>
<server>
<set>
   <prefs>
      <stat_ttl>3</stat_ttl>
      <traffic_accounting>3</traffic_accounting>
      <restart_apache_interval>0</restart_apache_interval>
      <apache_pipelog>true</apache_pipelog>
      <ftp_over_ssl>enabled</ftp_over_ssl>
   </prefs>
</set>
</server>
</packet>

When this operation succeeds, both inbound and outbound traffic will be included to server traffic statistics, which will be stored during 3 months. Also, Apache will not be restarted automatically, piping logs will be enabled, and the Plesk FTP server will allow both secure and non-secure connections from external FTP clients.

  

Setting up various server preferences (Windows)

The following packet specifies that only outbound traffic should be calculated, the traffic statistics should be stored during 5 months, FTP server should allow both FTP and FTPS connections. It also specifies an external SMTP server for sending Plesk notifications and mail generated by users' hosted scripts. Finally, it turns on password protection for site previewing and includes remote SQL Server databases into disk space usage statistics.

<packet>
  <server>
    <set>
      <prefs>
        <stat_ttl>5</stat_ttl>
        <traffic_accounting>2</traffic_accounting>
        <ftp_over_ssl>enabled</ftp_over_ssl>
        <mail_notifications>true</mail_notifications>
        <smtp_host>123.123.123.123</smtp_host>
        <smtp_port>25</smtp_port>
        <smtp_tls>false</smtp_tls>
        <include_remote_databases>true</include_remote_databases>
        <preview_protection>true</preview_protection>
      </prefs>
    </set>
  </server>
</packet>

 

 

Leave your feedback on this topic here

If you have questions or need support, please visit the Plesk forum or contact your hosting provider.
The comments below are for feedback on the documentation only. No timely answers or help will be provided.