Network

The apache2ctl command

Debian version of apachectl: checks and controls the Apache server.

Syntax

sudo apache2ctl [configtest|-S]Try it in the terminal →

Copy-ready examples

$ sudo apache2ctl configtestValidate the config

You 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.

Related commands

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.

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