CoyoteKG
Regular Pleskian
Hello,
I just logged in Plesk panel, and I got short message there is problem with modsecurity update.
I executed and got this
I tried to turn on and off modsecurity in Tools and Settings, and after that in panel I got next message.
These days I did not set anything with Apache and mod security.
Before few days from Plesk panel i updated few things, maybe mod security also was on the list.
What I can do? I have no experience with mod security, I just turn it on, and set Atomic rule.
I just logged in Plesk panel, and I got short message there is problem with modsecurity update.
I executed and got this
Code:
[root@websrv1 ~]# /var/asl/bin/aum -uf
Checking versions ...
ASL version is current: [PASS]
Updating Web Application Firewall to 201705051133: updated [PASS]
-------------------------------------------------------------------------------
Errors were encountered:
L CODE SOURCE MESSAGE
- ---- ----------------------------- ------------------------------------------
2 9901 ASLCommon::cmd_system ERROR: '/bin/cp -af /var/asl/rules/modsec/
template-* /var/asl/data/templates/ >/dev/
null 2>&1 (1)'
2 9901 ASLCommon::cmd_system ERROR: '/usr/sbin/apachectl -t >/dev/null
2>&1 (1)'
2 9901 ASLCommon::cmd_exec ERROR: '(1) /usr/sbin/apachectl -t 2>&1 --
[Sun May 07 19:51:32.846596 2017] [so:war
n] [pid 7673:tid 139690708506752] AH01574:
module unique_id_module is already loaded
, skipping||[Sun May 07 19:51:32.859691 20
17] [so:warn] [pid 7673:tid 13969070850675
2] AH01574: module security2_module is alr
eady loaded, skipping||AH00526: Syntax err
or on line 36 of /etc/httpd/conf/modsecuri
ty.d/rules/tortix/modsec/50_plesk_basic_as
l_rules.conf:||ModSecurity: Found another
rule with the same id'
2 601 c_modsec::apply_rules There is a problem with the apache config:
[Sun May 07 19:51:32.846596 2017] [so:war
n] [pid 7673:tid 139690708506752] AH01574:
module unique_id_module is already loaded
, skipping; [Sun May 07 19:51:32.859691 20
17] [so:warn] [pid 7673:tid 13969070850675
2] AH01574: module security2_module is alr
eady loaded, skipping; AH00526: Syntax err
or on line 36 of /etc/httpd/conf/modsecuri
ty.d/rules/tortix/modsec/50_plesk_basic_as
l_rules.conf:; ModSecurity: Found another
rule with the same id
2 601 c_modsec::apply_rules There is a problem with the apache config:
Rolling back to the previous update
3 600 c_modsec::apply_rules Errors occurred with Apache
I tried to turn on and off modsecurity in Tools and Settings, and after that in panel I got next message.
I clicked to link in this message to generate all configuration files, but now I have this error in Plesk panelNew configuration files for the Apache web server were not created due to the errors in configuration templates: [Sun May 07 19:58:05.053480 2017] [so:warn] [pid 8949:tid 139829036615808] AH01574: module unique_id_module is already loaded, skipping [Sun May 07 19:58:05.065993 2017] [so:warn] [pid 8949:tid 139829036615808] AH01574: module security2_module is already loaded, skipping AH00526: Syntax error on line 36 of /etc/httpd/conf/modsecurity.d/rules/tortix/modsec/50_plesk_basic_asl_rules.conf: ModSecurity: Found another rule with the same id . Detailed error descriptions were sent to you by email. Please resolve the issues and click here to generate broken configuration files once again or here to generate all configuration files. See the details in Configuration Troubleshooter
Unable to configure the web server: Execution failed. Command: httpdmng Arguments: Array ( [0] => --reconfigure-all ) Details: Error occured while sending feedback. HTTP code returned: 502 Error occured while sending feedback. HTTP code returned: 502 Execution failed. Command: httpdmng Arguments: Array ( [0] => --reconfigure-server [1] => -no-restart ) Details: [2017-05-07 20:00:20] ERR [util_exec] proc_close() failed ['/usr/local/psa/admin/bin/apache-config' '-t'] with exit code [1] [2017-05-07 20:00:26] ERR [util_exec] proc_close() failed ['/usr/local/psa/admin/bin/apache-config' '-t'] with exit code [1] [2017-05-07 20:00:30] ERR [panel] Apache config (14941800180.63887400) generation failed: Template_Exception: [Sun May 07 20:00:19.953333 2017] [so:warn] [pid 10105:tid 139773839788160] AH01574: module unique_id_module is already loaded, skipping [Sun May 07 20:00:19.966651 2017] [so:warn] [pid 10105:tid 139773839788160] AH01574: module security2_module is already loaded, skipping AH00526: Syntax error on line 36 of /etc/httpd/conf/modsecurity.d/rules/tortix/modsec/50_plesk_basic_asl_rules.conf: ModSecurity: Found another rule with the same id file: /usr/local/psa/admin/plib/Template/Writer/Webserver/Abstract.php line: 75 code: 0 Error occured while sending feedback. HTTP code returned: 502 [Sun May 07 20:00:19.953333 2017] [so:warn] [pid 10105:tid 139773839788160] AH01574: module unique_id_module is already loaded, skipping [Sun May 07 20:00:19.966651 2017] [so:warn] [pid 10105:tid 139773839788160] AH01574: module security2_module is already loaded, skipping AH00526: Syntax error on line 36 of /etc/httpd/conf/modsecurity.d/rules/tortix/modsec/50_plesk_basic_asl_rules.conf: ModSecurity: Found another rule with the same id
These days I did not set anything with Apache and mod security.
Before few days from Plesk panel i updated few things, maybe mod security also was on the list.
What I can do? I have no experience with mod security, I just turn it on, and set Atomic rule.