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

apachectl — Control an Apache HTTP server. More information: <https://manned.org/apachectl>.

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

Problem

How to use the apachectl command: Control an Apache HTTP server. More information: <https://manned.org/apachectl>.

Solution

apachectl — Control an Apache HTTP server. More information: <https://manned.org/apachectl>.

Start the server:
sudo apachectl start


Restart the server:
sudo apachectl restart


Stop the server:
sudo apachectl stop


Test configuration file validity:
apachectl configtest


Check server status (requires the lynx browser):
apachectl status


Reload configuration without dropping connections:
sudo apachectl graceful


Print full Apache configuration (not always supported):
apachectl -S


Display help:
apachectl -h

Code Snippets

Start the server

sudo apachectl start

Restart the server

sudo apachectl restart

Stop the server

sudo apachectl stop

Test configuration file validity

apachectl configtest

Check server status (requires the lynx browser)

apachectl status

Context

tldr-pages: linux/apachectl

Revisions (0)

No revisions yet.