"apachectl status/start/stop" Commands

This section provides a tutorial example on how to use 'sudo apachectl *' commands to control the Apache HTTP Server, httpd.

If you are tired of typing "systemctl * httpd" long commands, or on a Linus system without the "systemctl" command, you can use "apachectl *" command to control the Apache HTTP Server, httpd.

Based on the "apachectl" command manual, it offers the same functionalities as the "systemctl * httpd" command:

herong$ man apachectl

NAME
  apachectl - Apache HTTP Server Control Interface

SUMMARY
  apachectl  is  a front end to the Apache HyperText Transfer Protocol
  (HTTP) server. It is designed to help the administrator control the
  functioning of the Apache httpd daemon.
  ...

OPTIONS
  start         Start the Apache httpd daemon.
  stop          Stops the Apache httpd daemon.
  restart       Restarts  the  Apache  httpd  daemon.
  fullstatus    Displays a full status report from mod_status.
  status        Displays a brief status report using systemd.
  graceful      Gracefully restarts the Apache httpd daemon.
  graceful-stop Gracefully stops the Apache httpd daemon.
  configtest    Run a configuration file syntax test.
  ...

Table of Contents

 About This Book

 Introduction to Linux Systems

 Process Management

 Files and Directories

Running Apache HTTP Server (httpd) on Linux Systems

 What Is Apache HTTP Server "httpd"

 Install Apache HTTP Server "httpd"

 Enable Remote Access to "httpd" Service

 Publish Home Page index.html

"apachectl status/start/stop" Commands

 Verify Apache HTTP Server "httpd" Environment

 Requirements for Supporting HTTPS on Apache

 Web Server Certificate and Required Fields

 Apache Configuration for HTTPS Protocol

 Common Issues with Apache HTTPS Support

 Listen to Non-Standard Ports with Apache

 Running Apache Tomcat on Linux Systems

 Running PHP Scripts on Linux Systems

 Running MySQL Database Server on Linux Systems

 Running Python Scripts on Linux Systems

 Conda - Environment and Package Manager

 GCC - C/C++ Compiler

 OpenJDK - Open-Source JDK

 Graphics Environments on Linux

 SquirrelMail - Webmail in PHP

 Tools and Utilities

 References

 Full Version in PDF/EPUB