apache2 service Failed on restart - Failed to start apache2.service: Unit not found apache2 service Failed on restart - Failed to start apache2.service: Unit not found apache apache

apache2 service Failed on restart - Failed to start apache2.service: Unit not found


You are using different service of apache.

run this if you are using the same service.

systemctl restart httpd

or

apachectl restart


If you are using latest Linux try following - Check your service name using following command

 # systemctl list-units --type service 

Above command will list all the services, find the right service name you want to restart - use following to restart or reload servicee.g I use my restart service httpd24-httpd.service

# systemctl restart httpd24-httpd.serviceor # systemctl reload httpd24-httpd.service