• Debian 11 is approaching its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.80 will be the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

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