Skip to content

Apache for Cockpit

by SEYSOFT · Version 1.0.1

Manage the Apache web server from your browser inside Cockpit: sites, reverse proxies, HTTPS, config editing with rollback, logs and SELinux.

Bare metal Server management MIT
Apache for Cockpit

Overview

A module for Cockpit that manages the Apache web server (httpd) from the browser, so you don't have to edit config files over SSH. It is built to look like a factory Cockpit page (PatternFly 6) and follows Cockpit's light and dark setting.

It is self-contained: nothing else needs to be installed, it makes no network connections of its own, and it needs no account, repository or other module. It is static files only (HTML, CSS and JavaScript), with no compiled code and no scripts run at install time.

What it does

  • Overview: service status with Start, Stop, Restart and Reload (a configuration test runs first and the action is skipped if it fails), start at boot, install Apache and mod_ssl if missing, firewall switches for HTTP and HTTPS, SELinux mode and the common Apache SELinux booleans.
  • Virtual hosts: create, edit, enable, disable and delete sites. Supports websites and reverse proxies, aliases, HTTPS (certificate and key paths, optional redirect to HTTPS), per-site logs, SELinux labelling of the document root and a live config preview. Sites defined elsewhere (httpd.conf, Virtualmin, other included files) are listed read-only.
  • Configuration: edit any file under /etc/httpd with an automatic backup, a syntax check before applying, and automatic rollback if the check fails.
  • Logs: journal and /var/log/httpd files, with filtering and live follow.
  • Modules: the list of loaded Apache modules (read-only).

Safe by design

Every change is validated with httpd -t before Apache is reloaded, and rolled back automatically if it fails. Timestamped backups are taken before every config change.

Good to know

  • Needs Cockpit 337 or newer (Rocky Linux or RHEL 9.7 and later, current Fedora). Older Cockpit versions refuse to load it.
  • Reading status works for any user. Anything that changes the system asks for administrative access.
  • Hand edits to a site file created by this module are fine, but saving that site from Cockpit overwrites them.
  • Sites the module creates are ordinary Apache config files, so they keep working if you remove the module.
  • Bundles PatternFly 6 styles (MIT) and Red Hat fonts (SIL OFL 1.1); their licences are included.
  • Cockpit, Apache, Red Hat, Rocky Linux and Fedora are trademarks of their respective owners. This is an independent module and is not affiliated with or endorsed by any of them.
  • You run it on your own systems, at your own risk. Test changes on a non-production server first.

Installation

Download the release file, cockpit-apache-1.0.1-manual.tar.gz, then choose one:

System-wide (all Cockpit users, needs root)

sudo tar -C /usr/share/cockpit -xzf cockpit-apache-1.0.1-manual.tar.gz

One user only (no root needed to install)

mkdir -p ~/.local/share/cockpit
tar -C ~/.local/share/cockpit -xzf cockpit-apache-1.0.1-manual.tar.gz

Then log out of Cockpit and back in. Cockpit reads its module list at login, and "Apache" appears in the left menu. If it doesn't, run this as the same user to see whether Cockpit found it:

cockpit-bridge --packages | grep -i apache

Updating: there is no automatic update. Unpack the newer archive over the old one and log in again.

Removing

sudo rm -rf /usr/share/cockpit/apache
sudo rm -rf /var/lib/cockpit-apache

For a single-user install, remove ~/.local/share/cockpit/apache instead. The second line is optional and deletes the saved config backups. Log out and back in afterwards. Site files the module created in /etc/httpd/conf.d/ (cockpit-<name>.conf) are ordinary Apache config and keep working until you delete them.

Files it uses on your server

Path Purpose
/usr/share/cockpit/apache/ (or ~/.local/share/cockpit/apache/) The module itself
/etc/httpd/conf.d/cockpit-<name>.conf Sites created in the Virtual hosts tab
/var/lib/cockpit-apache/backups/ Timestamped backups before every config change (root only)

Requirements

  • Cockpit 337 or newer (Rocky Linux or RHEL 9.7 and later, current Fedora)
  • Apache (httpd). The module can install it, along with mod_ssl, if missing
  • An administrative account for anything that changes the system
  • Optional: policycoreutils-python-utils, so document roots can be labelled for SELinux permanently
  • No internet access needed

Versions

  • 1.0.1 Latest · Nov 23, 2026 · 233.5 KB

    SHA-256 c200c3d93c23f38cb3924edb38d00c23306119ce19eaa243fde49f2418fc0e01

    Release notes

    Cockpit module for managing Apache (httpd): service control with config test, virtual hosts and reverse proxies, HTTPS, config editor with backup and rollback, logs, modules, firewall and SELinux settings.

To check a download, compare the SHA-256 above with sha256sum <file> on Linux and macOS, or Get-FileHash <file> in PowerShell. If they differ, download it again.

Software is provided as it is, and any open-source components keep their own licences. Need help with it? Contact support.

More software

View all →

Nginx for Cockpit

SEYSOFT

Manage the nginx web server from your browser inside Cockpit: static sites, reverse proxies, config editing and logs, with rollback.

Bare metal Server management
v1.0.0 Included

Samba for Cockpit

SEYSOFT

Share folders with Windows, Mac and Linux computers from your browser inside Cockpit. Manage Samba shares and users without smb.conf.

Bare metal Server management
v1.0.0 Included

RF Workbench

SEYSOFT

Browser control panel for a HackRF One: live spectrum and waterfall, tune and listen, a channel scanner and an RF activity monitor, in Docker.

Docker Communications
v0.9.0 Included