Plesk

Unable to create emoji domains in Plesk with specific emojis: Failed to perform IDN conversion from ASCII name

Symptoms

It is not possible to create emoji domains in Plesk with specific emojis, for example, with the unicode name xn--f98h.tld on CentOS 7 or Debian 9. Plesk shows the error on the Home page after creating such a domain:

New configuration files for the Apache web server were not created due to the errors in configuration templates: Template processing failed: file = /usr/local/psa/admin/conf/templates/default/domainVhost.php, error = Template_Exception: Failed to perform IDN conversion from ASCII name 'xn--f98h.tld' file

Cause

CentOS 7 and Debian 9 are using outdated libraries for IDN conversion that do not support INTL_IDNA_VARIANT_UTS46.

Resolution

Create domains like xn--f98h.tld in Plesk on Centos 8 or Debian 10 servers.