Failed to start restart stop apache2 http ubuntu server Unit apache2 service not found

If you start, restart, and stop the apache2 ubuntu 20, 22.04 server and you are getting any error given below. So in this tutorial, you will get the solution to solve it. If you are getting any errors give below: