Articles in this section

Web configuration error in Plesk interface: Undefined array key "sfport"

Plesk for Linux kb: technical

Applicable to:

  • Plesk for Linux

Symptoms

  • Web configuration error in Plesk interface:

    PLESK_ERROR: New configuration files for the Apache web server were not created due to the errors in configuration templates: nginx: [emerg] invalid port in upstream "127.0.0.1:" in /etc/nginx/plesk.conf.d/vhosts/example.com.conf:107 nginx: configuration file /etc/nginx/nginx.conf test failed . Detailed error descriptions were sent to you by email. Please resolve the issues and click here to generate broken configuration files once again or here to generate all configuration files.

  • Errors while running web repair command for domain:

    # plesk repair web example.com -v -y
    - httpdmng failed: PHP Warning: Undefined array key "sfport";
    File: /opt/psa/admin/plib/modules/seafile/library/Domain.php,
    Line: 84
    PHP Warning: Undefined array key "sfport" in
    /opt/psa/admin/plib/modules/seafile/library/Domain.php on line
    84
    PHP Warning: Undefined array key "shport"; File:
    /opt/psa/admin/plib/modules/seafile/library/Domain.php, Line:
    90
    PHP Warning: Undefined array key "shport" in
    /opt/psa/admin/plib/modules/seafile/library/Domain.php on line
    90

Cause

Web misconfiguration caused by the Seafile extension.

Resolution

  1. Log in to Plesk

  2. Navigate to Extensions > Seafile and disable the extension

  3. Run the web repair command:

    # plesk repair web example.com -y

  4. Enable the extension back
  5. Ensure that there are no web configuration errors:

    # plesk repair web -n

Was this article helpful?

Comments

0 comments

Please sign in to leave a comment.