Plesk

Cannot apply Apache & nginx configuration on Plesk with Premium Email extension installed: “server” directive is not allowed here

Symptoms

Cause

Plesk Premuim Email extension provides invalid mail autodiscovery section to templates during building Nginx virtual host configuration files.

This is extension bug with ID PPPM-14026.

Resolution

Until the bug is fixed, apply the next workaround:

Debian-based OS (Debian, Ubuntu)

  1. Connect to the server via SSH.

  2. Backup original /opt/psa/admin/plib/Template/Processor.php file:

    # cp -a /opt/psa/admin/plib/Template/Processor.php{,.bak}

  3. Download custom fixed file:

    # curl -LO https://support.plesk.com/hc/en-us/article_attachments/15329755898519/Processor.php

  4. Replace the original file:

    # mv -f ./Processor.php /opt/psa/admin/plib/Template/Processor.php

RHEL-based OS (centOS, AlmaLinux, CloudLinux)

  1. Connect to the server via SSH.

  2. Backup original /usr/local/psa/admin/plib/Template/Processor.php file:

    # cp -a /usr/local/psa/admin/plib/Template/Processor.php{,.bak}

  3. Download custom fixed file:

    # curl -LO https://support.plesk.com/hc/en-us/article_attachments/15329755898519/Processor.php

  4. Replace the original file:

    # mv -f ./Processor.php /usr/local/psa/admin/plib/Template/Processor.php

Exit mobile version