2018-05-02 16:11:22 +05:30
|
|
|
# apache2ctl
|
|
|
|
|
2023-07-16 19:23:40 +02:00
|
|
|
> Administrate the Apache HTTP web server.
|
2020-10-27 10:01:42 +03:30
|
|
|
> This command comes with Debian based OSes, for RHEL based ones see `httpd`.
|
2024-09-18 11:00:49 +02:00
|
|
|
> More information: <https://manned.org/apache2ctl.8>.
|
2018-05-02 16:11:22 +05:30
|
|
|
|
|
|
|
- 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`
|