Rate This Document
Findability
Accuracy
Completeness
Readability

Verifying Apache

  1. Verify Apache.
    1
    ps -ef | grep httpd
    

    If the Apache process is displayed in the command output, Apache has been started.

  2. Check the log generation directory.
    ll /usr/local/apache2/logs/
    • If you installed Apache in RPM mode on CentOS 8.1, run the following command:
      ll /var/log/httpd
    • The generated error logs are at the basic Notice severity and do not affect the functions.
  3. Optional: (Optional) Run the following command to stop Apache. Do not run this command when services are running.
    1
    /usr/local/apache2/bin/httpd -f /usr/local/apache2/conf/httpd.conf -k stop
    

    If you installed Apache in RPM mode on CentOS 8.1, run the following command to stop Apache:
    systemctl stop httpd
    ll /var/log/httpd