Verifying Apache
- Verify Apache.
1ps -ef | grep httpd
If the Apache process is displayed in the command output, Apache has been started.

- 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.
- If you installed Apache in RPM mode on CentOS 8.1, run the following command:
- 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
Parent topic: Running and Verifying Apache