• 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.

Issue Apache2/ mod security error

Joe_P

New Pleskian
Server operating system version
Ubuntu 18.04.6
Plesk version and microupdate number
18.0.56
Web server is down. How do I fix this error?
Error: New configuration files for the Apache web server were not created due to the errors in configuration templates: apache2: Syntax error on line 222 of /etc/apache2/apache2.conf: Syntax error on line 3 of /etc/apache2/conf-enabled/00_mod_security.conf: Cannot load /etc/httpd/modules/mod_security2.so into server: /etc/httpd/modules/mod_security2.so: cannot open shared object file: No such file or directory.
 
Please remove and then reinstall ModSecurity through the Plesk installer.
I tried that through the web interface and terminal, it didn't create the file mod_security2.so
The only way to get apache started was to comment out loadmodule in the 00_mod_security.conf
Modsecurity 2.9 fails to start but if I switch to Modsecurity 3.0 it will start.
 
In this case, please open a ticket with support so that they can check the issue on your server. To sign-in to support please go to https://support.plesk.com

If you experience login issues, please see this KB article:
https://support.plesk.com/hc/en-us/...rt-plesk-com-and-password-reset-does-not-work

If you bought your license from a reseller, your reseller should provide support for you. If the reseller does not provide support, here is an alternative:
https://support.plesk.com/hc/en-us/articles/12388090147095-How-to-get-support-directly-from-Plesk-
 
Web server is down. How do I fix this error?
Error: New configuration files for the Apache web server were not created due to the errors in configuration templates: apache2: Syntax error on line 222 of /etc/apache2/apache2.conf: Syntax error on line 3 of /etc/apache2/conf-enabled/00_mod_security.conf: Cannot load /etc/httpd/modules/mod_security2.so into server: /etc/httpd/modules/mod_security2.so: cannot open shared object file: No such file or directory.
Did you click both on the left and the second one in the Plesk error message?

The configuration files should be regenerated.

login via SSH and run apt-get update next apt-get upgrade are there any errors?

maybe you need to run:

Code:
apt --fix-broken install

never delete plesk packages by doing this.
 
Back
Top