• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Issue Error: modsecurity_ctl failed: START httpd_modules_ctl --enable security2,unique_id

Kingsley

Silver Pleskian
Hello;

I am trying to install custom rules from Install ModSecurity Rules to Plesk with Manual - Malware Expert i have done everything and i keep getting one error to another now i dont want to use it again and i can't turn ON Modsecurity because i keep getting the below error.

Code:
Error: modsecurity_ctl failed: START httpd_modules_ctl --enable security2,unique_id
websrvmng: /usr/local/psa/admin/sbin/apache_control_adapter execution failed:
May 25 18:22:49 sprout1.sproutserver.com systemd[1]: Starting The Apache HTTP Server...
May 25 18:22:49 sprout1.sproutserver.com httpd[860767]: httpd: Syntax error on line 353 of /etc/httpd/conf/httpd.conf: Syntax error on line 5 of /etc/httpd/conf.d/security2.conf: Syntax error on line 6 of /etc/httpd/conf/modsecurity.d/zz_rules.conf: No matches for the wildcard '*.conf' in '/etc/httpd/conf/modsecurity.d/rules/custom', failing (use IncludeOptional if required)
May 25 18:22:49 sprout1.sproutserver.com systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
May 25 18:22:49 sprout1.sproutserver.com kill[860769]: kill: cannot find process ""
May 25 18:22:49 sprout1.sproutserver.com systemd[1]: httpd.service: control process exited, code=exited status=1
May 25 18:22:49 sprout1.sproutserver.com systemd[1]: Failed to start The Apache HTTP Server.
May 25 18:22:49 sprout1.sproutserver.com systemd[1]: Unit httpd.service entered failed state.
May 25 18:22:49 sprout1.sproutserver.com systemd[1]: httpd.service failed.
websrvmng: /usr/local/psa/admin/sbin/apache_control_adapter execution failed:
May 25 18:22:49 sprout1.sproutserver.com systemd[1]: Starting The Apache HTTP Server...
May 25 18:22:49 sprout1.sproutserver.com httpd[860767]: httpd: Syntax error on line 353 of /etc/httpd/conf/httpd.conf: Syntax error on line 5 of /etc/httpd/conf.d/security2.conf: Syntax error on line 6 of /etc/httpd/conf/modsecurity.d/zz_rules.conf: No matches for the wildcard '*.conf' in '/etc/httpd/conf/modsecurity.d/rules/custom', failing (use IncludeOptional if required)
May 25 18:22:49 sprout1.sproutserver.com systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
May 25 18:22:49 sprout1.sproutserver.com kill[860769]: kill: cannot find process ""
May 25 18:22:49 sprout1.sproutserver.com systemd[1]: httpd.service: control process exited, code=exited status=1
May 25 18:22:49 sprout1.sproutserver.com systemd[1]: Failed to start The Apache HTTP Server.
May 25 18:22:49 sprout1.sproutserver.com systemd[1]: Unit httpd.service entered failed state.
May 25 18:22:49 sprout1.sproutserver.com systemd[1]: httpd.service failed.

Update: i was able to get it working, but then i can't see the custom rule.
 
Back
Top