on 02 Nov 2022 07:45 AM
Following installation of OneAgent, your Apache web server must be completely restarted to enable monitoring. To do this correctly, it's important to understand the difference between "partial" and "complete" restarts. In the case of partial restarts, the main Apache process re-reads its configuration files, re-opens its log files, and then restarts its worker processes. OneAgent however, requires a complete Apache web server restart in which all workers and—most importantly—the main Apache process are shut down entirely and then restarted.
See Stopping and Restarting Apache HTTP Server for more information on the different types of available restarts.
To perform a complete restart:
apachectl restart
command. However, this command only results in a partial Apache restart.apachectl stop
command. Only following this step can you restart the server using apachectl start
service apache2 restart
on Ubuntu systems. Note however that whatever commands you use, you'll likely need superuser rights (sudo).httpd.exe -k restart -n "Apache2.4"
command. However, this command only results in a partial Apache restart.httpd.exe -k stop -n "Apache2.4"
command. Only following this step can you restart the server using httpd.exe -k start -n "Apache2.4".
And if all else fails, restart the entire box 🤣 Thanks @adham_sabry for providing clarity on this issue and the solutions that are available to us 🙂