Plesk

How to enable or disable the feature of creating a temporary domain name provided by Plesk?

Question

How to enable or disable the feature of creating a temporary domain name provided by Plesk under Domains > Add Domain?

Answer

To enable the feature, specify the following in panel.ini:

[techDomain]
subdomain.enabled = 1

To disable the feature, change the lines above to:

[techDomain]
subdomain.enabled = false

The panel.ini file can be modified using one of the following methods:

via Plesk interface

  1. Log in to Plesk.

  2. Install the Panel.ini Editor from the Extensions' menu in Plesk.

  3. Open Panel.ini Editor at Extensions > My Extensions.

  4. In Panel.ini Editor, switch to the Editor tab. If the editor is empty, do the following:

    4.1. Download the panel_ini.txt file.
    4.2. Open the downloaded file and copy its content.
    4.3. Paste the content into the editor.

  5. Edit the content and click Save.

via SSH

  1. Connect to the server via SSH.

  2. Сheck "panel.ini" availability:

    # ls -l /usr/local/psa/admin/conf/panel.ini

    • If the file /usr/local/psa/admin/conf/panel.ini does not exist or is empty, create it by copying the sample configuration file /usr/local/psa/admin/conf/panel.ini:

      # cp /usr/local/psa/admin/conf/panel.ini.sample /usr/local/psa/admin/conf/panel.ini

  3. Open the file /usr/local/psa/admin/conf/panel.ini in any text editor. In this example, we are using the vi editor:

    # vi /usr/local/psa/admin/conf/panel.ini

    or run the command below to open the file in an editor in Plesk Onyx:

    # plesk conf panel.ini

  4. Edit the panel.ini file.

via RDP

  1. Connect to the server via RDP.

  2. Open the file panel.ini located in the folder %plesk_dir%adminconf (Just paste this path in Windows Explorer to open) in any text editor.

    • If the panel.ini file does not exist, create it by copying the sample configuration file panel.ini.sample.
  3. Edit the panel.ini file.