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

Resolved Unable to reinstall modsecurity after upgrade from Onyx to Obsidian

Abernathy

New Pleskian
Server operating system version
CentOS Linux 7.9
Plesk version and microupdate number
18.0.57
In the process of upgrading to Obsidian, I had this conflict ;
Bash:
Exception: Failed to solve dependencies:
plesk-modsecurity-configurator conflicts with mod_security-2.9.2-centos7.19091318.x86_64

I did remove mod_security thinking I would reinstall it after upgrade.
Maybe I should have used the installer to remove the component.
Bash:
Running transaction
  Erasing    : plesk-modsecurity-crs-17.8.11-centos7.18021217.x86_64                                                                          1/2
  Erasing    : mod_security-2.9.2-centos7.19091318.x86_64                                                                                     2/2
warning: /etc/httpd/conf.d/security2.conf saved as /etc/httpd/conf.d/security2.conf.rpmsave
  Verifying  : plesk-modsecurity-crs-17.8.11-centos7.18021217.x86_64                                                                          1/2
  Verifying  : mod_security-2.9.2-centos7.19091318.x86_64                                                                                     2/2

Removed:
  mod_security.x86_64 0:2.9.2-centos7.19091318                                                                                                   

Dependency Removed:
  plesk-modsecurity-crs.x86_64 0:17.8.11-centos7.18021217                                                                                         

Complete!

Upgrade went fine afterwards and I now have Plesk Obsidian v18.0.57

My issue is that I cannot reinstall modsecurity.​

Bash:
plesk installer --select-release-current --install-component modsecurity

Error

Bash:
Failed to install {'release': '2.centos.7+p18.0.57.5+t231218.0957', 'epoch': '1', 'version': '2.9.7', 'arch': 'x86_64', 'name': 'mod_security'}:
Number of retries is exceeded.
InstallError: No package(s) available to install

ERROR: The Yum utility failed to install the required packages.
Attention! Your software might be inoperable.
Visit https://support.plesk.com/ to search for a solution.
exit status 1

Can someone please help me to reinstall modsecurity ?

 
Found the problem... exclude=mod_security in /etc/yum.conf
I commented out that line and modsecurity install went fine.
 
Last edited by a moderator:
Back
Top