• 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 Modsecurity don't start

RobertoMa

Basic Pleskian
Server operating system version
AlmaLinux 8.9
Plesk version and microupdate number
18.0.61
I have a problem when i try to active mod security in my server, i have that error:


Can not restart web server: apache_control_adapter[843803]: graceful restart failed, perform full restartapache_control_adapter[843803]: apache_action(graceful): invoke_httpd_action failed, trying second timeapache_control_adapter[843803]: Apache is down, start it instead of gracefulINFO: [Wed May 22 18:48:47 CEST 2024]: Service: apache, Action: start Trying to start service httpd... activating

***** problem report *****
Warning: start service httpd failed

/usr/local/psa/admin/sbin/pleskrc execution failed:Job for httpd.service failed because the control process exited with error code.See "systemctl status httpd.service" and "journalctl -xe" for details.


Please help me.
 
What's the output systemctl status httpd.service and journalctl -xe?



[root@server ~]# systemctl status httpd.service
* httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
Drop-In: /usr/lib/systemd/system/httpd.service.d
`-respawn.conf
Active: active (running) since Wed 2024-05-22 18:53:33 CEST; 34min ago
Docs: man:httpd.service(8)
Process: 859295 ExecReload=/usr/sbin/httpd $OPTIONS -k graceful (code=exited, status=0/SUCCESS)
Main PID: 849756 (httpd)
Status: "Total requests: 1116; Idle/Busy workers 100/0;Requests/sec: 0.539; Bytes served/sec: 12KB/sec"
Tasks: 300 (limit: 50128)
Memory: 85.4M
CGroup: /system.slice/httpd.service
|-849756 /usr/sbin/httpd -DFOREGROUND
|-859352 /usr/sbin/httpd -DFOREGROUND
|-859353 /usr/sbin/httpd -DFOREGROUND
|-859355 Passenger watchdog
|-859358 Passenger core
|-859376 /usr/sbin/httpd -DFOREGROUND
|-859379 /usr/sbin/httpd -DFOREGROUND
|-859381 /usr/sbin/httpd -DFOREGROUND
`-859695 /usr/sbin/httpd -DFOREGROUND

May 22 18:53:33 server.domain.it systemd[1]: Starting The Apache HTTP Server...
May 22 18:53:33 server.domain.it systemd[1]: Started The Apache HTTP Server.
May 22 18:53:33 server.domain.it httpd[849756]: Server configured, listening on: port 7050, port 7081, port 7080
May 22 19:22:20 server.domain.it systemd[1]: Reloading The Apache HTTP Server.
May 22 19:22:20 server.domain.it systemd[1]: Reloaded The Apache HTTP Server.
May 22 19:22:23 server.domain.it httpd[849756]: Server configured, listening on: port 7050, port 7081, port 7080




[root@server ~]# journalctl -xe
May 22 19:31:28 server.domain.it drwebd[862606]: Key file: /opt/drweb/drweb32.key - Key file was not found! (No such file or directory)
May 22 19:31:28 server.domain.it drwebd.real[862606]: Key file: /opt/drweb/drweb32.key - Key file was not found! (No such file or directory)
May 22 19:31:28 server.domain.it drwebd[862606]: A path to a valid license key file was not specified.
May 22 19:31:28 server.domain.it drwebd.real[862606]: A path to a valid license key file was not specified.
May 22 19:31:28 server.domain.it drwebd[862606]: Plesk authorization failed: HTTP request error [35]
May 22 19:31:28 server.domain.it drwebd.real[862606]: Plesk authorization failed: HTTP request error [35]
May 22 19:31:28 server.domain.it drwebd[862606]: Error: Plesk Software not running.
May 22 19:31:28 server.domain.it drwebd.real[862606]: Error: Plesk Software not running.
May 22 19:31:28 server.domain.it systemd[1]: drwebd.service: Main process exited, code=exited, status=255/n/a
May 22 19:31:28 server.domain.it systemd[1]: drwebd.service: Failed with result 'exit-code'.
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: Red Hat Customer Experience & Engagement - Red Hat Customer Portal
--
-- The unit drwebd.service has entered the 'failed' state with result 'exit-code'.
May 22 19:31:33 server.domain.it systemd[1]: drwebd.service: Service RestartSec=5s expired, scheduling restart.
May 22 19:31:33 server.domain.it systemd[1]: drwebd.service: Scheduled restart job, restart counter is at 533.
-- Subject: Automatic restarting of a unit has been scheduled
-- Defined-By: systemd
-- Support: Red Hat Customer Experience & Engagement - Red Hat Customer Portal
--
-- Automatic restarting of the unit drwebd.service has been scheduled, as the result for
-- the configured Restart= setting for the unit.
May 22 19:31:33 server.domain.it systemd[1]: Stopped Plesk Premium Antivirus.
-- Subject: Unit drwebd.service has finished shutting down
-- Defined-By: systemd
-- Support: Red Hat Customer Experience & Engagement - Red Hat Customer Portal
--
-- Unit drwebd.service has finished shutting down.
May 22 19:31:33 server.domain.it systemd[1]: Started Plesk Premium Antivirus.
-- Subject: Unit drwebd.service has finished start-up
-- Defined-By: systemd
-- Support: Red Hat Customer Experience & Engagement - Red Hat Customer Portal
--
-- Unit drwebd.service has finished starting up.
--
-- The start-up result is done.
May 22 19:31:33 server.domain.it drwebd[862626]: Dr.Web (R) daemon for Linux/Plesk Edition v6.0.2.9
May 22 19:31:33 server.domain.it drwebd[862626]: Copyright (c) Igor Daniloff, 1992-2024
May 22 19:31:33 server.domain.it drwebd[862626]: Doctor Web, Moscow, Russia
May 22 19:31:33 server.domain.it drwebd[862626]: Support service: Dr.Web technical support
May 22 19:31:33 server.domain.it drwebd[862626]: To purchase: Dr.Web Enterprise Security Suite
May 22 19:31:33 server.domain.it drwebd.real[862626]: Dr.Web (R) daemon for Linux/Plesk Edition v6.0.2.9
May 22 19:31:33 server.domain.it drwebd.real[862626]: Copyright (c) Igor Daniloff, 1992-2024
May 22 19:31:33 server.domain.it drwebd.real[862626]: Doctor Web, Moscow, Russia
May 22 19:31:33 server.domain.it drwebd.real[862626]: Support service: Dr.Web technical support
May 22 19:31:33 server.domain.it drwebd.real[862626]: To purchase: Dr.Web Enterprise Security Suite
May 22 19:31:33 server.domain.it drwebd[862626]: Key file: /opt/drweb/drweb32.key - Key file was not found! (No such file or directory)
May 22 19:31:33 server.domain.it drwebd[862626]: A path to a valid license key file was not specified.
May 22 19:31:33 server.domain.it drwebd.real[862626]: Key file: /opt/drweb/drweb32.key - Key file was not found! (No such file or directory)
May 22 19:31:33 server.domain.it drwebd.real[862626]: A path to a valid license key file was not specified.
May 22 19:31:33 server.domain.it drwebd[862626]: Plesk authorization failed: HTTP request error [35]
May 22 19:31:33 server.domain.it drwebd.real[862626]: Plesk authorization failed: HTTP request error [35]
May 22 19:31:33 server.domain.it drwebd[862626]: Error: Plesk Software not running.
May 22 19:31:33 server.domain.it drwebd.real[862626]: Error: Plesk Software not running.
May 22 19:31:33 server.domain.it systemd[1]: drwebd.service: Main process exited, code=exited, status=255/n/a
May 22 19:31:33 server.domain.it systemd[1]: drwebd.service: Failed with result 'exit-code'.
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: Red Hat Customer Experience & Engagement - Red Hat Customer Portal
--
-- The unit drwebd.service has entered the 'failed' state with result 'exit-code'.
 
Hmm, no that unfortunately does not help as you probably restarted your server.

I am not sure about the cause. But I found one similar issue with the same error caused by a corrupted mod_fcgid apache module. You can try to see if re-installing the mod_fcgid component helps.

How to re-install Plesk components is explained here:
I re-instaled fcgid but don't fix the problem.
 
i fixed so:

plesk bin server_pref --update-web-app-firewall -waf-rule-engine on -waf-rule-set tortix -waf-config-preset tradeoff
 
Back
Top