• Dear Pleskians! The Plesk Forum will be undergoing scheduled maintenance on Monday, 7th of July, at 9:00 AM UTC. The expected maintenance window is 2 hours.
    Thank you in advance for your patience and understanding on the matter.

Unable to configure the web server: Execution failed

Willem Janssen

New Pleskian
I'm receiving this error:

Unable to configure the web server: Execution failed. Command: httpdmng Arguments: Array ( [0] => --reconfigure-all ) Details: Execution failed. Command: httpdmng Arguments: Array ( [0] => --reconfigure-server [1] => -no-restart ) Details: [2015-09-17 14:14:28] ERR [util_exec] proc_close() failed [2015-09-17 14:14:29] ERR [util_exec] proc_close() failed [2015-09-17 14:14:30] ERR [panel] Apache config (14424920680.08744300) generation failed: Template_Exception: [Thu Sep 17 14:14:28 2015] [warn] module security2_module is already loaded, skipping [Thu Sep 17 14:14:28 2015] [warn] module unique_id_module is already loaded, skipping httpd: Syntax error on line 222 of /etc/httpd/conf/httpd.conf: Syntax error on line 12 of /etc/httpd/conf.d/00_mod_security.conf: Could not open configuration file /etc/httpd/conf/modsecurity.d/rules/tortix/modsec/50_plesk_basic_asl_rules.conf: Permission denied file: /usr/local/psa/admin/plib/Template/Writer/Webserver/Abstract.php line: 75 code: 0 [Thu Sep 17 14:14:28 2015] [warn] module security2_module is already loaded, skipping [Thu Sep 17 14:14:28 2015] [warn] module unique_id_module is already loaded, skipping httpd: Syntax error on line 222 of /etc/httpd/conf/httpd.conf: Syntax error on line 12 of /etc/httpd/conf.d/00_mod_security.conf: Could not open configuration file /etc/httpd/conf/modsecurity.d/rules/tortix/modsec/50_plesk_basic_asl_rules.conf: Permission denied

Received by e-mail:

Unable to generate the web server configuration file on the host <something> because of the following errors:

Template_Exception: [Thu Sep 17 14:10:30 2015] [warn] module security2_module is already loaded, skipping [Thu Sep 17 14:10:30 2015] [warn] module unique_id_module is already loaded, skipping

httpd: Syntax error on line 222 of /etc/httpd/conf/httpd.conf: Syntax error on line 12 of /etc/httpd/conf.d/00_mod_security.conf: Could not open configuration file /etc/httpd/conf/modsecurity.d/rules/tortix/modsec/50_plesk_basic_asl_rules.conf: Permission denied

file: /usr/local/psa/admin/plib/Template/Writer/Webserver/Abstract.php
line: 75
code: 0

Please resolve the errors in web server configuration templates and generate the file again.
----

What should I do to fix this? The VPS got all the latest updates installed through yum.
  • OS: CentOS 6.7 (Final)
  • Plesk version: 12.0.18 Update #65
 
Syntax error on line 12 of /etc/httpd/conf.d/00_mod_security.conf: Could not open configuration file /etc/httpd/conf/modsecurity.d/rules/tortix/modsec/50_plesk_basic_asl_rules.conf: Permission denied

What are the permissions of file /etc/httpd/conf/modsecurity.d/rules/tortix/modsec/50_plesk_basic_asl_rules.conf ?
 
I've disisntalled tortix WAF and reinstalled, now it seems to work and updates itself.
But I still get this error on the Plesk home admin screen:

Errore: Errore di aggiornamento del set di regole di ModSecurity: modsecurity_ctl failed: gpg: key 4520AFA9: "Atomicorp (Atomicorp Official Signing Key) <[email protected]>" not changed gpg: Total number processed: 1 gpg: unchanged: 1 gpg: Signature made Wed Sep 30 23:55:51 2015 CEST using RSA key ID 4520AFA9 gpg: Good signature from "Atomicorp (Atomicorp Official Signing Key) <[email protected]>" gpg: WARNING: This key is not certified with a trusted signature! gpg: There is no indication that the signature belongs to the owner. Primary key fingerprint: xxxxxxxxxxxxxxxxx TERM environment variable not set. aum failed with exitcode 3. stdout: Checking versions ... ASL version is current: [75G[[1;31m[1;32mPASS[0m[0m] Updating Web Application Firewall to 201510131655: updated[75G[[1;31m[1;32mPASS[0m[0m] ------------------------------------------------------------------------------- Errors were encountered: L CODE SOURCE MESSAGE - ---- ----------------------------- ------------------------------------------ [0;33m2 9901 ASLCommon::cmd_system ERROR: '/usr/sbin/apachectl -t >/dev/null 2>&1 (1)' [0m[0;33m2 9901 ASLCommon::cmd_exec ERROR: '(1) /usr/sbin/apachectl -t 2>&1 -- [Wed Oct 14 03:23:50 2015] [warn] module security2_module is already loaded, skippi ng||[Wed Oct 14 03:23:50 2015] [warn] modu le unique_id_module is already loaded, ski pping||[Wed Oct 14 03:23:50 2015] [warn] m odule security2_module is already loaded, skipping||httpd: bad user name klastweb' [0m[0;33m2 601 c_modsec::apply_rules There is a problem with the apache config: [Wed Oct 14 03:23:50 2015] [warn] module security2_module is already loaded, skippi ng; [Wed Oct 14 03:23:50 2015] [warn] modu le unique_id_module is already loaded, ski pping; [Wed Oct 14 03:23:50 2015] [warn] m odule security2_module is already loaded, skipping; httpd: bad user name klastweb [0m[0;33m2 601 c_modsec::apply_rules There is a problem with the apache config: Rolling back to the previous update [0m[1;31m3 600 c_modsec::apply_rules Errors occurred with Apache [0m5.xxxxxxxxxxxxxxxxxxx stderr: Unable to download tortix rule set
 
Back
Top