Get your free beta license ↗
CMDCommand · run as root on the server · modsec family

urbestack-modsec-install

First published 19 Nov 20260.2.30Unchanged since publication

Usage

# urbestack-modsec-install

Description

From the command's --help output
Installs the distribution's ModSecurity package. On AlmaLinux it installs mod_security. On
Ubuntu it installs libapache2-mod-security2 and skips recommended packages. The command requires
UrbeStack to manage ModSecurity and is safe to run again.

UrbeStack puts its configuration in place before installing the package so ModSecurity starts in
Off mode. After installation, UrbeStack regenerates its Apache configuration, tests Apache's
configuration, and reloads Apache.

UrbeStack setup queues this command as a job so the package manager can run after the package
installation that started setup finishes. On Ubuntu, the package manager waits up to 10 minutes
for its lock. The package installation has a 30-minute timeout.

More in modsec

13 commands, by what they work onView all commands in this family →
urbestack-modsec-disabled-
urbestack-modsec-disabled-rule-
urbestack-modsec-rule-
Generated from release 0.2.35 (current) · urbestack-modsec-install --help outputThis entry has been unchanged since it was first published in release 0.2.30 on 19 Nov 2026.
urbestack.com/docs/commands/urbestack-modsec-install/