Articles in this section

[BUG] Unable to start or restart Apache after uninstalling Roundcube in Plesk: Could not open configuration file roundcube.htaccess.inc No such file or directory

kb: bug kb: fixed Plesk for Linux

Applicable to:

  • Plesk for Linux

Symptoms

  • Unable to start or restart Apache service after uninstalling Roundcube in Plesk

  • The server has at least one subscription suspended

  • The command plesk repair web fails with the following error message:

    CONFIG_TEXT: Template_Exception: apache2: Syntax error on line 222 of /etc/apache2/apache2.conf: Syntax error on line 6 of /etc/apache2/conf-enabled/zz010_psa_httpd.conf: Syntax error on line 37 of /etc/apache2/plesk.conf.d/webmails/example.com_webmail.conf: Could not open configuration file /etc/apache2/plesk.conf.d/roundcube.htaccess.inc: No such file or directory

The Apache configuration check fails as follows:

  • Debian/Ubuntu OS based:

    # apache2ctl -t
    apache2: Syntax error on line 222 of /etc/apache2/apache2.conf: Syntax error on line 6 of /etc/apache2/conf-enabled/zz010_psa_httpd.conf: Syntax error on line 53 of /etc/apache2/plesk.conf.d/webmails/example.com_webmail.conf: Could not open configuration file /etc/apache2/plesk.conf.d/roundcube.htaccess.inc: No such file or directory

  • RedHat/CentOS OS based:

    # httpd -t
    httpd: Syntax error on line 353 of /etc/httpd/conf/httpd.conf: Syntax error on line 6 of /etc/httpd/conf.d/zz010_psa_httpd.conf: Syntax error on line 53 of /etc/httpd/conf/plesk.conf.d/webmails/example.com_webmail.conf: Could not open configuration file /etc/httpd/conf/plesk.conf.d/roundcube.htaccess.inc: No such file or directory

Cause

Product issue:

  • #PPPM-12924 "Uninstalling a webmail client no longer breaks Apache configuration files."
    Fixed in:

Resolution

Please consider updating your server:

Workaround

As a workaround:

Install again the Roundcube Component
  1. Connect to the server via SSH

  2. Install Roundcube:

    # plesk installer --select-release-current --install-component roundcube

  3. Repair web server configuration files:

    Note: This command might take a while when the Plesk server hosts many domains

    # plesk repair web

Fix webmail configuration for the domains
  1. Connect to the server via SSH

  2. Download the script:

    # wget https://support.plesk.com/hc/en-us/article_attachments/4402154178322/fix_PPPM12924.tar.gz

  3. Extract the script:

    # tar -xzvf fix_PPPM12924.tar.gz

  4. Give execute permissions to the script:

    # chmod 740 fix_PPPM12924.sh

  5. Run the script:

    # ./fix_PPPM12924.sh

  6. Repair web server configuration files:

    Note: This command might take a while when the Plesk server hosts many domains

    # plesk repair web

Was this article helpful?

Comments

0 comments

Please sign in to leave a comment.