• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Resolved /var/awp/etc/config: No such file or directory, Failed to update the ModSecurity rule set

finbarr69

Basic Pleskian
Server operating system version
CentOS Linux release 7.9.2009 (Core)
Plesk version and microupdate number
Plesk Obsidian Web Host Edition Version 18.0.52 Update #3
A few days ago, all my web servers began producing a 500 error and my server was down for a day before I realised the cause was a missing file :

/etc/httpd/conf/modsecurity.d/rules/tortix/modsec/tortix_waf.conf

I created the missing file by simply touching it. After I restarted apache, all the sites started working again.

I don't know if it is related, but now anacron job 'cron.daily' is reporting:

/etc/cron.daily/aum_nightly.sh: line 2: /var/awp/etc/config: No such file or directory

It seems to be something to do with Atomic?

Perhaps a mod_security rule-set has not applied correctly. Is there anything I should be doing?

Plesk tells me "Failed to update the ModSecurity rule set" and gives me details to click on which shows :

Failed to update the ModSecurity rule set: modsecurity_ctl failed: Command '['sed', '-i', '-e', 's#^MODSEC_RULES_PATH\\s*=.*#MODSEC_RULES_PATH="/etc/httpd/conf/modsecurity.d/rules/tortix/modsec"#g', '-e', 's#^RESTART_APACHE\\s*=.*#RESTART_APACHE="no"#g', '-e', 's#^AUTOMATIC_UPDATES\\s*=.*#AUTOMATIC_UPDATES="no"#g', '-e', 's#^MODSEC_50_PLESK\\s*=.*#MODSEC_50_PLESK="yes"#g', '/etc/asl/config']' returned non-zero exit status 2.

Thanks

Brian
 
Back
Top