Network
The apache2ctl command
Debian version of apachectl: checks and controls the Apache server.
Copy-ready examples
$ sudo apache2ctl configtestValidate the configYou can try them in the browser terminal: it does not touch your computer.
Typical mistakes
- It is the same as apachectl on Debian/Ubuntu systems.
FAQ
What does apache2ctl do?
It controls Apache2 on Debian/Ubuntu: start, stop or validate the configuration.
How do I validate the configuration?
With apache2ctl configtest.
More Network commands
Learn to actually use it
The basic Linux course takes you from zero to console fluency with 24 self-grading lessons.
Start the free course