HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

apache2ctl — Administrate the Apache HTTP web server. This command comes with Debian based OSes, for RHEL based o

Submitted by: @import:tldr-pages··
0
Viewed 0 times
thehttpcommandcliapacheadministrateapache2ctlweb
linux

Problem

How to use the apache2ctl command: Administrate the Apache HTTP web server. This command comes with Debian based OSes, for RHEL based ones see httpd. More information: <https://manned.org/apache2ctl>.

Solution

apache2ctl — Administrate the Apache HTTP web server. This command comes with Debian based OSes, for RHEL based ones see httpd. More information: <https://manned.org/apache2ctl>.

Start the Apache daemon. Throw a message if it is already running:
sudo apache2ctl start


Stop the Apache daemon:
sudo apache2ctl stop


Restart the Apache daemon:
sudo apache2ctl restart


Test syntax of the configuration file:
sudo apache2ctl -t


List loaded modules:
sudo apache2ctl -M

Code Snippets

Start the Apache daemon. Throw a message if it is already running

sudo apache2ctl start

Stop the Apache daemon

sudo apache2ctl stop

Restart the Apache daemon

sudo apache2ctl restart

Test syntax of the configuration file

sudo apache2ctl -t

List loaded modules

sudo apache2ctl -M

Context

tldr-pages: linux/apache2ctl

Revisions (0)

No revisions yet.