• Halloween is coming! To celebrate the occasion, we dusted off a couple of old skins, and even created a brand new one (Pixel).
    To get into the festive spirit, install the Skins extension.
  • The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

Resolved Apache2/ mod security2 error

Onkeltom01

Basic Pleskian
Server operating system version
CentOS 7.9
Plesk version and microupdate number
Plesk Obsidian 18.0.70 Update 2
Hi all,
today morning my Webserver stops working with following error:
Code:
Jul  4 08:27:32 server1 systemd: Starting The Apache HTTP Server...
Jul  4 08:27:32 server1 httpd: httpd: Syntax error on line 353 of /etc/httpd/conf/httpd.conf: Syntax error on line 1 of /etc/httpd/conf.d/security2.conf: Cannot load modules/mod_security2.so into server: /etc/httpd/modules/mod_security2.so: undefined symbol: pcre2_set_depth_limit
Jul  4 08:27:32 server1 systemd: httpd.service: main process exited, code=exited, status=1/FAILURE
Jul  4 08:27:32 server1 systemd: Failed to start The Apache HTTP Server.
Jul  4 08:27:32 server1 systemd: Unit httpd.service entered failed state.
Jul  4 08:27:32 server1 systemd: httpd.service failed.
Jul  4 08:27:32 server1 apache_control_adapter[17736]: apache_action(start): invoke_httpd_action failed, trying second time
Jul  4 08:27:32 server1 systemd: Starting The Apache HTTP Server...
Jul  4 08:27:32 server1 httpd: httpd: Syntax error on line 353 of /etc/httpd/conf/httpd.conf: Syntax error on line 1 of /etc/httpd/conf.d/security2.conf: Cannot load modules/mod_security2.so into server: /etc/httpd/modules/mod_security2.so: undefined symbol: pcre2_set_depth_limit
Jul  4 08:27:32 server1 systemd: httpd.service: main process exited, code=exited, status=1/FAILURE
Jul  4 08:27:32 server1 systemd: Failed to start The Apache HTTP Server.
Jul  4 08:27:32 server1 systemd: Unit httpd.service entered failed state.
Jul  4 08:27:32 server1 systemd: httpd.service failed.

any idea to fix this?

Best regards,
Tom
 
Okay, thank you for your reply Sebahat.hadzhi, I can try this later this evening because of downtime.
In the meanwhile I stopped the Web Application Firewall (ModSecurity) to ensure the reachiabilty of the websites.

But what happened today morning?
automated updated?

The "00_mod_security.conf" and "security2.conf" at /etc/httpd/conf.d Directory where changed this morning at 08:17:40
also the most configured Modules from Tools&Settings => Apache Webserver Konfiguration lost the activation mark.
The Watchdog mentioned the apache down at 08:20 via eMail.

I didn't manual update the server at this time!
 
Re-installing ModSecurity did the trick.
Now https are running back again with ModSecurity.

thanks sebahat.hadzhi for your support!

Best Regard,
Tom
 
I am glad to hear the issue is sorted, Tom. If you have automatic updates enabled, likely something was not properly compiled during the update process. However, I cannot confirm what exactly went wrong. For further investigation, I can suggest opening a ticket with Plesk support so our engineers can review the case in detail directly on the server.
 
Back
Top