Plesk

Plesk home page shows error: Configuration files for the Apache web server were not created: /etc/httpd/conf.d/modsec2.imunify.conf

Symptoms

Cause

Syntax error in Apache configuration file. Reference to the fileĀ 00_mod_security.conf is missing.

Resolution

  1. Connect to the server via SSH as root user.

  2. Create the backup of Apache configuration file:

    # cp -a /etc/httpd/conf/plesk.conf.d/modsecurity.conf{,.bak}

  3. Add the path containing 00_mod_security.conf in configuration file /etc/httpd/conf/plesk.conf.d/modsecurity.conf in the following way, for example:

    # cat /etc/httpd/conf/plesk.conf.d/modsecurity.conf
    Include "/etc/httpd/conf.d/00_mod_security.conf"

  4. Check the configuration of Apache web server:

    # httpd -t
    Syntax OK

  5. Rebuild web server configuration files:

    # plesk repair web